#23310 [Bgs]: Variables are not being passed
| From: | rasmus@php.net | Date: | Wed, 23 Apr 2003 02:10:33 +0000 |
| Subject: | #23310 [Bgs]: Variables are not being passed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38106@lists.php.net to get a copy of this message | ||
ID: 23310
Updated by: rasmus@php.net
Reported By: jason at ezitsolutions dot com
Status: Bogus
Bug Type: IIS related
Operating System: W2K
PHP Version: 4.3.2RC1
New Comment:
Are you really trying to tell me that
<?php ("result.php?team=team1"); ?>
has done something useful for you in any way whatsoever? If so, then
you know something nobody else does because that line really makes no
sense at all. Please also point me to your reference of many other
people using the same syntax.
Previous Comments:
------------------------------------------------------------------------
[2003-04-22 21:04:36] jason at ezitsolutions dot com
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.
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
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