Reply to Re: File?

Your name:

Reply:


Posted by Rik on 05/29/06 14:22

r.knipscheer@home.nl wrote:
> Hi,
>
> i've written a function to check if an image on a server exists:
> i send the url to check to the function and check it with:
>
> $file = @file ($url);
> if ($file) {
>
> this works ok, as long as i use it on my computer. As soon as i upload
> it to my webserver this function won't work. Is this a known security
> issue?

Is a security issue:

www.php.net:
Tip: You can use a URL as a filename with this function if the fopen
wrappers have been enabled. See fopen() for more details on how to specify
the filename and Appendix M for a list of supported URL protocols.

phpinfo()
check allow_url_fopen

Grtz,
--
Rik Wasmus

[Back to original 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

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