Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

[PHP3] Differences in win32 and linux versions From: Adam Gotheridge (adam <email protected>)
Date: 03/28/99

(Sorry for the long-winded message)

I have been dabbling for the past could months with php (module) on a RH
linux box with Sybase (a meager P100) and have been extremely satisfied with
the performance and stability in that environment. Where I work we are
considering moving to php, but if the switch is to be made it has to also
run well under iis.

So... I installed the win32 binary on my 98 box last night (personal web
server) and ran through some tests with the ODBC functions and an access db.
This all worked well and the ODBC_pconnect function seemed to maintain the
connection. I tried to verify whether the connection was being reused or not
by assigning the current time to variables $START and $END with $START
before any of the db functions (connect and get results) and $END after the
functions. I displayed the results (start and end) and they showed the same
value, so I thought microtime would be a better choice than time. I now see
that microtime is not available on the win32 platform which leads me to a
couple questions:

1. How do you know which functions are available for each platform?
2. How can I measure the time it is taking php to connect to a db and return
the results of a query? Are the persistent connections working on the win32
version?
3. The ODBC functions (win32) were a bit different than the sybase functions
I had been using on the linux box. If we setup the liinux apache machines
and the NT IIS machines for PHP with support for Sybase and Oracle, will the
syntax of those functions be the same whether we are running on the Linux
box or NT box? Obviously, cut and pasting code between platforms would be
the ideal.

Last question: On the win32 platform, is the php.exe file executed
separately for each php page requested? It executes like cgi pearl not
loaded as module?

Thank you very much for any answers. Our "big" meeting about our development
environment is tomorrow (monday, 3/29), so if possible please give me some
ammo by then. Thanks.

Adam

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>