* Taksam <[EMAIL PROTECTED]>:
> I finally installed Apache 1.3.3 and PHP 5.0.4 engine and made my
> first PHP page and it works! thanks for your help! And didn't use an
> IDE, just UltraEdit :) but, I WILL use and IDE someday anyway.

The beauty of PHP (and most scripting languages) is that you don't need
an IDE ever. A good editor with syntax highlighting will get you where
you need to go reliably. I use vim.

> Now, my question is: can I use Apache version 2 with PHP? And, even if
> I can use it in my development environment... is it safe to use Apache
> 2+PHP in a production environment?

Yes. But there *are* issues with it. The biggest thing Apache2 introduced
was threaded processes. Unfortunately, PHP isn't necessarily threadsafe
-- not all of the libraries it can be compiled are threadsafe, and many
are in a state where thread status is simply unknown. (My understanding
is that the PHP core is probably threadsafe; it's the extensions --
database, mail, etc --- that you can't be sure of. Somebody correct me
if I'm wrong.) 

The upshot is that when compiling PHP to work with Apache2, you have to
compile it to work without threads -- which means that, in the end,
there are no performance gains, and, in most instances, PHP performance
actually suffers under Apache2 (up to 30% decrease).

John Coggeshall announced today that he is going to work to get PHP
completely threadsafe, but my guess is that this will likely be a late
version of PHP 5.1, if not even another minor version (5.2, 5.3) before
it's complete.

By the way -- I'm hoping you meant Apache 1.3.33, and not Apache
1.3.3... ;-)

-- 
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to