05. marts 2001 - 21:40
Der er
11 kommentarer og 1 løsning
Så er den gal IGEN!!
HARJ! Du har jeg fået nok af følgende fejl: Warning: Cannot add header information - headers already sent by (output started at /home/crashtest/public_html/menu.php:6) in /home/crashtest/public_html/menu.php on line 38 skulle være meget simpel, men hvad kan jeg sige....er Newbie på dette område... sourcen ser sådan nu: <html> <head> <title>Zhatten.Com</title> <body bgcolor=\"#1f4f7e\"> <P> <STYLE type=text/css> A:link {font-family:Tahoma;font-size:9.0pt;color: #ffffff;text-decoration:None;} A:visited {font-family:Tahoma;font-size:9.0pt;color: #ffffff;text-decoration:None;} A:hover {font-family:Tahoma;font-size:9.0pt;color: #ffffff;text-decoration:underline;} .knap {background-color:#3399CC; border-bottom:dotted 1px; border-color:#000000; border-left:dotted 1px; border-color:#000000; border-right:dotted 1px; border-color:#000000; border-top:dotted 1px; border-color:#000000; color:#000000; cursor:hand; font-family:verdana; font-size: 8pt; } .textfelt {background-color:#3399CC; border-bottom:dotted 1px; border-color:#000000; border-left:dotted 1px; border-color:#000000; border-right:dotted 1px; border-color:#000000; border-top:dotted 1px; border-color:#000000; color:#000000; font-family:verdana; font-size: 8pt; } </STYLE> </P> <? $cookie = ja; // Hvis counteren kun skal én gang pr. computer, skal der stå \"ja\", ellers \"nej\" $tid = 36288000; // Tid der skal gå, før counteren tæller igen (hvis man bruger cookie) $file = \"count.txt\"; // Fil, som den skal gemme countertallet i if($count == \"yeps\") { } else { if(file_exists($file)) { $fil = fopen($file, \"r\"); $count = fread($fil, 8); fclose($fil); } else $count=0; $count++; $fil = fopen($file, \"w\"); fwrite($fil, $count); fclose($fil); if($cookie == \"ja\") { setcookie(\"count\",\"yeps\",time()+$tid); } } ?> <font face=\"verdana\"> Hits:<? readfile(\"count.txt\"); ?> <div align=left> <center> </CENTER></DIV> <table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"10%\" style=\"HEIGHT: 248px; WIDTH: 129px\"> <tr> <td width=\"125\" bgcolor=\"#000000\"><table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"10%\" style=\"HEIGHT: 274px; WIDTH: 148px\"> <tr> <td bgcolor=\"#3399cc\"><A href=\"forsiden.html\" target=main><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Forsiden </B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXX</B></FONT><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX </B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"#\"><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXX</B></FONT><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"a.html\" target=forsiden><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"billed.html\" target=forsiden><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"sms.php\" ><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b></B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><A href=\"sms.php\" target=\"main\"><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>SMS<br></B></FONT></A> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Service:</B></FONT><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"#\"><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"kontakt.html\" target=main><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Kontakt</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"admin.php\" target=main><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Admin</B> </FONT><IMG alt=\"\" border=0 height=11 src=\"PIC\\KEY.GIF\" width=7></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT></TD></TR></TABLE></TD></TR></TABLE> </font> </body> </html>
Annonceindlæg fra Infor
05. marts 2001 - 21:48
#1
cookies skal sættes inden ALT html
f2
Nybegynder
05. marts 2001 - 21:49
#2
det er fordi at du skal placere counteren ´(PHP-scriptet) FØR <head>
05. marts 2001 - 21:49
#3
Flyt <? $cookie = ja; // Hvis counteren kun skal én gang pr. computer, skal der stå \"ja\", ellers .... if($cookie == \"ja\") { setcookie(\"count\",\"yeps\",time()+$tid); } } ?> op i toppen af filen
05. marts 2001 - 21:50
#4
<? $cookie = ja; // Hvis counteren kun skal én gang pr. computer, skal der stå \"ja\", ellers \"nej\" $tid = 36288000; // Tid der skal gå, før counteren tæller igen (hvis man bruger cookie) $file = \"count.txt\"; // Fil, som den skal gemme countertallet i if($count == \"yeps\") { } else { if(file_exists($file)) { $fil = fopen($file, \"r\"); $count = fread($fil, 8); fclose($fil); } else $count=0; $count++; $fil = fopen($file, \"w\"); fwrite($fil, $count); fclose($fil); if($cookie == \"ja\") { setcookie(\"count\",\"yeps\",time()+$tid); } } ?> <html> <head> <title>Zhatten.Com</title> <body bgcolor=\"#1f4f7e\"> <P> <STYLE type=text/css> A:link {font-family:Tahoma;font-size:9.0pt;color: #ffffff;text-decoration:None;} A:visited {font-family:Tahoma;font-size:9.0pt;color: #ffffff;text-decoration:None;} A:hover {font-family:Tahoma;font-size:9.0pt;color: #ffffff;text-decoration:underline;} .knap {background-color:#3399CC; border-bottom:dotted 1px; border-color:#000000; border-left:dotted 1px; border-color:#000000; border-right:dotted 1px; border-color:#000000; border-top:dotted 1px; border-color:#000000; color:#000000; cursor:hand; font-family:verdana; font-size: 8pt; } .textfelt {background-color:#3399CC; border-bottom:dotted 1px; border-color:#000000; border-left:dotted 1px; border-color:#000000; border-right:dotted 1px; border-color:#000000; border-top:dotted 1px; border-color:#000000; color:#000000; font-family:verdana; font-size: 8pt; } </STYLE> </P> <font face=\"verdana\"> Hits:<? readfile(\"count.txt\"); ?> <div align=left> <center> </CENTER></DIV> <table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"10%\" style=\"HEIGHT: 248px; WIDTH: 129px\"> <tr> <td width=\"125\" bgcolor=\"#000000\"><table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"10%\" style=\"HEIGHT: 274px; WIDTH: 148px\"> <tr> <td bgcolor=\"#3399cc\"><A href=\"forsiden.html\" target=main><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Forsiden </B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXX</B></FONT><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX </B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"#\"><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXX</B></FONT><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"a.html\" target=forsiden><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"billed.html\" target=forsiden><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"sms.php\" ><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b></B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><A href=\"sms.php\" target=\"main\"><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>SMS<br></B></FONT></A> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Service:</B></FONT><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"#\"><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>XXXXXX</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"kontakt.html\" target=main><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Kontakt</B></FONT></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT> <A href=\"admin.php\" target=main><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b>Admin</B> </FONT><IMG alt=\"\" border=0 height=11 src=\"PIC\\KEY.GIF\" width=7></A><font size=\"1\" face=\"VERDANA,ARIAL,HELVETICA\"><b><br> <IMG height=5 src=\"cleardot.gif\" width=1><br></B></FONT></TD></TR></TABLE></TD></TR></TABLE> </font> </body> </html>
05. marts 2001 - 21:50
#5
...og prøv - men det er en ganske anden sag - at overholde HTML-reglerne med start og slut af tags. Det hjælper.
05. marts 2001 - 22:04
#6
BUMMELUMMELUM!! Jamen dog....jamen dog!! HTML tags...? :o) ej, de R da overholdt....-En gang IMELLEM :o) ej...
05. marts 2001 - 22:05
#7
okay...da jeg ikke ved hvem der skal give points må det blive til den der lige kan smide en smart poll op...?! :o)
05. marts 2001 - 22:07
#8
Du skal selvfølgelig give pointene til mig, jeg svarede først korrekt.
05. marts 2001 - 22:16
#9
hvad nu hvis det ik er det svar jeg bruger? :) men jow jow...der er jo ingen af de andre der gider skave sig :o)
05. marts 2001 - 22:17
#10
Men har du en nice poll alligevel? :o)
05. marts 2001 - 22:20
#11
Har en poll i asp, jeg er ikke så god til php som asp :-)
05. marts 2001 - 22:23
#12
Hmmm....øvza...
Vi tilbyder markedets bedste kurser inden for webudvikling