Mine, too. But when you don't know what you are doing,
sometimes the 'proof
of concept' tests you design are a bit off-kilter, doncha
know? I can only
guess that i was suffering from that.
I'll verify that I correctly reported this and post back....
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Gary White" <reply@newsgroup.please> wrote in message
news:2p6643pe4k3ncefjuhf2l2v3huvanuqfgm@4ax.com...
> On Wed, 9 May 2007 20:26:02 -0400, "Murray *ACE*"
> <forums@HAHAgreat-web-sights.com> wrote:
>
>>Yeah - of course, I changed everything about it, too!
>
>
> I'm still bewildered by what caused the problem. If I
have two files,
> first (includevar.php) like this:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "
http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> <title>Variable in an Include Test</title>
> <meta http-equiv="imagetoolbar" content="no">
> </head>
> <body>
> <p><?php
> $x='This is $x defined in includevar.php';
> include 'foo.php';
>
> print "$y";
> ?></p>
> </body>
> </html>
>
> And foo.php like this:
>
> <?php
> $y='This is $y defined in foo.php';
> print "foo.php says $x<br>\n";
> ?>
>
> The output I get is:
>
> foo.php says This is $x defined in includevar.php
> This is $y defined in foo.php
>
> Clearly, the variable defined in the parent file is
recognized in
> foo.php and the variable defined in foo.php is
recognized in the parent
> file. Hence my bewilderment.
>
> Gary