PDA

View Full Version : "PHP" internet pages = How?



Codex
11-03-2004, 10:30 PM
I've been looking around at some sites and i've seen pages using php, can someone please tell me how it works?

wuppo
11-03-2004, 11:07 PM
PHP is a language that outputs html, when a web server responds to a request for a .php page. So the page you are served is not the actual .php page you request, but the resultant output of that page being processed by the server.

A php source page typically consists of both html and php statements.

This allows a requested page to be generated 'dynamically' according to the php constructs, allowing variable content etc. Obviously, a webserver has to offer php support for this to work.

stu140103
11-03-2004, 11:07 PM
> I've been looking around at some sites and i've seen
> pages using php, can someone please tell me how it
> works?

It is a server side scripting language.

Here is some more information on it:

Note you may get confused reading this:

From php.net http://nz2.php.net/manual/en/faq.general.php#faq.general.what

What is PHP?

PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.

What does PHP stand for?

PHP stands for PHP: Hypertext Preprocessor

I Hope this helps if not post back here :)