Click here to get back home

Re: Q re Include & how it works - newbie

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Re: Q re Include & how it works - newbie Twayne 06-13-2008
Posted by Twayne on June 13, 2008, 11:21 am
Please log in for more thread options
> Twayne wrote:
>> Hi,
>>
>> Like it says' newbie to PHP.
>>
>> Perhaps someone could provide me with a plan language of how Includes
>> work.
>> In my reading, it says you place the Include(somefile) and it's as
>> though that file were suddenly at that point of whatever file is
>> including it. OK, sort of makes sense and I can see it happen in the
>> sandbox. Pretty standard stuff, I think.
>>
>
> include is just the same as if you copied and pasted the code into the
> including page.

That's the verification I was looking for I think. There are times that
doesn't seem to be so, but perhaps I'll looking at the wrong side of the
tree in the wrong forest ... I think I let POST usages confuse me.

>
...
>>
>>
>
> Did you look at the source code in your browser? You're outputting
> the text in fillInCheck.php before anything - including the doctype.
> This makes your entire page invalid. Browsers might now show it.

D'oh! No, I hadn't thought of looking at the souce in my browser!
Nothing like being half-armed and half-fast, huh? Guess I better switch
"newbie" to "rank newbie" ;-)

ANYway: Thanks; that's embarassing enough I won't soon forget it!

Regards,

Twayne



Similar ThreadsPosted
include security -what works, what dont? August 10, 2005, 7:17 am
Newbie - PHP Include error June 22, 2007, 3:17 am
Newbie wants to know how to include php in a Dreamweaver .dwt file June 5, 2008, 12:27 pm
newbie question about include() and include_once() functions November 29, 2007, 2:01 pm
session_start() intermittently fails on the same page, then works, then works, then fails.. December 8, 2006, 11:40 am
include within include, using a relatve path January 27, 2008, 8:36 pm
error says can't see include file, yet executes some code on include file February 2, 2007, 4:43 am
include failing to include... August 28, 2007, 5:20 pm
6$ into $10 000? THIS REALLY WORKS!!!! September 13, 2004, 11:03 pm
6$ into $10 000? THIS REALLY WORKS!!!! September 13, 2004, 11:06 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap