Php5

software development

#1

Hi,

Not able to access php5.
I have ‘#!/usr/local/php5/bin/php -q’ at the top of my page which I thought would point to php5 but phpinfo() always comes up PHP 4.4.8.
Any help would be appreciated.


#2

Add this line to .bash_profile if you’re using php5 while logged in, or to .bashrc if you’re running scripts in shell remotely:

export PATH=/usr/local/php5/bin:$PATH

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

Thanks for the reply.
Not sure where the .bash_profile exists. Php.ini?
Would that be for a private server setup?


#4

Both files are dotted (hidden) files in your user’s HOME directory.

They’re text files and you can edit them via ftp :wink:

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost