Nicola
Basic Pleskian
Hi,
I have a php script, placed in virtual host 1, that has to download files placed in another virtualhost.
I try to download this file via http ("http://www.site1.com/file.pdf") or directly on the server ("/var/www/...") but I can not access to this file: the function used is "file_get_contents()".
I set the variables "allow_url_fopen" to "On", "open_basedir" to the path where placed the file and SELinux policies to permissive mode but nothing changed.
The strange thing is that the file is accessible via browser...someone have any idea?
Thanks in advance
I have a php script, placed in virtual host 1, that has to download files placed in another virtualhost.
I try to download this file via http ("http://www.site1.com/file.pdf") or directly on the server ("/var/www/...") but I can not access to this file: the function used is "file_get_contents()".
I set the variables "allow_url_fopen" to "On", "open_basedir" to the path where placed the file and SELinux policies to permissive mode but nothing changed.
The strange thing is that the file is accessible via browser...someone have any idea?
Thanks in advance