ID: 22169 Comment by: tree_porcupine at hotmail dot com Reported By: jjeca at hotmail dot com Status: No Feedback Bug Type: IIS related Operating System: Win 2k pro PHP Version: 4.3.0 New Comment:
I have a site residing on my development server (debian/linux) that works flawlessly. On porting it over to a windows server (same version everything), I keep getting these undefined errors. What can I do about this? Previous Comments: ------------------------------------------------------------------------ [2004-01-09 12:05:21] parkhurst at mac dot com I am having the same problem. I have a PC running Windows XP Pro and it has PHP 4.3.4. It is really annoying. Someone posted that they downgraded to 4.0.6 and it fixed the problem. Here is a test I ran on it and the results.... I created a file called "temp.php": --- <?php if (!$text) { $text = "Enter Text Here"; } ?> <form action="temp.php" method="post" enctype="multipart/form-data" name="form1"> <input name="text" type="text" id="text" value="<?php echo $text; ?>"> <input type="submit" name="Submit" value="Submit"> </form> --- Here is the error it returns...and yes register_globals is "On". It does nothing to help the issue.... --- Notice: Undefined variable: text in d:\---filepath---\temp.php on line 1 ------------------------------------------------------------------------ [2003-06-10 17:26:19] DontGiveOut at BecauseOfBots dot com I am attempting to port an existing app from php 4.2.2 linux (apache) to Windows XP (iis 5.1) php 4.3.2 -> I do have register globals turned on but I am still getting the Underfined variable messages on any session vars. Any one else encounter this problem? Thanks! ------------------------------------------------------------------------ [2003-02-20 08:17:35] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-02-11 10:48:49] [EMAIL PROTECTED] There are times when submit buttons don't pass values. I always forget the exact circumstances so rarely rely on them but anyway, assuming this is a post form, do: var_dump(array('p' => $_POST, 'r' => ini_get('register_globals'))); Of course, use $_GET for GET. ------------------------------------------------------------------------ [2003-02-11 10:37:59] jjeca at hotmail dot com YES, register_globals is On! ------------------------------------------------------------------------ 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/22169 -- Edit this bug report at http://bugs.php.net/?id=22169&edit=1