Re: Error: text/html Content-Length

From: Date: Fri, 16 Nov 2001 08:41:28 +0000
Subject: Re: Error: text/html Content-Length
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10446@lists.php.net to get a copy of this message
Hello guys, In addition to my first note, I still have the same problem - but know I can describe it more exactly: My scripts like this worked in the past very well: ---------------- <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <?php $dummy = 199; $author = "Markus Weber"; echo "Test Script von $author (No.=$dummy)<br>"; echo "Und jetzt nochmal die Nummer = $dummy<br>"; ?> </body> </html> ---------------- But now the browser output is like this: ----------- <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> Test Script von Markus Weber (No.=199)<br>Und jetzt nochmal die Nummer = 199<br> </body> </html> HTTP/1.1 500 Server Error Server: Microsoft-IIS/5.0 Date: Thu, 15 Nov 2001 01:54:38 GMT Content-Type: text/html Content-Length: 44 <html>-2147417842 (0x8001010e)</body></html> ----------- After several attempts to access my scripts I got this message: PHP has encountered an Access Violation at 010A376F which results in a "application server error". Then I have to restart my system. I tried some changes in php.ini (mime-type; content-type). Without results. Also I changed my script. I found out that when my whole script is enclosed by <?php ... ?> tags I will get no errors. See the changed script which works (!): -- new script -- -- new script -- : <?php echo <<<BLOCK <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> BLOCK; $dummy = 199; $author = "Markus Weber"; echo "Test Script von $author (No.=$dummy)<br>"; echo "Und jetzt nochmal die Nummer = $dummy<br>"; echo "</body>"; echo "</html>"; ?> -- -- -- -- -- -- I don´t know why my scripts suddenly do not work. Could you help me ? (Attached you will find a pdf which shows my php configuration generated by phpinfo(). bye, Markus Weber P.S.: Here my test script (which does not work now): <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <?php $dummy = 199; $author = "Markus Weber"; echo "Test Script von $author (No.=$dummy)<br>"; echo "Und jetzt nochmal die Nummer = $dummy<br>"; ?> </body> </html> "Markus Weber" <mweber@mwct.de> schrieb im Newsbeitrag news:20011114140809.48888.qmail@pb1.pair.com... > Hi, > > does anybody know whtat this error message mean ? > > HTTP/1.1 500 Server Error Server: Microsoft-IIS/5.0 Date: Wed, 14 Nov 2001 > 08:49:34 GMT Content-Type: text/html Content-Length: 44 -2147417842 > (0x8001010e) > > In my script I used the HEREDOC syntax: > > echo <<<BLOCK_A > (html tags)... > > BLOCK_A; > > > bye, > markus > >

« previous php.windows (#10446) next »