php 5.4 or 5.5

Web hosting discussion, programming, and shared and dedicated servers.
12 posts Page 2 of 2
by bwolff » Tue Feb 18, 2014 5:26 pm
Will this change also affect stand alone scripts? I have PHP script files being called from an external site and I want it to run 5.0 or higher(5.3) each time it is called. I tried changing the path with 'export PATH=/opt/php53/bin/:$PATH' but that seemed to only change it for the session I was logged in. I was not able to try 'source .bashrc' because I am running Bourne shell(sh). Could this be added to a local profile to set the path to always include /opt/php53/bin? I'm ok with 5.3, 5.4 or 5.5 but currently the default is 4.4.7 and many of the commands running in 4.4.7 are deprecated in newer versions. I'm concerned about the PHP code becoming out of date. Will Sonic.net eventually change the default script path to be 5.0?
by joemuller » Tue Feb 18, 2014 5:36 pm
If you're running the Bourne shell (sh), you can add the following to .profile:

Code: Select all

PATH=/opt/php53/bin:$PATH
export PATH
I'm a proud employee of Sonic.net! :-)
12 posts Page 2 of 2