Posted by Azeus on 05/13/05 16:22
Rafal Zawadzki wrote:
> Hello, I am using php5 and I've got this piece of code:
>
> include ('http://something.somewhere/file.php?a=act')
This really can't be done. Only local files can be included.
> 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
This message says what I said before.
>
> My php.ini contains:
>
> safe_mode = Off
> allow_url_fopen = On
fopen says it all. This means php allows you to open a file from a URL.
So if you want to read a remote file use fopen.
> <? phpinfo() ?> shows that this values are correct.
>
>
> Why it is happens? What can I do?
>
> Cheers,
>
Navigation:
[Reply to this message]
|