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.
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?
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.
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.
This topic is now closed. New replies are no longer allowed.