php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16822 500 error in IE 6.0
Submitted: 2002-04-25 06:55 UTC Modified: 2002-04-29 15:36 UTC
From: redone at dds dot nl Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.0 OS: Windows XP
Private report: No CVE-ID: None
 [2002-04-25 06:55 UTC] redone at dds dot nl
I made a simple page and after installing PHP 4.2.0 I had a problem in IE 6.0 I'm running Apache 1.3.24 / Apache 2.0.35 no not at the same time.
No other browser has the problem. This is the source:


index.php
<?php
$Titel = "Roostergenerator";
$CSSDir = "/rooster/css";
$Images = "/rooster/images";
$PHPBestanden = "rooster";

require ("$PHPBestanden/functies.php");
require ("mainfuncties.php");

if ($Action) {
 require ("$PHPBestanden/resultaat.php");
}
else {
 require ("$PHPBestanden/keuzemenu.php");
}
mysql_close($MySQLServer);

?>

resultaat.php
<?php

$Dagen = array('','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag','Zondag');

if ($Docent) {
 Cel("docenten", "Docent", "ID", $Docent);
 $ZoekTekst = $Cel;
 $ZoekOptie = "de docent";
 $Query = "
 SELECT rooster.WeekDag, rooster.Datum, studie.Studie, docenten.Docent, rooster.Lokaal, rooster.Onderwerp, rooster.BeginTijd, rooster.EindTijd
 FROM rooster, docenten, studiegroep, studie
 WHERE docenten.ID = $Docent AND rooster.DocentID = docenten.ID AND rooster.StudieGroepID = studiegroep.ID AND studiegroep.StudieID = studie.ID
 ";
}
elseif ($WeekDag) {
 $ZoekOptie = "de dag";
 $ZoekTekst = $Dagen[$WeekDag];
 $Query = "
 SELECT rooster.WeekDag, rooster.Datum, studie.Studie, docenten.Docent, rooster.Lokaal, rooster.Onderwerp, rooster.BeginTijd, rooster.EindTijd
 FROM rooster, docenten, studiegroep, studie
 WHERE rooster.WeekDag = $WeekDag AND rooster.DocentID = docenten.ID AND rooster.StudieGroepID = studiegroep.ID AND studiegroep.StudieID = studie.ID
 ";
}
elseif ($Studie) {
 Cel("studie", "Studie", "ID", $Studie);
 $ZoekTekst = $Cel;
 $ZoekOptie = "de studie";
 $Query = "
 SELECT rooster.WeekDag, rooster.Datum, studie.Studie, docenten.Docent, rooster.Lokaal, rooster.Onderwerp, rooster.BeginTijd, rooster.EindTijd
 FROM rooster, docenten, studiegroep, studie
 WHERE studie.ID = $Studie AND rooster.DocentID = docenten.ID AND rooster.StudieGroepID = studiegroep.ID AND studiegroep.StudieID = studie.ID
 ";
}

print<<<EOD
<HTML>
<HEAD>
<TITLE>$Titel</TITLE>
<LINK HREF="$CSSDir/main.css" TYPE="text/css" REL=StyleSheet>
</HEAD>
<BODY>
<H1>
U hebt gezocht op $ZoekOptie $ZoekTekst.<BR>
Dit zijn de resultaten:
</H1>
<P><HR><P>
EOD;

$Resultaat = mysql_query($Query)
 or die("Query mislukt!");

while ($Record = mysql_fetch_object($Resultaat)) {
 print "$Record->WeekDag - $Record->Datum - $Record->Studie - $Record->Docent - $Record->Lokaal - $Record->Onderwerp - $Record->BeginTijd - $Record->EindTijd<BR>\n";
}

?>
</BODY>
</HTML>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-25 21:37 UTC] sniper@php.net
Please add SHORT self-containing script which can be used to reproduce this. Also, please use ENGLISH in the script..

--Jani


 [2002-04-26 04:02 UTC] redone at dds dot nl
I made a simple page and after installing PHP 4.2.0 I had a problem in
IE 6.0 it gives a 500 Internal Server Error. I'm running Apache 1.3.24 / Apache 2.0.35 no not at the same
time.
No other browser has the problem. This is the source:

<HTML>
<HEAD><TITLE>Test</TITLE></HEAD>
<BODY>
<?php
print <<< EOD
<FORM ACTION="$PHP_SELF" METHOD="post">
<INPUT TYPE="hidden" NAME="Action" VALUE="Search">
EOD;
?>
</FORM>
</BODY>
</HTML>
 [2002-04-26 20:55 UTC] sniper@php.net
Do you have 'register_globals' turned off/on in php.ini?

--Jani

 [2002-04-27 06:43 UTC] redone at dds dot nl
It is turned on.
 [2002-04-27 06:50 UTC] redone at dds dot nl
It is working now. I changed the way I parsed the PHP files in Apache.
With the dll it isn't working. With the exe it is.


#LoadModule php4_module "C:/Program Files/php/sapi/php4apache.dll"
ScriptAlias /php/ "C:/Program Files/php/"
Action application/x-httpd-php	/php/php.exe

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
 [2002-04-27 19:02 UTC] sniper@php.net
I think you might be using the wrong php.exe there.
Did you copy the one found in the sapi/ folder in the .zip ?

--Jani

 [2002-04-28 06:56 UTC] redone at dds dot nl
Yes I did, but I can tell you that it is working. The only thing that isn't working is the dll module.
 [2002-04-28 20:17 UTC] sniper@php.net
Which apache are you trying to use php4apache.dll?
It's only meant to be used with apache 1.3.x.
And is it really IE 6.0 specific? Does this happen
with e.g. Netscape?

 [2002-04-29 03:27 UTC] redone at dds dot nl
I'm using Apache 1.3.24 and if tested it with Apache 2.0.35 (with the experimental dll) they both have the problem.
It only goes wrong with IE 6.0.
I have also tested it in:
Mozilla 0.9.8
Opera 6.0.1
Netscape 4.0.8
 [2002-04-29 15:29 UTC] sniper@php.net
If it only happens with IE 6.0 -> report it to Microsoft.
Not PHP bug.

 [2002-04-29 15:36 UTC] redone at dds dot nl
If IE 6.0 is the problem. Then why did it work with PHP 4.1.x and also when I use the .exe parser??
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 08:01:32 2024 UTC