SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member
    Join Date
    Dec 2004
    Location
    a
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I can't get it to work, can you help me?

    Is it possible to get the source of the page you are on and store it as a variable?

  2. #2
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can try this
    PHP Code:
    $file $_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'];
    ob_start();
    highlight_file($file);
    $code ob_get_contents();
    ob_clean();
    echo 
    $code
    ---------------------------
    Errors = Improved Programming.
    My Site

  3. #3
    Non-Member bronze trophy geniusgoalie's Avatar
    Join Date
    Sep 2004
    Location
    Buffalo, USA
    Posts
    979
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, I was just trying to figure out the same thing! How odd!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •