Forum Moderators: coopster
Echo"$value";
it works....
But on the file included it displays nothing. If I enable error messages, "Undefined variable:"
Just not sure why the value isn't being passed from main page to the include. In php the included file should fall within the scope of the parent file. I guess this could be blocked by the host if they have made changes to php.ini file? but it seams to break logic to block a frequently used process.
Mack.
Next - if you are including by URL, then you will get the effect you mention - use a direct link (i.e. /var/www/html/mysite/includeme.inc not [mysite.foo...]
Because if you are using a URI, the file is parsed before it is included.