On 9 May 2008, at 18:56, Bradley Stahl wrote:
Your code would essentially be "inserted" in the place where your
include
statement is called. Let's say that your in 'page.php' you had the
following code:
echo "I AM IN PAGE.PHP!";
and then in your script you have your code:
if (some variable)
Your code would essentially be "inserted" in the place where your include
statement is called. Let's say that your in 'page.php' you had the
following code:
echo "I AM IN PAGE.PHP!";
and then in your script you have your code:
if (some variable) {
include('page.php');
}
This would essenti
09 May 2008 13:49:07
To:PHP-Windows Group
Subject: [PHP-WIN] Include Question!
So I am really cornfused about the include function.
If I use the include function to make my code readable and neat where
does the included code go. For instance:
if (some variable){
include(page.php);
}
Does the c
So I am really cornfused about the include function.
If I use the include function to make my code readable and neat where
does the included code go. For instance:
if (some variable){
include(page.php);
}
Does the code go into the current page where the include statement is
located on the pa