php-windows Digest 26 Apr 2007 03:30:31 -0000 Issue 3208

Topics (messages 27764 through 27767):

Re: [PHP] slow performance
        27764 by: Henning Eiben
        27765 by: Henning Eiben
        27766 by: Richard Lynch

Re: MySQL + SSL with PHP on windows
        27767 by: Adam Madsen

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 ---
Stanislav Malyshev wrote:

> If you interested in further improving performance, look at bytecode
> caches such as Zend Platform or APC. It can be especially beneficial if
> you use frameworks containing a lot of PHP classes.

As I already mentioned, I used eAccelerator. Does APC perform better?



-- 
... Gentlemen:  Start your debuggers...

--- End Message ---
--- Begin Message ---
Stanislav Malyshev wrote:

>> OK, so I will give that a try. As far as I understand, I basically just
>> have to replace the association of ".php" to "php5isapi.dll" with
>> "php-cgi.exe"; and then set the global path to include my php-folder,
>> right?
> 
> No, that probably would make it CGI, which is slow. For FastCGI, you
> need FastCGI module for IIS. Zend Core contains one, and Microsoft has
> its own here: http://www.iis.net/default.aspx?tabid=1000051

OK, I installed FCGI and ran my testsuite. I did get more requests in a
timeperiod of 5 minutes, but unfortunatly I also got a lot of errors
(HTTP 500). But the performance of successful pages was increased by
almost 15%.



-- 
... ERROR:  CPU not found.

--- End Message ---
--- Begin Message ---
On Wed, April 25, 2007 4:45 am, Zoltán Németh wrote:
> 2007. 04. 25, szerda keltezéssel 11.33-kor Henning Eiben ezt írta:
>> Hi,
>>
>> I wrote a small sample-application once using PHP (with propel and
>> smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps
>> are
>> being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but
>> the
>> performance of the PHP version is much slower than the Java version.
>
> I think this is because Java is compiled once, PHP is compiled at
> every
> request...

With eAccelerator, it's not compiled every request anymore.

It's unlikely that the PHP compile phase is a significant bottleneck
on 99% of web applications' performance.

The BIG win is not the compiling savings, but the hard drive not
getting hit, since the code is stored in RAM after the first page
load.

So he's taken the PHP code and got it in RAM, and now it runs faster,
because the disk isn't getting hit every page.  Oh, and it's just as
easy to store the compiled version as the source, so do that, and save
an extra 2%

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--- End Message ---
--- Begin Message ---
I have been having the same issue.

Using PHP 5.2.1 mysql or mysqli I can not connect to a remote Mysql server 
using SSL
I can get it to work on a mysql command line client just not with PHP.

Has anyone ever had this working on an IIS box?


Adam Madsen
------------------
IT Director Transwest Group

--- End Message ---

Reply via email to