Results 1 to 3 of 3

Thread: Hack Repair: I'm using file_get_contents poorly.

  1. #1
    Join Date
    Dec 2005

    Hack Repair: I'm using file_get_contents poorly.

    Hi all.

    I have to get the results of a particular php script into a string. As far as I can tell, the php script won't present readable data without the use of print_r (perhaps you can tell me of a different way so that I can use it in conjunction with a strstr check).

    As a bandaid, I'm currently forced to call file_get_contents('http://thelocation.com/thescript.php') on the very same server as my project. Locally, it only returns the php data included in the file.

    ob_start() is already running, so I can't make use of ob_start() - grab the ob value - ob_clean() or whatever.

    I could use some direction here.


  2. #2
    Join Date
    Dec 2005
    print_r() takes an optional second parameter you know.....if that helps.

    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...

  3. #3
    Join Date
    Dec 2005
    Excellent. Thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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