Reply to Re: readfile accross domains

Your name:

Reply:


Posted by J.O. Aho on 12/23/06 19:58

hol wrote:

> When I try
> echo readfile("http://www.otherdomain.com/sometext.txt");
> it fails

From the manual page:
http://www.php.net/manual/en/function.readfile.php

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.

fopen wrappers:
http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen

fopen:
http://www.php.net/manual/en/function.fopen.php

Appendix M:
http://www.php.net/manual/en/wrappers.php


> What am I doing wrong? I read on the PHP manual that it should work across
> different domains.

It works only if it's allowed in the php.ini.


--

//Aho

[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

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