Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Sterling Hughes
On Sun, 16 Sep 2001, Bora Paksoy wrote: Hi; I am planning to implement a new site which will be using mysql db heavily, and I am in the middle of (and stuck:) deciding what I should use for implementation. I would definitely prefer Java Servlets, but it is very expensive to host servlets,

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Rasmus Lerdorf
1.Speed: If you use mod_perl or fastcgi kind of deals (which are based on threadding instead of forking), I don't think PHP is considerably faster than perl? Is that the case? Threading instead of forking? None of these do either. Apache is a pre-forking multi-process server and both PHP

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Bora Paksoy
Why on earth would you prefer java servlets? Hmm... Let's see;Java is a full-fledge, totally OOP and awesome programming language but not a scripting language. Speed (will be mentioning this later), having total control over whatever you want (exception handling, db pooling, caching,

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Bora Paksoy
Threading instead of forking? None of these do either. Apache is a pre-forking multi-process server and both PHP and mod_perl are part of these pre-forked processes. Neither mod_perl nor PHP do any threading nor forking. ??? I didn't get this? Aren't these pre-forked processes handle

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Rasmus Lerdorf
??? I didn't get this? Aren't these pre-forked processes handle requests using threads internally? Say you configure apache to pre-fork 5 server processes, what you are saying implies that you can only handle 5 concurrent requests?? can you please explain this more? That's exactly what

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Rasmus Lerdorf
I mean, for example say you have an html that consists of blocks... Making every block an include is clean, but this time, php engine has to read all of these includes, and parse the html+php and compile/run php everytime a request is made??? I am not sure about this? I wouldn't say it was

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread speedboy
ie. don't necessarily use 1 file per block, create functions that are defined in a single file and call those instead of including a new file. How do you echo your html, do you put the html in your functions and escape the double quotes? There is some extra load there echoing all the html?

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Rasmus Lerdorf
ie. don't necessarily use 1 file per block, create functions that are defined in a single file and call those instead of including a new file. How do you echo your html, do you put the html in your functions and escape the double quotes? There is some extra load there echoing all the

RE: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Jack Dempsey
] PHP vs. PERL (Functional Comparison)?? ie. don't necessarily use 1 file per block, create functions that are defined in a single file and call those instead of including a new file. How do you echo your html, do you put the html in your functions and escape the double quotes? There is some