php scripts run on version 5.3.0 but not on 4.4.9?
are there any basic reasons for this? standard migration stuff to get php to run in older versions like 4.4.9? I’m guessing you may need to see some code and errors? :)
Yup. You can run it in php my admin (if that doesn’t give you the same error the websites gives you!) or on the mysql progam on the command line (if you have access to that).
You need to change the password of the database user using the OLD_PASSWORD function. See here
Although I agree with Guido that “downgrading” a website from 5.3.0 to 4.4.9 is worse than upgrading the host from 4.4.9 to 5.3.0 … PHP4 is EOL, has been for almost 2 years now …
I’m building/testing on a local wampserver but my host runs a fixed set-up. My wamp is set up to run 5.3.0 php and 5.1.36 mysql.
All runs fine on this set up.
On deployment to the test area on my host, I can see its not running so I phpinfo’ed to get set up information and set up a similar set up in my wamp as a test bed. still not running.
My host runs mysql 5.0.67 and the php is 4.4.9 this is the destination platform for deployment.
I’ve worked with php scripts for years but am a newbee to php applications from scratch so pls excuse me in some areas, cheers for your help here
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in…
and
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in…
Could not select database
but the code runs fine in php 5 with newer apache, any ideas?
also how can I get my errors and warnings to display can I add an ini to a directory to overide ini settings?
Really, what you should do is ask your host to upgrade. Or find another host. Are you sure you can’t activate php 5? Many hosts give that option.
On deployment to the test area on my host, I can see its not running so I phpinfo’ed to get set up information and set up a similar set up in my wamp as a test bed. still not running.
You mean you set up mysql 5.0.67 and php 4.4.9 on your local host, and now it’s giving errors there too?