php-windows Digest 9 May 2008 17:49:11 - Issue 3468
Topics (messages 28880 through 28880):
Include Question!
28880 by: Matthew Gonzales
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
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
What is it that you are trying to accomplish? Normally no if statement is
needed for an include to take place unless a certain condition triggers the use
of the include.
Sent via BlackBerry from T-Mobile
-Original Message-
From: Matthew Gonzales [EMAIL PROTECTED]
Date: Fri, 09 May 2008
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
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) {