in reply to PHP is better than perl and what can i do to run perl faster?
What can i do to run perl faster
If you properly modularized your code, profiling it should be easy. If it's code that will only run in mod_perl, profiling it will be very hard. Several profiling modules are available. Search CPAN.
why php is faster than perl
I've found it very hard to find PHP scripts that didn't have faster Perl equivalents. But for static pages, that is: pages with no content, PHP certainly is faster than a Perl script that prints the same text, even if $r->print is used. I do not know why this is, and have no urge to find out. It shouldn't matter anyway, because for static pages, you don't need to use a programming language.
is php is better than perl?
Certainly not. PHP is much, much worse than Perl. Please read http://tnx.nl/php.txt for a comparison of some very important aspects.
php have too many function in your own core just like session, and on perl i have to create this
No, you don't have to re-invent the wheel. Others have coded things like support for sessions. All you need to do is install a module and learn to use it. It's probably a bit more work to get the session ID across, but in return you get all the flexibility you could ask for.
hth
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
|
|---|