#23310 [Bgs]: Variables are not being passed

From: Date: Wed, 23 Apr 2003 02:49:17 +0000
Subject: #23310 [Bgs]: Variables are not being passed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38112@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: Because this tag, which you keep saying works, makes no sense: <?php ("result.php?team=team1"); ?> The PHP parser has no idea what to with this. Putting a filename inside brackets is meaningless. There is no command there. So if this somehow worked before, then it is something other than PHP that made it work, and if it has now stopped working, then it is this something other than PHP that has broken on you. Previous Comments: ------------------------------------------------------------------------ [2003-04-22 21:18:42] jason at ezitsolutions dot com yes it really did work before. i don't know why you are making me sound like i'm crazy. it works on server side includes with .shtml extension and it did work as a server side include with .php ext. until I switched to ISAPI. ------------------------------------------------------------------------ [2003-04-22 21:10:33] rasmus@php.net 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. ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ 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

« previous php.bugs (#38112) next »