Friday, September 11, 2009

What it can do?

There are three main areas where PHP scripts are used

1. Server side scripting
2. Command Line Scripting
3. Desktop Applications


Server side Scripting:

You need three things to make this work
1. Parser (Server module or CGI)
2. Server
3. Browser.

These three things very important to run php script. Server connected with PHP parser. Then only its work in browser. We will see how to install these things?

Command line Scripting:

PHP can also be run as a command line script like c, c++, java, etc.

You can make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way. This type of usage is ideal for scripts regularly executed using cron (on *nix or Linux) or Task Scheduler (on Windows).

Real command-line programs use arguments. just like C and other similar languages, you can use argv and argc for this purpose.






No comments:

Post a Comment