Php scripts run on version 5.3.0 but not on 4.4.9?

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? :):cool::wink:

any help would be cool as well stuck! :blush:

hi there, wish i could, issue is its on a fixed set up at this host location any other ideas? cheers

Don’t migrate your applications to an older version of PHP. Upgrade PHP instead :slight_smile:

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).

cool thanks for this tip, sorry for my neewbie comments but do I need to change my php? I’m guessing not but instead make changes via sql?

mysql> SET PASSWORD FOR
-> ‘some_user’@‘some_host’ = OLD_PASSWORD(‘newpwd’);

do I run this as a command in php my admin or similar? thanks;)

You need to change the password of the database user using the OLD_PASSWORD function. See here :slight_smile:

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 should explain some more ,

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

maybe a socket issue?

What MySQL version are you running? And what version does the script need?

my errors are these initally

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?