php-windows Digest 7 Apr 2005 03:07:03 -0000 Issue 2626
Topics (messages 25807 through 25810):
Re: Optimize php code
25807 by: graeme
25808 by: martin hochreiter
25809 by: Jason Barnett
PHP-LDAP on IBM HTTP Server (Apache 2)
25810 by: Robert Harvey
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
You need to find out where the code is spending its time. You can
quickly do that calling the microtome() function at various points in
your program and then calculating the time spent. Once you have located
the bottlenecks then you will need to think about your design, "Can this
be improved?" Obviously there is no universal panacea.
graeme.
martin hochreiter wrote:
Hi there!
I'm not the experienced php user, but I've been using
php for a while and I've already written some bigger
applications with it.
These bigger applications are the 'problem', I know
how to optimize database access but I have no idea
how to optimize php code ... what makes php slow,
what constructions, commands whatever I have to
avoid.
Can someone please give me a hint?
lg
martin
--
Experience is a good teacher, but she sends in terrific bills.
Minna Antrim
--- End Message ---
--- Begin Message ---
Hi!
That was the only solution for my problem, I discovered myself.
Beside that I am searching for other hints ... I learned from
an article that some command - constructions are not processed
very quickly from the php interpreter (string conversions) and
some control structures are faster then other ones. Unfortunately
I can't remember what magazine it was.
lg
You need to find out where the code is spending its time. You can
quickly do that calling the microtome() function at various points in
your program and then calculating the time spent. Once you have
located the bottlenecks then you will need to think about your design,
"Can this be improved?" Obviously there is no universal panacea.
graeme.
martin hochreiter wrote:
--- End Message ---
--- Begin Message ---
The only way to really know is to test it yourself, with your machine
and your setup. Because what might be fast for me might be slow for
you. You should also have an overall goal in mind of how much time you
can spend on page loads.
If you need help testing scripts then you can go for apache bench, or
APD, or Zend, or ... (insert favorite profiler here)
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
After enabling "extension=php_ldap.dll" in the php.ini file (PHP 5.0.3),
IHS 2.0.47.1 hangs on restart. The php_mssql.dll extension works
successfully and typing "php -i" at a command prompt shows that the
php.ini file is correctly configured and that php_ldap is enabled.
IHS is running on Windows Server 2003 and the Services shows IBM HTTP
Server as "Starting". Does anyone have any ideas why the php_ldap
extension causes IHS to hang on restart?
--- End Message ---