faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 13 people (85%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How can I write a web page (program) to check that does webserver support PHP, ASP and PERL ?

Feb 20th, 2008 22:54
dman, Dotan Cohen, Phil Whittaker, DUY DO PHAN, http://www.ttnr.org


I have not come across a clean, easy, all-in-one way of doing this, 
however, you can do some interrogation of a specified webserver. If 
you 
use port 80 for example you can retrieve the header information which 
commonly is stamped with the server details (and build - perl, php, 
etc), other ports can also be used to gleen other information, telnet 
header stamp etc. For an example site visit www.netcraft.com
just do this:
<?php
phpinfo();
?>