I need a simple proxy PHP function/script that can download a file from a foreign domain, and also allow me to modify the data (as strings) before retransmit. Any ideas better than "readfile($url)" ??
file_get_contents(), fopen(), http_get() or curl are methods and functions you probably want to take a look at. Depending on what you are downloading and how you want to change it you could use XML Parser, regex or a simple str_replace().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With