NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Page not loading completly

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-13-2006, 04:28 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



Page not loading completly


I have this php script:

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>The Webmasters Tool - Google PageRank Check</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
include "metatag.php";
?>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<table width="641" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="674"><table width="641" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="51" ><img src="http://cdn.namepros.com/images/tl_header.gif" alt="-" width="51" height="36" /></td>
          <td class="headertop" width="543"></td>
          <td width="47"><img src="http://cdn.namepros.com/images/tr_header.gif" alt="-" width="47" height="36" /></td>
        </tr>
      </table></td>
  </tr>

  <tr> 
    <td><img src="http://cdn.namepros.com/images/header.gif" alt="header" width="641" height="145" /></td>
  </tr>
  <tr> 
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="3" class="randbannerbg"> <div align="center"> 
              <?php
                 
include ("randbanner.php");
                 
?>
            </div></td>
        </tr>
        <tr> 
          <td colspan="3"><div align="center" class="randbannerbg"><a href="advertise.php">Advertise 
              Here</a></div></td>
        </tr>
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/b_header_bg.gif)" width="99"><img src="http://cdn.namepros.com/images/bl_header.gif" alt="-" width="99" height="35" /></td>
          <td style="background: url(http://cdn.namepros.com/images/b_header_bg.gif)" width="436"></td>
          <td style="background: url(http://cdn.namepros.com/images/b_header_bg.gif)" width="106"><img src="http://cdn.namepros.com/images/br_header.gif" alt="-" width="106" height="35" /></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="641" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="185" valign="top"><table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="http://cdn.namepros.com/images/pipe_bg.gif" alt="-" width="28" height="5" /></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Main 
              Navigation</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="http://cdn.namepros.com/images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt" height="17"> 
            <?php
          
include "nav.php";
          
?>
          </td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="http://cdn.namepros.com/images/lcolumn_bottom.gif" alt="-" width="176" height="30" /></div></td>
        </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="http://cdn.namepros.com/images/pipe_bg.gif" alt="" width="28" height="5" /></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Please 
              Vote!</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="http://cdn.namepros.com/images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"> 
                  <?php
                 
include ("poll.php");
                 
?>
????: NamePros.com http://www.namepros.com/programming/197034-page-not-loading-completly.html
                </td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="http://cdn.namepros.com/images/lcolumn_bottom.gif" alt="-" width="176" height="30" /></div></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Affiliates</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="http://cdn.namepros.com/images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"> 
                  <?php
                 
include ("randlink.php");
                 
?>
                </td>
              </tr>
              <tr> 
                <td></td>
                <td><a href="advertise.php">Advertise Here</a></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="http://cdn.namepros.com/images/lcolumn_bottom.gif" alt="-" width="176" height="30" /><br />
            </div></td>
        </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="http://cdn.namepros.com/images/pipe_bg.gif" alt="-" width="28" height="5" /></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Google 
              Adsense </div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="http://cdn.namepros.com/images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"></td>
              </tr>
            </table>
            <div align="center"><?php
                 
include ("adsense.php");
                 
?>
            </div></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="http://cdn.namepros.com/images/lcolumn_bottom.gif" alt="-" width="176" height="30" /><br />
            </div></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Website 
              Statistics</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="http://cdn.namepros.com/images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"><table width="100%" border="0" cellspacing="2" cellpadding="0">
                    <?php 
                    
include"stats.php";
                    
?>
                    <tr> 
                      <?php
include 'config.php';
mysql_connect("$host""$user""$pass") or die(mysql_error()); 
mysql_select_db("$dbname") or die(mysql_error());


function 
update_sessions()
{
include 
'config.php';
mysql_connect("$host""$user""$pass") or die(mysql_error()); 
mysql_select_db("$dbname") or die(mysql_error());
    
$sid session_id();
    if(
$_SESSION['sitename_online'] == "1")
    {
        
mysql_query("UPDATE `sessions` SET `time` = '"time() ."' WHERE `sid` = '$sid'") or die(mysql_error());
    }
    else
    {
        
$_SESSION['sitename_online'] = 1;
        
mysql_query("INSERT INTO `sessions` SET `time` = '"time() ."', `sid` = '$sid'") or die(mysql_error());
    }
}
function 
get_onlineusers()
{
    
$min time() - 121;
    
mysql_query("DELETE FROM `sessions` WHERE `time` <= '$min'") or die(mysql_error());
    
$query mysql_query("SELECT COUNT(sid) FROM `sessions`");
    
$num mysql_fetch_row($query);
    return(
$num[0]);
}
update_sessions();
$online_users get_onlineusers();
echo(
"<td>Online:</td><td bgcolor='#F4F4F4'>$online_users</td>");
?>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="http://cdn.namepros.com/images/lcolumn_bottom.gif" alt="-" width="176" height="30" /><br />
              <img src="http://cdn.namepros.com/images/pipes_end_lcolumn.gif" width="176" height="14" alt="" /></div></td>
        </tr>
      </table></td>
    <td width="456" valign="top" class="mctop"><table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="http://cdn.namepros.com/images/pipes_maincontent.gif" alt="-" width="452" height="6" /></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mcbg">
        <tr> 
          <td width="452" height="32" class="contentheader"><div align="center">Main 
              Content</div></td>
        </tr>
        <tr> 
          <td><img src="http://cdn.namepros.com/images/main_content_header_under.gif" width="452" height="26" alt="" /></td>
        </tr>
        <tr> 
          <td class="mctop"><table width="94%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="5%"></td>
                <td width="95%"><table width="100%" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> <div align="center"><?php
error_reporting
(0);
@include_once 
'getpr.php';
if (!
class_exists('PageRankXor32')) {
    echo 
'<h2>Error: Unable to load getpr.php</h2>';
    exit;
}
if (isset(
$_GET['url'])) {
    
$oPR=new PageRankXor32();

    
ReportStart($isCSV);
    
$aUrl=explode("\n",$_GET['url']);
    
//Step thru array of urls
    
foreach ($aUrl as $Url) {
        
//Trim off any whitespace
        
$Url=trim($Url);
        
//Ignore blank lines
        
if ($Url!='') {
            if (
isUrlValid($Url)) {
                
$PageRank=$oPR->getRank($Url);
                ++
$UrlCount;
            } else {
                
$PageRank=$BadUrlText;
            }
            
ReportLine($Url,$PageRank,$isCSV);
        }
        
//Limit the number of urls allowed
        
if ($UrlCount >= $MaxUrls) {
            break;
        }
    }
    
ReportEnd($isCSV);
}

function 
isUrlValid($Url) {
    return (
strpos(strtolower($Url),'http://')===0);
}
function 
ReportStart($isCSV=FALSE) {
    if (
$isCSV) {
        echo 
'<pre>';
    } else {
        echo 
$GLOBALS['TableStart'];
    }
}
function 
ReportLine($Url,$PageRank,$isCSV=FALSE) {
    if (
$isCSV) {
        
$Quote=is_numeric($PageRank) ? '' '"';
        echo 
'"'.htmlspecialchars($Url).'",'.$Quote.$PageRank.$Quote."\n";
    } else {
        
$rank $PageRank;

echo 
'<a href=http://'.$_GET['url'].'>'.$_GET['url'].'</a> has a PR of: '.$rank.'<br /> ';

echo 
"Place an image on your site that will automatically update when your site's PR update.<br /><br />";
echo 
"<img src=\"primage.php?site=".$_GET['url']."\" width=\"62\" height=\"21\" alt=\"\"> <br /><br />";
echo 
"<input type=\"text\" size=\"75\" value=\"http://www.thewebmasterstool.com/primage.php?site=".$_GET['url']."\"> <br /><br />";
echo 
"<img src=\"primagewhite.php?site=".$_GET['url']."\" width=\"145\" height=\"65\" alt=\"\"> <br /><br />";
echo 
"<input type=\"text\" size=\"75\" value=\"http://www.thewebmasterstool.com/primagewhite.php?site=".$_GET['url']."\">";
    }
}
?> 
</div></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td class="mctop"><img src="http://cdn.namepros.com/images/mc_box_bottom.gif" alt="-" width="452" height="23" /></td>
        </tr>
      </table>
      <div align="center"> <img src="http://cdn.namepros.com/images/copyright_DO_NOT_STEAL_ELSE_LEGAL_ACTION.gif" alt="Free Templates" width="422" height="15" border="0" /> 
      </div></td>
  </tr>
  <tr> 
    <td colspan="2" valign="top"> <p align="center">
        <?php
                 
include ("bottom.php");
                 
?>
      </p></td>
  </tr>
</table>
</body>
</html>
It works and everything but when it comes to finishing running the php side the rest of HTML doesn't load.

Look at http://thewebmasterstool.com/prcheck...r-forums.be%2F
????: NamePros.com http://www.namepros.com/showthread.php?t=197034

to see what I mean

Thank you
asgsoft is offline  
Old 05-13-2006, 05:13 PM   #2 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice
 



Did you not notice you were using different syntax for the different includes? I cleaned a few things up:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>The Webmasters Tool - Google PageRank Check</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
include ("metatag.php");
?>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<table width="641" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="674"><table width="641" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="51" ><img src="images/tl_header.gif" alt="-" width="51" height="36" /></td>
          <td class="headertop" width="543"></td>
          <td width="47"><img src="images/tr_header.gif" alt="-" width="47" height="36" /></td>
        </tr>
      </table></td>
  </tr>

  <tr> 
    <td><img src="images/header.gif" alt="header" width="641" height="145" /></td>
  </tr>
  <tr> 
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="3" class="randbannerbg"> <div align="center"> 
              <?php
                 include ("randbanner.php");
                 ?>
            </div></td>
        </tr>
        <tr> 
          <td colspan="3"><div align="center" class="randbannerbg"><a href="advertise.php">Advertise 
              Here</a></div></td>
        </tr>
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/b_header_bg.gif)" width="99"><img src="images/bl_header.gif" alt="-" width="99" height="35" /></td>
          <td style="background: url(http://cdn.namepros.com/images/b_header_bg.gif)" width="436"></td>
          <td style="background: url(http://cdn.namepros.com/images/b_header_bg.gif)" width="106"><img src="images/br_header.gif" alt="-" width="106" height="35" /></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="641" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="185" valign="top"><table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="images/pipe_bg.gif" alt="-" width="28" height="5" /></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Main 
              Navigation</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt" height="17"> 
            <?php
          include ("nav.php");
          ?>
          </td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="images/lcolumn_bottom.gif" alt="-" width="176" height="30" /></div></td>
        </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="images/pipe_bg.gif" alt="" width="28" height="5" /></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Please 
              Vote!</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"> 
                  <?php
                 include ("poll.php");
                 ?>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="images/lcolumn_bottom.gif" alt="-" width="176" height="30" /></div></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Affiliates</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"> 
                  <?php
                 include ("randlink.php");
                 ?>
                </td>
              </tr>
              <tr> 
                <td></td>
                <td><a href="advertise.php">Advertise Here</a></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="images/lcolumn_bottom.gif" alt="-" width="176" height="30" /><br />
            </div></td>
        </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="images/pipe_bg.gif" alt="-" width="28" height="5" /></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Google 
              Adsense </div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"></td>
              </tr>
            </table>
            <div align="center"><?php
                 include ("adsense.php");
                 ?>
            </div></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="images/lcolumn_bottom.gif" alt="-" width="176" height="30" /><br />
            </div></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="lcum">
        <tr> 
          <td style="background: url(http://cdn.namepros.com/images/left_column_header_top.gif)" width="179" height="35"><div align="center">Website 
              Statistics</div></td>
        </tr>
        <tr> 
          <td><div align="right"><img src="images/left_column_2box.gif" width="176" height="25" alt="" /></div></td>
        </tr>
        <tr> 
          <td class="lcolumnt"> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="9%"></td>
                <td width="91%"><table width="100%" border="0" cellspacing="2" cellpadding="0">
                    <?php 
                    include ("stats.php");
                    ?>
                    <tr> 
                      <?php
include ("config.php");
mysql_connect("$host", "$user", "$pass") or die(mysql_error()); 
mysql_select_db("$dbname") or die(mysql_error());


function update_sessions()
{
include ("config.php");
mysql_connect("$host", "$user", "$pass") or die(mysql_error()); 
mysql_select_db("$dbname") or die(mysql_error());
    $sid = session_id();
    if($_SESSION['sitename_online'] == "1")
    {
        mysql_query("UPDATE `sessions` SET `time` = '". time() ."' WHERE `sid` = '$sid'") or die(mysql_error());
    }
    else
    {
        $_SESSION['sitename_online'] = 1;
        mysql_query("INSERT INTO `sessions` SET `time` = '". time() ."', `sid` = '$sid'") or die(mysql_error());
    }
}
function get_onlineusers()
{
    $min = time() - 121;
    mysql_query("DELETE FROM `sessions` WHERE `time` <= '$min'") or die(mysql_error());
    $query = mysql_query("SELECT COUNT(sid) FROM `sessions`");
    $num = mysql_fetch_row($query);
    return($num[0]);
}
update_sessions();
$online_users = get_onlineusers();
echo "<td>Online:</td><td bgcolor='#F4F4F4'>$online_users</td>";
?>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="17"><div align="right"><img src="images/lcolumn_bottom.gif" alt="-" width="176" height="30" /><br />
              <img src="images/pipes_end_lcolumn.gif" width="176" height="14" alt="" /></div></td>
        </tr>
      </table></td>
    <td width="456" valign="top" class="mctop"><table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="images/pipes_maincontent.gif" alt="-" width="452" height="6" /></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mcbg">
        <tr> 
          <td width="452" height="32" class="contentheader"><div align="center">Main 
              Content</div></td>
        </tr>
        <tr> 
          <td><img src="images/main_content_header_under.gif" width="452" height="26" alt="" /></td>
        </tr>
        <tr> 
          <td class="mctop"><table width="94%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="5%"></td>
                <td width="95%"><table width="100%" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> <div align="center"><?php
error_reporting(0);
@include_once ("getpr.php");
if (!class_exists('PageRankXor32')) {
    echo '<h2>Error: Unable to load getpr.php</h2>';
    exit;
}
if (isset($_GET['url'])) {
    $oPR=new PageRankXor32();

    ReportStart($isCSV);
    $aUrl=explode("\n",$_GET['url']);
    //Step thru array of urls
    foreach ($aUrl as $Url) {
        //Trim off any whitespace
        $Url=trim($Url);
        //Ignore blank lines
        if ($Url!='') {
            if (isUrlValid($Url)) {
                $PageRank=$oPR->getRank($Url);
                ++$UrlCount;
            } else {
                $PageRank=$BadUrlText;
            }
            ReportLine($Url,$PageRank,$isCSV);
        }
        //Limit the number of urls allowed
        if ($UrlCount >= $MaxUrls) {
            break;
        }
    }
    ReportEnd($isCSV);
}

function isUrlValid($Url) {
    return (strpos(strtolower($Url),'http://')===0);
}
function ReportStart($isCSV=FALSE) {
    if ($isCSV) {
        echo '<pre>';
    } else {
        echo $GLOBALS['TableStart'];
    }
}
function ReportLine($Url,$PageRank,$isCSV=FALSE) {
    if ($isCSV) {
        $Quote=is_numeric($PageRank) ? '' : '"';
        echo '"'.htmlspecialchars($Url).'",'.$Quote.$PageRank.$Quote."\n";
    } else {
        $rank = $PageRank;

echo '<a href=http://'.$_GET['url'].'>'.$_GET['url'].'</a> has a PR of: '.$rank.'<br /> ';

echo "Place an image on your site that will automatically update when your site's PR update.<br /><br />";
echo "<img src=\"primage.php?site=".$_GET['url']."\" width=\"62\" height=\"21\" alt=\"\"> <br /><br />";
echo "<input type=\"text\" size=\"75\" value=\"http://www.thewebmasterstool.com/primage.php?site=".$_GET['url']."\"> <br /><br />";
echo "<img src=\"primagewhite.php?site=".$_GET['url']."\" width=\"145\" height=\"65\" alt=\"\"> <br /><br />";
echo "<input type=\"text\" size=\"75\" value=\"http://www.thewebmasterstool.com/primagewhite.php?site=".$_GET['url']."\">";
    }
}
?> 
</div></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td class="mctop"><img src="images/mc_box_bottom.gif" alt="-" width="452" height="23" /></td>
        </tr>
      </table>
      <div align="center"> <img src="images/copyright_DO_NOT_STEAL_ELSE_LEGAL_ACTION.gif" alt="Free Templates" width="422" height="15" border="0" /> 
      </div></td>
  </tr>
  <tr> 
    <td colspan="2" valign="top"> <p align="center">
        <?php
                 include ("bottom.php");
                 ?>
      </p></td>
  </tr>
</table>
</body>
</html>
Shorty is offline  
Old 05-14-2006, 01:40 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



But that doesn't still fix the initial problem.
asgsoft is offline  
Old 05-14-2006, 02:59 AM   #4 (permalink)
Pro Coder & Designer
 
aween's Avatar
Join Date: Apr 2005
Location: Netherlands
Posts: 967
aween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really nice
 



You might lookup any other files that you included if there is a syntax error or something related. Because if so then that part and the part below it wont load completly.
__________________
aween web development
aween is offline  
Old 05-14-2006, 05:59 AM THREAD STARTER               #5 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



how can I do that?
asgsoft is offline  
Old 05-14-2006, 06:02 AM   #6 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice
 



Post the source files here and i'll go through them aswell, if you're willing to.
Shorty is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:45 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger