Results 1 to 10 of 23
Hybrid View
-
3rd Dec 2010, 06:39 PM #1OPMemberWebsite's:
StoneArcade.comphp 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>';
}
?>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
-
3rd Dec 2010, 07:07 PM #2Respected MemberWebsite's:
FreshWap.com KWWHunction.comThe 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
thanksDear Haters,
"I respect you so much, that's why I salute you with 1 middle finger!"
Thank You !
-
3rd Dec 2010, 07:08 PM #3OPMemberWebsite's:
StoneArcade.comya 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
-
3rd Dec 2010, 07:10 PM #4Respected MemberWebsite's:
FreshWap.com KWWHunction.comwhats exactly the problem?
Dear Haters,
"I respect you so much, that's why I salute you with 1 middle finger!"
Thank You !
-
3rd Dec 2010, 07:15 PM #5Member
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
-
3rd Dec 2010, 07:13 PM #6OPMemberWebsite's:
StoneArcade.comhave a look at either my site,or the screenshot i added to above post
-
3rd Dec 2010, 07:16 PM #7OPMemberWebsite's:
StoneArcade.comline 1 is only the <?php tho lol.. i dont understand.. and this isnt a forum at all
-
3rd Dec 2010, 07:18 PM #8Respected MemberWebsite's:
FreshWap.com KWWHunction.comlook 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 !
-
3rd Dec 2010, 07:23 PM #9OPMemberWebsite's:
StoneArcade.comnot sure where u are seeing "$selfpath"
-
3rd Dec 2010, 07:30 PM #10Respected MemberWebsite's:
FreshWap.com KWWHunction.comhow did you faced this error? what did you do? what did you touched?
did you changed somethingDear Haters,
"I respect you so much, that's why I salute you with 1 middle finger!"
Thank You !
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Error Detected in sitemap XML. How to remove error?
By Bobby3711 in forum Web Application/Script SupportReplies: 1Last Post: 21st Mar 2012, 03:51 PM -
Rapidleech error: Error openning rar process
By tractor3231 in forum Server ManagementReplies: 13Last Post: 14th Dec 2011, 04:35 AM -
HTTP Error 500 (Internal Server Error):
By joshmoore in forum Technical Help Desk SupportReplies: 4Last Post: 25th Nov 2011, 03:59 AM -
wtf happened? (ipb 3.23 skin error causes fatal error)
By mrHunt in forum Technical Help Desk SupportReplies: 1Last Post: 25th Nov 2011, 03:55 AM -
Adding Domain Error in cPanel (Error from park wrapper:)
By Ryza in forum General DiscussionReplies: 0Last Post: 20th Feb 2011, 01:57 AM
themaCreator - create posts from...
Version 3.45 released. Open older version (or...