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:[EMAIL PROTECTED] 
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to