You are here: Re: Fatal error during include :( « PHP Programming Language « IT news, forums, messages
Re: Fatal error during include :(

Posted by Daniel Tryba on 05/13/05 16:29

Azeus <IFARTINYOURGENERALDIRECTION@mp.com> wrote:
>> include ('http://something.somewhere/file.php?a=act')
>
> This really can't be done. Only local files can be included.

Really? Then the manual should be fixed:
http://nl3.php.net/include/
'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.'

>> 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.

Maybe not:
http://nl3.php.net/include/
"Warning

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."

>> 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.

So example 16-7 on http://nl3.php.net/include/ is wrong?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация