473,323 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Has anyone noticed PHP5 to be slower than PHP4?

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
2 1384
dlite922
1,584 Expert 1GB
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
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

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

Similar topics

6
by: Useko Netsumi | last post by:
windows xp with apache2? I follow all the instruction but I still got the following error when starting the apache2: The Apache service named reported the following error: >>> Cannot load...
8
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
5
by: Tim Tyler | last post by:
I'm sure this is a FAQ - but I could not find a coherent statement of the answer: Some of my clients want PHP4. Other ones want PHP5. Can I run both PHP4 and PHP5 under the same instance of...
11
by: neur0maniak | last post by:
Hi, I've been eager to try out PHP5, so I've dumped it on my little dev machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the "mappings" page as I'm used to doing with PHP4....
0
by: Dave Pham | last post by:
I just cleaned my comp, and I am trying to re-config my webserver... I am trying to setup apache 2 so it runs both php4 and php5, I also have two instances of mysql running. I know this can be...
5
by: Aziz | last post by:
Hi, I've recently contacted technical service of a web hosting company and asked them wheter or not they're gonna upgrade to PHP5 and MySQL5. Here's a quote from their response which confused me...
5
by: sinister | last post by:
I'm starting a database/web interface project, using Linux and postgresql. I've programmed in PHP4 in the past, and for this new project am unsure whether to use PHP4 or PHP5. My main concerns...
0
by: Tim Meader | last post by:
Hello, I was hoping someone could provide some insight as to the best approach to take in porting over a function I use in quite a few spots from PHP4 to PHP5. Basically, I have a db wrapper class...
8
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.