* Aja · My · Ajax *

PHP cURL Class Example

Here is an easy class version of the cURL routines in the AjaMyAjax library:

Main Module Source

The class is initialized and called like this:



(Note all properties have defaults that are optionally overridden when each
 instance is created as in the above example.)

cURL Class Source

For
AJAX
 style use primarily and supports
XML
,
XSLT
, and
JSON
 file formats...
But use XMLHttpRequest if you need innerHTML page updates.






This or more examples can be accessed at AjaMyAjax...

More PHP tips can be found at PHP Notes...

For Zend Framework with PHP cURL try this: Basic Zend cURL example...