Install PHP as FastCGI on XP

1. Do not use the web platform installer. If you already have, uninstall PHP and FastCGI using the Control Panel 2. Download the Non Thread Safe ZIP version from, unpack it in C:\PHP5 3. Download FastCGI from (already included in Windows 7) 4. Add the .php file extension mapping using the IIS manager […]

How to create / consume a .Net web service

[WebService(Namespace = “http://server”)] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class myservice : WebService { [WebMethod] public string someq(string var1, string var2) { return var1+var2; } <?php $wsdl = “http://server/service.asmx?wsdl”; $client = new SoapClient($wsdl); var_dump($client->someq(array(‘var1’=>”val1″, ‘var2’=>”val2″))); ?>

How to connect to MS SQL from PHP

1. Install FreeTDS. (./configure && make && make install) 2. Install PHP with freetds support (./configure –with-sybase=DIR, where DIR is wherever you placed freetds usually /usr/local) 3. Read a bit of /etc/freetds.conf (not mandatory) 4. ini_set(‘mssql.secure_connection’,’On’); $con = mssql_connect (“”, “user”, “pass”) or die (“Could not connect to SQL server”); //.mssql_get_last_message() mssql_select_db (“thedb”, $con) or […]

Bad Behavior has blocked 258 access attempts in the last 7 days.