RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-08 Thread Michael Kelly
; "'Mike'" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, August 07, 2007 11:01 PM Subject: RE: [PHP] Problems with file_get_contents() and local PHP file > D'oh! > > The solution is so simple and clean that it almost hurts. I didn't see it in > the fir

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-07 Thread Jan Reiter
nesday, August 08, 2007 3:51 AM To: Mike Cc: php-general@lists.php.net Subject: Re: [PHP] Problems with file_get_contents() and local PHP file On Sun, August 5, 2007 1:37 am, Mike wrote: > Hey. My server is running PHP 4(Not actually my server so I don't know > the exact version) and

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-07 Thread Richard Lynch
On Sun, August 5, 2007 1:37 am, Mike wrote: > Hey. My server is running PHP 4(Not actually my server so I don't know > the exact version) and I'm having trouble with getting an image from a > PHP file. Use to find out exactly what you've got. > The problem is that originally this system was deve

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread 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 overhe

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Chris
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

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
vider worry about it! :-D Jan -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 12:45 AM To: php-general@lists.php.net Subject: Re: [PHP] Problems with file_get_contents() and local PHP file Hah, it works! I had to fiddle around a few other errors but tha

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Mike
Hah, it works! I had to fiddle around a few other errors but that did the trick! Thank you so much. :) -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
Hi! If you want file_get_contents() to open the compiled data, force the server to compile it first. ;-) Do not open the file from filesystem, use the ULR (http://server/flash_frames.php?...). For this fopen() wrappers have to be enabled. http://www.php.net/manual/en/function.file-get-contents.ph