[ LUGOS ] Grozljivka (500 Internal Server Error)
Borut Mrak
borut.mrak na ijs.si
Sre Jan 10 11:16:17 CET 2001
On Wed, Jan 10, 2001 at 11:11:01AM +0100, Matija Grabnar wrote:
> Hmmm - ali zadeva vedno pravilno izpise "Content-type:" header, preden
> zacne izpisovati svoje zadeve?
Ja. Minimalisticno sicer, ampak tu je point, da ne bi dobival groznega
errorja (tole je zacetek outputa):
Content-Type: text/html^M
^M
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Untitled Document</TITLE>
</HEAD><BODY><table>
Dvomim, da so tisti CR-ji (^M) problem...izpljune jih CGI.pm
(funkcija header)
Tole zgoraj pa naredi ta kos kode:
print $query->header();
print $query->start_html();
print "<table>";
lp,
--
Borut
borut.mrak na ijs.si
-----------------
The other night I was having sex, but the girl hung up on me.
Dodatne informacije o seznamu Starilist