Solved

Need help installing json on mac

Posted on 2014-11-11
4
178 Views
Last Modified: 2014-11-12
Hi Experts,

I am trying to install a script, but having trouble installing the json php extension.  I am running php version 5.1.6,  i know upgraded has it built in but to run my script had to downgrade.  

How do you install json on php in mac?  i downloaded pear and followed soem steps but cannot get it to work.
0
Comment
Question by:kasondeneddy
  • 2
  • 2
4 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 40435612
I don't think you can get it to work below PHP 5.2.  Even PHP 5.3 is several years old and obsolete today; current versions are 5.4.34, 5.5.18 and 5.6.2.  The alternative question you may want to ask is "why is my code unusable with modern versions of PHP?"

Ref: http://php.net/
Ref: http://php.net/manual/en/function.json-decode.php
0
 

Author Comment

by:kasondeneddy
ID: 40437045
Thanks Ray paseur, after looking further into it, discovered that I really shouldn't be working with code that works on much earlier versions.  Learn a lot here..and thanks for your feedback
0
 

Author Closing Comment

by:kasondeneddy
ID: 40437046
Lead in the right direction...thanks!
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 40437053
Thanks for the points and best of luck with it! ~Ray
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question