You are here: Re: [PHP] Re: Server includes and Absolute URL « PHP « IT news, forums, messages
Re: [PHP] Re: Server includes and Absolute URL

Posted by Jochem Maas on 02/24/05 17:04

Jason Barnett wrote:
> Jacques wrote:
>
>>Can make use of an absolute URL when using require() or require_once()?
>>
>
>
> Yes, as long as you have allow_url_fopen = 1 in your php.ini

unless you absolutely 100% trust the server in question I would say that
its madness to include/require a file from another server...

e.g. you could include this wonderful little html file:
http://example.com/evilhaxor.html

which might contain.

<?php

echo file_get_contents('/etc/passwd');
exit;

?>

guess what that does when you include it :-),
just so you know there are pitfalls, some are quite deep!

>
>
>>Regards
>>
>>Jacques
>
>
>

 

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

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