#23310 [Bgs]: Variables are not being passed
| From: | jason at ezitsolutions dot com | Date: | Wed, 23 Apr 2003 02:04:36 +0000 |
| Subject: | #23310 [Bgs]: Variables are not being passed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38105@lists.php.net to get a copy of this message | ||
ID: 23310
User updated by: jason at ezitsolutions dot com
Reported By: jason at ezitsolutions dot com
Status: Bogus
Bug Type: IIS related
Operating System: W2K
PHP Version: 4.3.2RC1
New Comment:
thanks for the typo, in my script I do have the $. I just forgot to
put it in my comments for the bug database. sorry. And also, it is
not complete nonsense. I have been doing it for over a year and it
worked fine until I switched to ISAPI mode. I have searched everywhere
and found that many people have the same problems and thought it might
be a bug.
Previous Comments:
------------------------------------------------------------------------
[2003-04-22 20:50:17] rasmus@php.net
<?php ("result.php?team=team1"); ?>
Is complete nonsense and could never have worked under any
circumstance, CGI or otherwise. In your other examples you are missing
$ in front of your variable declarations.
This looks like you simply don't understand what you are doing and need
some help. The bug system is not the place for it. Please ask your
questions on the php-general mailing list.
------------------------------------------------------------------------
[2003-04-22 20:40:23] jason at ezitsolutions dot com
oh, yeah - maybe I am using the wrong verbage... like this:
<?php ("result.php?team=team1"); ?>
I am aware the PHP behaves differently under IIS than under APACHE.
Again, this worked in CGI mode, but not in ISAPI mode. So now I have
to do this:
<?php
team = "team1";
include ("result.php");
?>
This works. The problem is that if I do it again on the same page like
this:
<?php
team = "team2";
include ("result.php");
?>
It never picks up team2. So I can only declare that variable one time
on the page. Any ideas?
------------------------------------------------------------------------
[2003-04-22 20:32:12] rasmus@php.net
What do you mean by includes? Server-side includes? I have no idea
how those work under IIS.
------------------------------------------------------------------------
[2003-04-22 20:29:28] jason at ezitsolutions dot com
For my use, I want to get the latest scores for a team. So I have a
script that gets those depending on the variable I pass. for example.
I would do 10 includes on the home page like this:
result.php?team=team1
result.php?team=team2
result.php?team=team3
result.php?team=team4
This worked in CGI mode. It stopped working in ISAPI mode. Is this
incorrect usage?
------------------------------------------------------------------------
[2003-04-22 20:12:21] rasmus@php.net
Variables on the end of an include? As in:
include 'file.php?a=1&b=2';
Hopefully that's not what you are doing because that is completely
bogus. You don't pass variables to included files, you simply set them
before the include and access them directly in the included file.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/23310
--
Edit this bug report at http://bugs.php.net/?id=23310&edit=1