Quote:
Originally Posted by Chainsawkitten
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 :-)