|
You can just run the interpreter and get the resulting output, you do not really need a server. But for it to be useful you will probably need to link it to some sort of a server. A good use for it that is outside the scope of a "normal webpage" is for example when you create a script to update a database every X amount of time. You can do it by running a scheduled task or a CORN job like the linux people like to call it executing the php executable (php.exe in windows again) and passing the file name as a parameter.
But anyway PHP is used to link between the web user and the server to accomplish a certain task beyond simple retrival of static information. Therefore this makes pages dynamic. PHP is usually used together with mysql database. It allows a company to connect it's database to the internet from a business prospective. But it is not limited to using databases, it can also process files, images, text etc. It is good when you need to make a webpage response to a request from the user that requires more, updated or new information to be sent from your server. Remember, PHP is always compiled on the server, the user never sees the code and has permission to do things that simple users are not supposed to be allowed to do in order to accomplish a task. Therefore, it helps them complete the task without compromising security.
overview of other languages:
Javascript- a client-side scripting language that runs on the local computer or the client in order to accomplish a specific task that does not involve directly accessing the server but rather may need to access local resources instead. E.g. visual effects, simple data validation and user interface functions. [indent]AJAX- a javascript technology that allows to get additional information from the server after the page as loaded without reloading the entire page.
HTML or the newest version XHTML- a descriptive markup language that describes where stuff are on the page and what they do and can also describe how they look like.
CSS- a language that describes how exactly stuff look like. And should be used together with XHTML, although HTML itself has the power to decide what things will look like.
XML- a markup language to facilitate data exchange among programs or people. This language describes what data is, giving it context which turns it into information that can be useful. It simplifies data exchange among different parties by alot by providing standards and explaining what it should contain.
This post has been edited by Mike007: 14 Jul, 2008 - 10:51 PM
|