|
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
Navigation:
[Reply to this message]
|