Thread: Php
View Single Post
  #6 (permalink)  
Old 02-05-2008, 10:28 PM
Chainsawkitten's Avatar
Chainsawkitten Chainsawkitten is offline
New In Town
 
Join Date: Jan 2008
Location: Sweden
Posts: 9
iTrader: (0)
Chainsawkitten is on a distinguished road
Send a message via MSN to Chainsawkitten
Default

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?
Reply With Quote