Hi All,
Hopefully a simple question for people in the know. I need to rewrite a simple PERL script in to PHP.
The purpose of the script is to call a URL of the form http://www.xxx.xxx/script.pl?a=name
and to read the HTTP headers returned by this script.
In PERL this is simple enough using the LWP::Useragent and HTTP::Request modules.
How can I approach this in PHP though? Can someone please point me in the direction of which PHP functions / libraries are available to access remote URL's and to read the returned content and header information.
The script will need to run under PHP 4.3.
I'd appreciate a little guidance on where to look in the documentation for the right functions to use.
I did find the function get_headers($url) which would be perfect but for the fact that it seems to be for PHP 5 only.
Presumably there is a way of making URL calls in PHP 4?
Many thanks
Bill