@lists.php.net
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 first approach!
There is a way to go all this, without using 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 I'm having trouble with getting an image from a
PHP file.
Use ?php phpinfo();? to find out exactly what you've got.
The problem is that originally this
-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 I'm having trouble with getting an image from a
PHP file.
Use
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.
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
-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 that did the
trick! Thank you so much
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
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
8 matches
Mail list logo