Thread: Php
View Single Post
Old 06-10-2008, 03:53 AM   #9 (permalink)
dansgalaxy
Newbie
 
Join Date: Oct 2007
Location: Swindon, UK
Posts: 23
Rep Power: 6 dansgalaxy is on a distinguished road
Send a message via MSN to dansgalaxy Send a message via Yahoo to dansgalaxy
Default

Quote:
Originally Posted by Chainsawkitten View Post
Actually, it doesn't wait until all the code has been finished. It sends html every time you use echo.

Then why should we use PHP to echo the answer of 1+1 instead of just writing 2 in a html file? The answer is that that was just a simple example. PHP can do much more advanced stuff like getting things from databases etc. This forum is coded in PHP which allows the users to create and answer in different threads. How would you let the user create a thread in pure html?
I did say it was a very simple example, of course it can be used for much much more, i personally have great fun with it

Love helping people out, especially when the services are paid ;)

Dan :-)
__________________
Honest, Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: freelancegossip
.::XDnet.co.uk::.
dansgalaxy is offline   Reply With Quote