Question

Problem with JSON PHP extension.

Hello, how i can install that extension? I install cURL and that’s ok… but now i need to install that. I create facebook connect on my web page. Here is link with my error : http://stefanvukovic.me/facebooksdk/fblogin.php

*i send ticket for this… and i’am sorry… now i see this community.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

That did the trick… thanks.

The JSON extension is no longer included with the base php package, you need to install it separately: <pre>sudo apt-get install php5-json</pre>

What result do you get if you run this PHP snippet: <br> <br><?php <br>echo function_exists( ‘json_decode’ ); <br>?> <br> <br>The JSON extension is included by default in PHP, but just to be sure, you can verify it by looking through PHP’s info output: <br> <br><?php <br>phpinfo(); <br>?> <br>