Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Fatal error during include :(
- Rafal Zawadzki
May 13, 2005, 5:28 pm
rate this thread
Hello, I am using php5 and I've got this piece of code:
include ('http://something.somewhere/file.php?a=act ')
PHP instead of including file five me:
[13-May-2005 12:17:38] PHP Fatal error: Unknown: Security alert:
Include filename is an URL in Unknown on line 0
My php.ini contains:
safe_mode = Off
allow_url_fopen = On
<? phpinfo() ?> shows that this values are correct.
Why it is happens? What can I do?
Rafal Bluszcz Zawadzki
Re: Fatal error during include :(
Really? Then the manual should be fixed:
'If "URL fopen wrappers" are enabled in PHP (which they are in the
default configuration), you can specify the file to be included using a
URL (via HTTP or other supported wrapper - see Appendix L for a list of
protocols) instead of a local pathname.'
Windows versions of PHP prior to PHP 4.3.0 do not support accessing
remote files via this function, even if allow_url_fopen is enabled."
So example 16-7 on http://nl3.php.net/include/ is wrong?