Activity Stream
48,167 MEMBERS
6824 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
  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
    Website's:
    StoneArcade.com
    have a look at either my site,or the screenshot i added to above post

  7.     
    #6
    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

  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