My parse error.

Started on the old forum in June 2009 · view the original in the archive · old links redirect here

23 replies · 1,130 views · started 17 years ago · 1 min read

8 participants
youngbobby Developer · 55 posts #1

Hey guys, i'm new here and i've testing my toplist script in with my free host. I was able to do the index.php and i uploaded it. I get parse error on line 96.

Someone can check up http://youngbobby.uuuq.com to confirm. I really need help

Naijatop.net = Mobile Traffic Booster 👑

📖 YoungBobby.com = Bobby's BLoG 😁

You're Welcome !!

youngbobby Developer · 55 posts #2

Ok guys, here is the url of the script i used for the index page. http://youngbobby.com/index.txt

I changed it to .txt so that it'll be easier to see. I'll be so glad if someone will tell me why i get that parse error and how to fix it. Thanks for your concern.

Naijatop.net = Mobile Traffic Booster 👑

📖 YoungBobby.com = Bobby's BLoG 😁

You're Welcome !!

godzilla Developer · 119 posts #3

put ur index.php of that script toplist here

youngbobby Developer · 55 posts #4

I'm currently away from pc making it hard to post the raw code. But i've edited my second post thank you.

Naijatop.net = Mobile Traffic Booster 👑

📖 YoungBobby.com = Bobby's BLoG 😁

You're Welcome !!

godzilla Developer · 119 posts #7

which toplist u using?

godzilla Developer · 119 posts #9

try this

admob_setcookie();

<?php
if($gzip=="on"){OB_Start("ob_gzhandler");}else{OB_Start();}
list($msec,$sec)=Explode(CHR(32),MicroTime());
$headtime=$sec+$msec;
include("func.php");
include("conf.php");
Connect($dbserver,$dbname,$dbuser,$dbpass);
resetcou();
$pwd=$_GET["pwd"];
$uid=$_GET["uid"];
$sid=$_GET["sid"];
if($sid>0)
{
$sites=mysql_fetch_array(mysql_query("SELECT * FROM sites where id='".$sid."' and banned='0';"));
$hin=$sites[6]+1;
mysql_query("UPDATE sites SET hin='".$hin."' WHERE id='".$sid."'");}

//HEADERS

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";

echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" 
\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
echo "<head>\n";
echo "<meta name=\"keywords\" content=\"$meta_keyw\"/>\n";
echo "<meta name=\"description\" content=\"$meta_desc\"/>\n";
echo "<meta name=\"robots\" content=\"index, follow\"/>\n";
echo "<meta name=\"revisit-after\" content=\"1 days\"/>\n";
echo "<meta name=\"rating\" content=\"general\"/>\n";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
?>
<title>Top.MobiBobby.com || Great Mobile Toplist</title>

<link rel="stylesheet" type="text/css" href="themes/stylesheet.css"/>

</head>

//HEADERS END

<body>
<div class="wrapper">
<div class="header">

<img src="<?php echo $site_logo; ?>"alt="Top.MobiBobby.com" />"

<div class="toptitle">Community of Great Sites</div>
</div>

<div class="center">
<b>Ads:</b>
<br />
<?php include("advert.php"); ?>
<br />
<?php include("advert2.php"); ?>
</div>

<div class="gap"></div>

<div class="title"><img src="image/medal.png" alt="*" /> Top Sites</div>

<div class="gap"></div>

<img src="image/hotstar.png" alt="*" /> <a href=\"top20.php?uid=<?php echo $uid; ?>&pwd=<?php echo $pwd; ?>">TOP 20 Sites</a>

<br />

<?php
$rgs=MySQL_Fetch_Array(MySQL_Query("SELECT COUNT(*) FROM sites WHERE dhits>='1'"));
?>

<div class="dark">
<img src="image/bigstar.png" alt="*" /> <a href="counter_top.php?uid=<?php echo $uid; ?>&pwd=<?php echo $pwd; ?>">Counter Top (<php echo $rgs[0]; ?>)</a>
</div>

<img src="image/star2.png" alt="*" /> <a href="new.php?uid=<?php echo $uid; ?>&pwd=<?php echo $pwd; ?>">New Sites</a>

<div class="gap"></div>
 
<?php
$result=MySQL_Query("SELECT * from sites WHERE hin >='0' and banned='0' ORDER BY RAND(".time()." * ".time().") LIMIT 1");
$num_rows=MySQL_Num_Rows($result);
$rowrandy=MySQL_Fetch_Array($result);
$id=$rowrandy["id"];
$snm=HTMLSpecialChars($rowrandy["sitename"]);
$rgs=MySQL_Fetch_Array(MySQL_Query("SELECT COUNT(*) FROM sites"));
$cvs=MySQL_Fetch_Array(MySQL_Query("SELECT COUNT(*) FROM sites where hin>='1'"));
echo"<b>$rgs[0]</b> Registered Sites!<br/>";
echo"<b>$cvs[0]</b> Send hits to us!<br/>";
$lrd=MySQL_Fetch_Array(MySQL_Query("SELECT text FROM misc where dscr='CLR'"));
$lrd=StrToTime($lrd[0]);
$nrd=MKTime(0,0,0,date("m",$lrd),date("d",$lrd)+1,date("Y",$lrd));
$active=MySQL_Fetch_Array(MySQL_Query("SELECT sitename,id FROM sites"));
$ttr=$nrd-Time();
$dz=Ceil($ttr/60/60/24);
$tm12=Time()-(12*60*60);
$del=MySQL_Query("UPDATE sites SET hin='0', hout='0', dhits='0' WHERE time='".$tm12."'");
$date=Date("H:i:s");
$hr=Date("H");
$hour=(23-$hr);
$mn=Date("i");
$min=(60-$mn);
$min1=$min-1;
echo"Counters will reset in <b>$hour</b> hours <b>$min1</b> minutes.<br/>";
echo"<b>© ".date("Y")." $site_name</b><br/>";
echo"</div>";
echo"<div class=\"center\">";
list($msec,$sec)=explode(chr(32),microtime()); 
if($script_timer=="on"){echo"<tt>[".round(($sec+$msec)-$headtime,5)." sec.]</tt><br/>";}
if($gzip=="on")
{
	$Contents=ob_get_contents();
	$gzib_file=strlen($Contents); 
	$gzib_file_out=strlen(gzcompress($Contents,9));
	$gzib_pro=round(100-(100/($gzib_file/$gzib_file_out)),1);
	$traf=$gzib_file_out+$_SESSION['traf'];
	$_SESSION['traf']=$traf;
	$traf_kb=round($traf/1024,2);
	echo"<img src=\"gzip_image.php?num=$gzib_pro\" alt=\"\"/>";
	//echo"<br/>TRAFFIC[".$traf_kb." KB]";
}
if($gzip=="off")
{
	$Contents=ob_get_contents();
	$gzib_file=strlen($Contents);
	$traf=$gzib_file+$_SESSION['traf'];
	$_SESSION['traf']=$traf;
	$traf_kb=round($traf/1024,2);
	echo"<font color=\"red\"><tt>[GZIP-OFF]</tt></font>";
	//echo"<br/>TRAFFIC[".$traf_kb." KB]";
}
echo"</div>";
echo"</body></html>";
?>
youngbobby Developer · 55 posts #10

Thanks buddy, what was changed? I really appreciate this. I'll see if it works.

Naijatop.net = Mobile Traffic Booster 👑

📖 YoungBobby.com = Bobby's BLoG 😁

You're Welcome !!

youngbobby Developer · 55 posts #12

Um, can you tell me what you changed or fixed. I can't seem to identify it. Thanks

Naijatop.net = Mobile Traffic Booster 👑

📖 YoungBobby.com = Bobby's BLoG 😁

You're Welcome !!

godzilla Developer · 119 posts #13

check if it working or not.

i changed in line 96

youngbobby Developer · 55 posts #15

Yup thats my point. I'm not able to identify line 96 i've been going through the script line by line with the one u posted above. It'll make my work easier if you would post a bit of the line in your next post. Thank you.

Naijatop.net = Mobile Traffic Booster 👑

📖 YoungBobby.com = Bobby's BLoG 😁

You're Welcome !!

subzero Super moderator Fellow · 3,954 posts #16

Look buddy.

Your being cool and all

I will inform you on this hiden Wap Masters ssh app..

Its free

http://notepad-plus.sourceforge.net/uk/site.htm

Download and install enjoy bro lol

its notepad ++

this will show you lines and other toolz what note pad done do, We all use it so now you can Enjoy !! 🙂

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

metulj Super moderator Principal · 1,726 posts #17

this is also free and user friendly editor 👌

http://www.pspad.com/

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

ranzit2 Developer · 187 posts #20

youngbobby wrote: You guys are way TOO HOT for me. Thanks again. 😉

godzilla, i'm still waiting for ya.

if u r editing with notepad then press ctrl+g and then enter the line

she is beautifull than php.and i love her more than php.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close