bimalpoudel — 2012-08-24T04:26:02-04:00 — #1
I created a small ZendFramework based project using localhost (php 5.3).
After the completion and full checkups of the application, the customer later provided the server with php 5.2.9.
This means, my PDO based scripts do not run on the server, and there is no chance to upgrade PHP on the server.
How can I alter my application codes and make it run on this server environment?
I guess PDO is only the problem, but there may be more issues.
system — 2012-08-24T04:41:49-04:00 — #2
Pretty sure pdo should work in versions prior to 5.3. Is the problem that they just don't have the pdo extension itself installed?
cpradio — 2012-08-24T05:49:04-04:00 — #3
Agreed, a look at the PHP documentation states part (if not all) was introduced in 5.1
Do you have an error message? Maybe a specific function of PDO isn't available until a later version or maybe it isn't enabled/installed on the server.
bimalpoudel — 2012-08-24T08:57:05-04:00 — #4
I found that the mysql connection parameters were in single quote - in the file: application/configs/application.ini
Just used double quotes there and all the dramas went off.
The values should be either not-be quoted at all, or be in double quotes.
This issue is solved for me at the moment.
But the ZendFramework related other forums do have a still discussion of the PHP Version Requirements.
In my case, it is solved with MYSQLI and double quoted values in application.ini
Thank you all.