Re: Include Question!
| From: | Bradley Stahl | Date: | Fri, 09 May 2008 17:56:24 +0000 |
| Subject: | Re: Include Question! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28882@lists.php.net to get a copy of this message | ||
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 essentially be giving you the code:
if(some variable) {
echo "I AM IN PAGE.PHP!";
}
I hope that this makes sense.. and this helps!
On Fri, May 9, 2008 at 1:49 PM, Matthew Gonzales <matt323@uga.edu> wrote:
> 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 page. Hope that makes sense.
>
> Matt G
>
> --
> Matthew Gonzales
> IT Professional Specialist
> Enterprise Information Technology Services
> University of Georgia
> Email: matt323@uga.edu <mailto:matt323@uga.edu>
> Phone: (706)542-9538
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>