cancel
Showing results for 
Search instead for 
Did you mean: 

What version of php ?

UncleZen
Rising Star
Posts: 111
Thanks: 16
Fixes: 2
Registered: ‎15-08-2008

What version of php ?

I seem to recall that you cant run phpinfo() to find out what version of php is running. Which bears out what Ive seen.
I cant find, using the search exactly what version of php is running. Can anyone enlighten me?
If it's less than 5.5 what is used to encrypt passwords before the introduction of password_hash() ?
Thanks
2 REPLIES 2
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: What version of php ?

The version of PHP currently on Hostopia ccgi is 5.3.28.
As mentioned in the PHP manual http://php.net/manual/en/faq.passwords.php you could try the third party PHP compatibility library available for PHP 5.3.7 and later. The other option is to use crypt() directly with the blowfish algorithm.
David
7up
Community Veteran
Posts: 15,830
Thanks: 1,587
Fixes: 17
Registered: ‎01-08-2007

Re: What version of php ?

Quote from: UncleZen
I seem to recall that you cant run phpinfo() to find out what version of php is running. Which bears out what Ive seen.

Which is very strange isn't it.. never come across any other hosts that don't allow the use of it  Crazy
Quote from: UncleZen
If it's less than 5.5 what is used to encrypt passwords before the introduction of password_hash() ?

I've always used the sha1 function myself.
I need a new signature... i'm bored of the old one!