Activity Stream
48,167 MEMBERS
6901 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Hybrid View

iMage php error 3rd Dec 2010, 06:39 PM
CyberAff The best method for fixing “parse... 3rd Dec 2010, 07:07 PM
iMage ya i can copy paste to.. thanks. i... 3rd Dec 2010, 07:08 PM
CyberAff whats exactly the problem? 3rd Dec 2010, 07:10 PM
zac2613 Can I assume this has been given to... 3rd Dec 2010, 07:15 PM
iMage have a look at either my site,or... 3rd Dec 2010, 07:13 PM
iMage line 1 is only the <?php tho lol..... 3rd Dec 2010, 07:16 PM
CyberAff look at your "$selfpath" The... 3rd Dec 2010, 07:18 PM
iMage not sure where u are seeing... 3rd Dec 2010, 07:23 PM
CyberAff how did you faced this error? what... 3rd Dec 2010, 07:30 PM
iMage *sigh nvm.. i will go back to where... 3rd Dec 2010, 07:32 PM
CyberAff good luck (y) 3rd Dec 2010, 07:37 PM
iMage well seems the one tht wrote this... 3rd Dec 2010, 08:12 PM
SalmanAbbas007 Strange :/ why will it give a parse... 3rd Dec 2010, 08:34 PM
iMage nope im using notepad++ ... i... 3rd Dec 2010, 08:41 PM
SalmanAbbas007 send me the file then :| 3rd Dec 2010, 08:59 PM
Bread If I remember correctly Line 0 is... 3rd Dec 2010, 09:00 PM
SalmanAbbas007 nope line 1 = <?php -_- 3rd Dec 2010, 09:02 PM
Gavo add a line to enable full error... 3rd Dec 2010, 10:14 PM
Lock Down change: to: 3rd Dec 2010, 11:32 PM
iMage i tried tht as well Lockdown.. just... 4th Dec 2010, 01:31 AM
Bread Well there you go, it says theres... 4th Dec 2010, 01:35 AM
Lock Down Bread is right I believe. Remove... 4th Dec 2010, 05:53 PM
Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    StoneArcade.com

    Default php error

    im getting this error,i cant find the problem with it

    "parse error syntax error unexpected t_constant_encapsed_string on line 1"

    this is the random.php

    PHP Code: 
    <?php
    require_once '../../config.php';
    include (
    '../../includes/core.php');

    // Include language file
    include '../../language/'.$setting['language'].'.php';
    include 
    '../../'.$setting['template_url'].'/template_settings.php';

    $sql mysql_query("SELECT * FROM ava_games WHERE published=1 ORDER BY rand() LIMIT 1") or die(mysql_error());
    while(
    $row mysql_fetch_array($sql)) {
        
        
    $url GameUrl($row['id'], $row['name'], $row['category_id']);
            
        
    $name shortenStr($row['name'], $template['module_max_chars']);
        
        if (
    $setting['module_thumbs'] == 1) {
            
    $image_url GameImageUrl($row['image'], $row['import'], $row['url']);
            
    $image '<img src="'.$image_url.'" width= 100 height= 100 style="vertical-align: middle;" /> ';
        }
        else {
            
    $image '';
        }
        
        echo 
    '<center><a href="'.$url.'" title="Play '.$name.'">'.$image.'</a></center>';
    }
    ?>
    appretiate it if someone could advise
    iMage Reviewed by iMage on . php error im getting this error,i cant find the problem with it "parse error syntax error unexpected t_constant_encapsed_string on line 1" this is the random.php <?php require_once '../../config.php'; include ('../../includes/core.php'); Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    FreshWap.com KWWHunction.com
    The best method for fixing “parse errors” is to find the line which PHP is saying caused the error.

    Parse error: parse error, unexpected T_STRING in /home/virtual/site5/fst/var/www/html/akash/errors.php on line 1

    As you can see in the example above the number displayed at the end saying “on line 11” is the suspected location of the error. To find this line you can count down the lines of code including white space (made by the return key) to located the suspected line.

    If you notice that you have missed one of the semi-colons “;” then inset one and test the code once more to see if all the errors have been resolved

    However if the line number mentioned happens to be at the end of your code, then you will have to go back and look through out all your code to see if all the { } and “ ” are set up properly

    To find them more easily you can use the find facility that is available in most editors including notepad for windows.

    If you have a more sophisticated editor they usually highlight anything inside the quotation marks “ “ a different colour. If you like to make your code laid out in the right manner then you can use tab on all the { } to make sure they line up as this will allow you to spot the missing brackets quickly

    thanks
    Dear Haters,
    "I respect you so much, that's why I salute you with 1 middle finger!"

    Thank You !

  4.     
    #3
    Member
    Website's:
    StoneArcade.com
    ya i can copy paste to.. thanks. i cant find the problem in teh php on line 1 as suggested in the error on my site

    here is the error on my site

  5.     
    #4
    Respected Member
    Website's:
    FreshWap.com KWWHunction.com
    whats exactly the problem?
    Dear Haters,
    "I respect you so much, that's why I salute you with 1 middle finger!"

    Thank You !

  6.     
    #5
    Member
    Can I assume this has been given to you & you want to use it on your board?
    If so check the path is correct on line 1 & the others

  7.     
    #6
    Member
    Website's:
    StoneArcade.com
    have a look at either my site,or the screenshot i added to above post

  8.     
    #7
    Member
    Website's:
    StoneArcade.com
    line 1 is only the <?php tho lol.. i dont understand.. and this isnt a forum at all

  9.     
    #8
    Respected Member
    Website's:
    FreshWap.com KWWHunction.com
    look at your "$selfpath"

    The problem is the line "$SelfPath" doesn't have an equals between the variable and the string.
    Dear Haters,
    "I respect you so much, that's why I salute you with 1 middle finger!"

    Thank You !

  10.     
    #9
    Member
    Website's:
    StoneArcade.com
    not sure where u are seeing "$selfpath"

  11.     
    #10
    Respected Member
    Website's:
    FreshWap.com KWWHunction.com
    how did you faced this error? what did you do? what did you touched?

    did you changed something
    Dear Haters,
    "I respect you so much, that's why I salute you with 1 middle finger!"

    Thank You !

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error Detected in sitemap XML. How to remove error?
    By Bobby3711 in forum Web Application/Script Support
    Replies: 1
    Last Post: 21st Mar 2012, 03:51 PM
  2. Rapidleech error: Error openning rar process
    By tractor3231 in forum Server Management
    Replies: 13
    Last Post: 14th Dec 2011, 04:35 AM
  3. HTTP Error 500 (Internal Server Error):
    By joshmoore in forum Technical Help Desk Support
    Replies: 4
    Last Post: 25th Nov 2011, 03:59 AM
  4. wtf happened? (ipb 3.23 skin error causes fatal error)
    By mrHunt in forum Technical Help Desk Support
    Replies: 1
    Last Post: 25th Nov 2011, 03:55 AM
  5. Adding Domain Error in cPanel (Error from park wrapper:)
    By Ryza in forum General Discussion
    Replies: 0
    Last Post: 20th Feb 2011, 01:57 AM

Tags for this Thread

BE SOCIAL