php file_get_contents and &
- by Patrick
Hello all,
I'm trying to use php's file_get_content('a url');
The thing is if the url has '&' in it, for example
file_get_contents('http://www.google.com/?var1=1&var2=2')
it automatically make a requests to www.google.com/?var1=1&<no space here>;var2=2
How do I prevent that from happening?