PHP 4.0 Bug #8835 Updated: Include's & passing varibles on Win*
| From: | rasmus@php.net | Date: | Mon, 22 Jan 2001 17:58:11 +0000 |
| Subject: | PHP 4.0 Bug #8835 Updated: Include's & passing varibles on Win* | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44726@lists.php.net to get a copy of this message | ||
ID: 8835
Updated by: rasmus
Reported By: AmaZed@charter.net
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] AmaZed@charter.net
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