Mam kod:
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="SK">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Webová stránka triedy Kvarta A na Gymnáziu Okružná 2469 vo Zvolene." />
<meta name="keywords" content="kvarta, kvarta a, gymnázium, okružná, 2469, zvolen" />
<meta name="author" content="Jakub Jurových" />
...
...
...
Na hostingu php5.sk mi to hlasi chybu:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/6/site30176/wwwroot/trieda/index.php:1) in /www/6/site30176/wwwroot/trieda/index.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/6/site30176/wwwroot/trieda/index.php:1) in /www/6/site30176/wwwroot/trieda/index.php on line 1
Viem, ze session_start() musi byt vzdy na zaciatku a pred hocijakym vystupom. Aj ked to tak je, tak mi to nejde. Nechapem preco, lebo na localhoste a inych free hostingoch mi to funguje. Neviete mi s tymto poradit? Je to jediny hosting, ktory podporuje .htaccess a preto som odkazany nanho. Ak by ste vedeli este o inom free hostingu, tak ho sem napiste.