alternative to php HttpRequest
Posted: Mon Dec 28, 2009 3:13 pm
I was using the HttpRequest class in my php script, but when I uploaded this script to my hosting provider's server, I get a fatal error when executing it:
Fatal error: Class 'HttpRequest' not found in ... on line 87
I believe the reason is because my hosting provider's php.ini configuration doesnt include the extension that supports HttpRequest.
I am making this script for many different users (which they will use on their websites) and I don't want to depend on their hosting provider's php.ini configuration for my script to work. That said, is there a workaround to HttpRequest in php that is supported by most, if not all, hosting providers which I can use to send HTTP requests? A more ubiquitous alternative?
Thanks in advance.
Dhruv
Fatal error: Class 'HttpRequest' not found in ... on line 87
I believe the reason is because my hosting provider's php.ini configuration doesnt include the extension that supports HttpRequest.
I am making this script for many different users (which they will use on their websites) and I don't want to depend on their hosting provider's php.ini configuration for my script to work. That said, is there a workaround to HttpRequest in php that is supported by most, if not all, hosting providers which I can use to send HTTP requests? A more ubiquitous alternative?
Thanks in advance.
Dhruv