Hello,
i'm new here so i hope i'll do allright ;) Im not english but i think/hope/whatever you'll understand me nevertheless.
Im learning PHP since two oder three months, and my problem/question is;
I'd like to sperate the php and the html code. I don't want the mess html/php, in a little project it's no problem, but in a 500-lines-project it isn't very good. I imagine it like that:
You have a html-file, e.g: ( // are comments)
#include //I think thats clear;)
shout() //php function, look at the php-part -.-
Here comes the php-part:
<?
shout()
{
echo "THATS IT";
}
?>
I hope you understand what i mean; i have two files, one with the php-code and theother with the html-code. In the html code, there is a function-calling from the php-file. So it opens the php-file, jumps to the shout-function and prints THATS IT.
So, i hope you know a idea how to realize that :)
ps. i know that there are mistakes in the posted codes, they are pseudo-codes. Actually i'm a c++-programmer i think you noticed that ;) but yes...