Reputation: 2728
My server does not support json_encode or json_decode, I am wanting to send a 2D array to a different server using serialize()
, then process it and print it a json encoded array. I'm afraid that the limitations of GET would not allow for longer arrays. How can I do this?
Upvotes: 0
Views: 423
Reputation: 15374
If you can't upgrade PHP to get the built-in JSON functions, use a PHP implementation of JSON encoding, such as this (found through a quick search; there may be better implementations).
Or use POST (through libcurl, as others have noted) if your GET parameters are long.
Upvotes: 2