Need a little help

Discussion in 'PHP' started by cipcip, Nov 8, 2008.

  1. #1
    Hello,

    I am trying to use your pagerank script available here: http://programming-designs.com/page/web … amp;item=2

    When I include the pagerank.php file on my index, it shows me the source of the page when i access it and not the page that was supposed to.

    My header looks like this:

    <?php
    error_reporting(0);
        include('pagerank.php');
        include('data.class.php');
        include('config.php');
        include('tag_cloud.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    and so on .....
    Code (markup):
    And when i comment it, the page works. Can someone please give me an idea of what to do ?

    Thank you!
     
    cipcip, Nov 8, 2008 IP
  2. Lordo

    Lordo Well-Known Member

    Messages:
    2,082
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Turn on the error_reporting and see if there is an error message.
     
    Lordo, Nov 8, 2008 IP
  3. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    At a guess, I'd say you don't have the code source for the pagerank.php, only the html output that the page has. Can you correct the link above for us, as it is broken, and maybe someone can help
     
    JAY6390, Nov 8, 2008 IP
  4. cipcip

    cipcip Well-Known Member

    Messages:
    1,935
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    160
    #4
    cipcip, Nov 9, 2008 IP