RE: [PHP] Problems with file_get_contents() and local PHP file
| From: | Jan Reiter | Date: | Mon, 06 Aug 2007 01:53:44 +0000 |
| Subject: | RE: [PHP] Problems with file_get_contents() and local PHP file | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260220@lists.php.net to get a copy of this message | ||
You've got a point about that.
Try
<?php
echo file_get_contents("http://localhost/path/to/webdir");
?>
First ... If you see your own webpage it's okay, else don't mess with it.
-----Original Message-----
From: Chris [mailto:dmagick@gmail.com]
Sent: Monday, August 06, 2007 2:51 AM
To: Jan Reiter
Cc: 'Mike'; php-general@lists.php.net
Subject: Re: [PHP] Problems with file_get_contents() and local PHP file
Jan Reiter wrote:
> Nice to hear that!
>
> If you expect heavy traffic on the site using that script you might want
try
> to save some DNS and http connection overhead by stating the url with
> http://localhost/ and so on.
Which will most likely point to a different virtual host and cause you
even more problems trying to track it down.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php