My parse error.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    My parse error.

    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

    #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.
    Last edited by youngbobby; 15.06.09, 17:10.

    Comment


      #3
      put ur index.php of that script toplist here

      Comment


        #4
        I'm currently away from pc making it hard to post the raw code. But i've edited my second post thank you.
        Last edited by youngbobby; 15.06.09, 17:18.

        Comment


          #5
          i m not able to open http://youngbobby.com/index.txt

          Comment


            #6
            Wow, pls try this:


            Thank you.

            Comment


              #7
              which toplist u using?

              Comment


                #8
                Its a mobtop script. Demo @ http://top.indowaps.net

                pls where did i go wrong?

                Comment


                  #9
                  try this

                  PHP Code:
                  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?>&amp;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?>&amp;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?>&amp;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>";
                  ?>

                  Comment


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

                    Comment


                      #11
                      ok then anytime mate.

                      Comment


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

                        Comment


                          #13
                          check if it working or not.

                          i changed in line 96

                          Comment


                            #14
                            in line 96?

                            Comment


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

                              Comment

                              Working...
                              X