By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,201 Members | 1,617 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,201 IT Pros & Developers. It's quick & easy.

Has anyone noticed PHP5 to be slower than PHP4?

P: 14
I recently upgraded my application from PHP4.4.2 to PHP5.2.5. I also use MySQL5. I am using the mysqli module because supposedly it is faster. I have tested the regular mysql module and found it to be the same as mysqli. I have also tested this application on Apache and IIS.

Since I upgraded to PHP5.2.5 the application runs slower. It seems to lag, which it never did before. Is there a setting in the configuration file I can tweak to speed it up? Has anyone else noticed this?
Jan 31 '08 #1
Share this Question
Share on Google+
2 Replies


dlite922
Expert 100+
P: 1,584
I recently upgraded my application from PHP4.4.2 to PHP5.2.5. I also use MySQL5. I am using the mysqli module because supposedly it is faster. I have tested the regular mysql module and found it to be the same as mysqli. I have also tested this application on Apache and IIS.

Since I upgraded to PHP5.2.5 the application runs slower. It seems to lag, which it never did before. Is there a setting in the configuration file I can tweak to speed it up? Has anyone else noticed this?

no, its just your imagination. Not to sound condescending, but have you seen a car manufacturer create a slower car?

There must be something in your setup. Try simple troubleshooting by comparing ini-values from your old setup and your new, and turning off modules one by one to see if you see any difference.

Good luck buddy
Feb 2 '08 #2

P: 14
You crack me up! I have spent some more time researching my setup and I am starting to agree with you that PHP5 is not my issue.

I have an application that uses a MySQL db and also pulls data from an Oracle db. PHP and MySQL are on one server and Oracle is on another. I had to use Oracle's instant client to connect to the Oracle server. Also, in my PHP code I use ADODB to connect to either db. I did upgrade this to version 4.23. My Oracle db is 10g. I used the slow query logging in MySQL to rule that out as the cause.

So I don't know what happened but I promise you my application is running noticeably slower.
Mar 7 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.