RE: [SOLVED] class to generate Javascript Object ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





> Thank you, worked beautifully.

just don't ignore this:
PHP 5 >= 5.2.0

if you are trying to create something portable, you should consider a Pear fallback ...

if(!function_exists('json_encode')){
    require_once 'JSON.phps';
    // http://mike.teczno.com/JSON/JSON.phps
    function json_encode($o){
        $json = new Services_JSON;
        return $json->encode($o);
    }
}

Regards
 		 	   		  
_________________________________________________________________
Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux