I am forced to use fsockopen as opposed to fopen in my script. This seems like an easy operation, but I cant figure out how to do it.
I can connect fine to the server by using the domain name. But I can't figure out how to access a page further down the path.
For example:
The above works fine.
But how to I get the a file located in ? I can't just add it to the fsockopen argument, because it just wants a domain or ip. So how do I access a page othe than the root?
Thanks in advance.
I can connect fine to the server by using the domain name. But I can't figure out how to access a page further down the path.
For example:
Code:
fsockopen('[URL unfurl="true"]www.example.com',80,$errno,$err,30)[/URL]
The above works fine.
But how to I get the a file located in ? I can't just add it to the fsockopen argument, because it just wants a domain or ip. So how do I access a page othe than the root?
Thanks in advance.