Tuesday, March 6, 2012

php.exe is not recognized as an internal or external command

When you try to create a new yii web application then you need to add php.exe location to your system path.

On Windows XP goto


Control Panel > System > Advanced > Environment Variables > System Variables > Edit > Variable value

And at the end of the current contents add a semicolon followed by your path to php

Friday, March 2, 2012

Enabling oci8 in windows xp


  • You need to download the oracle instant client following the link below

    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html and click the instant client package basic. Download it and after that you unzip it.
  • Then u put the path of that instant client in the Environment Variable
  • Uncomment
  • Uncomment the "extension=php_oci8.dll" in the php.ini file (To find your php.ini file you can run the phpinfo.php page)
  • then restart your pc. check the phpinfo.php
  • then you can see phpinfo page as above.
  • To enable pdo support to oracale database uncomment extension=php_pdo_oci.dll which is in PECL region