RE: Problems with file_get_contents() and local PHP file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Monday, August 06, 2007 2:51 AM
To: Jan Reiter
Cc: 'Mike'; php-general@xxxxxxxxxxxxx
Subject: Re:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux