DIVX5 Posted July 31, 2007 Report Share Posted July 31, 2007 Ir sekojos kods: @session_start(); if (@!isset($GLOBALS[_SESSION][me])){ require_once('Connections/MyConn.php'); mysql_select_db($database_MyConn, $MyConn) or die('Notikusi kluda! Ludzu, meginiet velreiz!'); mysql_query("update count set skaitiklis=skaitiklis+1"); session_register('me'); @$GLOBALS[_SESSION]["me"]="ok"; } uz FF strada korekti, pieregistrejas sesija un viss kā nākas. Taču IE un Opera uz katru click izpilda kodu pēc if (@!isset($GLOBALS[_SESSION][me])) Kāpēc tā?? Link to comment Share on other sites More sharing options...
v3rb0 Posted July 31, 2007 Report Share Posted July 31, 2007 nu nez, nelieto tos @ tikdaudz,vislabāk vispār nē, session_register() ir deprecated no kaut kādas ~4.1 versijas, stringi jāliek pēdīņās, kāpēc tur tas $_GLOBALS nezinu :) session_start(); if (!isset($_SESSION]['me']){ require_once('Connections/MyConn.php'); mysql_select_db($database_MyConn, $MyConn) or die('Notikusi kluda! Ludzu, meginiet velreiz!'); mysql_query("update count set skaitiklis=skaitiklis+1"); $_SESSION['me'] = 'ok'; } Link to comment Share on other sites More sharing options...
DIVX5 Posted July 31, 2007 Author Report Share Posted July 31, 2007 Ari sis variants darbojas tapat... Kapec FF ir ok, bet IE ne...nesaprotu... Turklat session_start() izsaucot ir sads: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\program files\easyphp1-8\www\sfinksa\index.php:6) in c:\program files\easyphp1-8\www\sfinksa\index.php on line 66 Link to comment Share on other sites More sharing options...
andrisp Posted July 31, 2007 Report Share Posted July 31, 2007 (edited) Paskaties PHP un PHP pinned topiku. Bet vispār - nevar būt, ka tas errors uz FF nav, bet uz IE ir. Tas ir server side errors. Edited July 31, 2007 by andrisp Link to comment Share on other sites More sharing options...
DIVX5 Posted July 31, 2007 Author Report Share Posted July 31, 2007 Tapec es vienkarsi rakstu @session_start() lai warningu neredzetu :) Tacu sesija uz FF nodibinas, bet uz IE ne....nesaprotu tik kadel... Izskatas kautkas nepareizi koda vai tad?? Man lekas viss ok.. Turklat tas ir gan uz mana localhost, gan uz remote servera pie hostinga providera... Link to comment Share on other sites More sharing options...
v3rb0 Posted July 31, 2007 Report Share Posted July 31, 2007 warningi ir ieviesti tikai tāpēc, lai viņus izlabotu, nevis lai traucētu un būtu kaut kas ko vajag slēpt. Link to comment Share on other sites More sharing options...
DIVX5 Posted July 31, 2007 Author Report Share Posted July 31, 2007 Diezgan loģiska tava doma :) Tacu diez vai tas salabos manu problemu? Varbut vel kadi ieteikumi? Neesmu kadu laiku nemies ar sesijam - bik piemirsts.... Link to comment Share on other sites More sharing options...
andrisp Posted July 31, 2007 Report Share Posted July 31, 2007 Es tev saku - palasi par to, ko tas errors nozīmē! Un izlabo - dodu 99% garantiju, ka tas viss problēmas atrisinās. Link to comment Share on other sites More sharing options...
DIVX5 Posted July 31, 2007 Author Report Share Posted July 31, 2007 TNX jums. Tiesam turpmak aizmirsisu par @ :) parcelu sesion_start() uz pasu augsu pirms visiem tagiem un BINGO :)) Dumb me....ta gadas, kadu laiku nekode :D andrisp, tava prognoze piepildijas par visiem 100% :) Link to comment Share on other sites More sharing options...
Recommended Posts