Saturday, July 3, 2010

How to use PHP CLI in windows?

PHP Cli allows you to execute PHP scripts in a system shell and enables you to interact with it sending parameter values.  An example of its usage is Bake (from CakePHP), with it you can create web applications with Model View Controller pattern in a snap only with a database you defined before. The only thing you would need to do in a XAMPP installation is to add the absolute path to the PHP installation to the PATH environment variable through My Computer->Properties->Advanced Settings->Environment variables. My PATH environment variable looks like:

C:\Sun\SDK\bin;C:\Program Files\Nmap\;C:\spring-roo-1.0.0.RELEASE\bin;%MAVEN_HOME%\bin;%MYSQL_HOME%\bin;%CATALINA_HOME%\bin;%ANT_HOME%\bin;C:\xampp\php

No comments:

Post a Comment