Reply to Detecting the servers OS

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация