Thanks, but I know how to open remote locations. What I need to know is how PHP deals with the http response codes and how I can "manipulate" them to route my users to the relevant link.
I read the entire contents of the file into a string, but there aren't any http codes contained in this either with file or fopen. Is it hidden somewhere or how can I find them.
From what I saw in the manual it didn't say anything about this.
Best Regards,
Marius
vincent wrote:
You can open remote locations using fopen("http://www.somewhere.something");
check the manual.
If you want more control over what you do with the request, use fsockopen()