PHP simple proxy

I need a simple PHP / script proxy function that can download a file from someone else's domain, and also allow me to modify the data (like strings) before retransmitting. Any ideas better than "readfile ($ url)" ??

+4
source share
3 answers

file_get_contents (), fopen (), http_get () or curl are the methods and functions that you probably want to take a look at. Depending on what you load and how you want to change it, you can use XML Parser , regular expression or just str_replace ().

+11
source

Source: https://habr.com/ru/post/1286782/


All Articles