PHP is most often used in combination with a Web server, to dynamically generate Web site pages. However, this Web server interface isn’t the only way to use PHP, because the PHP distribution also includes a command-line interface which can be used to run PHP programs at the command prompt, much like Perl or bash.
Daily Archives: April 6, 2012
How do I add my PHP directory to the PATH on Windows?
On Windows NT+ and Windows Server 2000+:
Running PHP at the Command Prompt
Introduction: PHP is a great language to develop web applications rapidly and easily. PHP code can also be run as a command line script just like C, C++, java, and so on.
How do I pass parameters to a batch file? (exec.bat)
A. When you call a batch file, you can enter data after the command that the batch file refers to as %1, %2, etc. For example, in the batch file hello.bat, the following command
DNS Command-Line Cheat Sheet
I just finished the first DNS chapter in my Elements book, the first of my three-book series on Server 2008. I always love talking about DNS — it’s a fun topic — but this particular chapter was a joy to write because I mostly threw away the old chapter and wrote an all-new one. In the …
CSS Snippets for Your Coding
CSS is a beautiful language but it can also be frustrating at times. Certain CSS solutions don’t work on certain browsers (cough Internet Explorer cough) and much of your time can be spent debugging code.