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

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]


Удаленная работа для программистов  •  Как заработать на 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

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