Posted by Peter Chant on 09/28/56 11:37
Dear newsgroup,
I'm using php and mysql with apache both on Slackware linux and also Windows
using phpdev. I developed the code on the linux system. On phpdev I've
found that glob and mysql_real_escape_string do not work. I've created
workrounds for this on phpdev. The question is, is there a reliable way to
detect the OS so I can use the workrounds on phpdev only, or am I better
off using the workround on both phpdev where it is needed and under linux,
where it is not?
I assume that the most reliable way to detect the server OS is to look at
the Apache version, after finding out how phpinfo() gets this and looking
for (Unix) or (Win32) in the returned data.
Pete
--
http://www.petezilla.co.uk
[Back to original message]
|