Hi all,
I need a little script that connects to a remote web server, reads the contents of a file and writes them in a local file.
Something like www.example1.com -> connects to www.example2.com and reads file -> wites file in www.example1.com.
The problem I'm facing is that I need this to work independently of safe_mode and allow_url_fopen being set or not in www.example1.com.
I tried using fopen and it worked very well if allow_url_fopen is set. Same thing for copy().
How would you do it?
My next approach was using fsockopen but I'm very new to all this and can't make it work. Is there any other way to do it? Would fsockopne even work on a safe_mode set server?
Thanks for any help.