ID: 8835
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

This makes no sense.  Included files share the same scope as the script that is doing 
the including.  So:

$a = 1;
include 'somefile.php';

If in somefile.php you do: echo $a
you will see it prints 1.  So passing variables to an included file is an inherent 
characteristic of PHP.

Previous Comments:
---------------------------------------------------------------------------

[2001-01-22 07:18:40] [EMAIL PROTECTED]
Ok I was tring to include a file and tring to pass a var, tried many ways.. needless 
to say I couldnt get it to work.
<?php inlcude("links.php?show=true"); ?> -- no good
<?php include("http://www.amazed.to/links.php?show=true"); ?> -- no good
So I get on IRC, no on really had a answer for my question 'Why cannt I include, and 
pass varibles on a windows server?'
bug list: http://bugs.php.net/bugs-php3.php?id=514 says you cannt 
include("http://server/file.php") if you cannt include a server, how can you pass a 
var through include? I am not sure if you consider this a 'bug' but, it would be nice 
to include & passing vars ;



---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=8835


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to