Java linux HTML qmail C++ PHP Debian MySQL ASP JavaScript perl Delphi NetBSD Solaris etc etc etc [...]






Page: 1 2 3 4 5 6 7 8 9


Comments:
<easypwn> hm..
<easypwn> yea I use that in all pages
<Two-Bits> session.use_cookies
<Two-Bits> you use session_start in all pages?



<easypwn> yeah
<easypwn> heres src' for the files used in register/login process and the members page; http://nicedns.easypwn.com/tmp
<easypwn> "<?php @session_start();?>"
<|D-X|> easypwn, go and use the pastebin
<easypwn> but its several pages :|
<Two-Bits> ffs
<Two-Bits> why are you suppressing any possible error when you're trying to start the session?!
<Two-Bits> if it fails to start the session, there's no way for you to know!
<easypwn> oh, hum.. hehe
<easypwn> lemme fix that to see if I get ne errors, sec
<Two-Bits> now i bet it's a output buffering issue
<Two-Bits> because your session_start is not before your first content and thusly the headers are being sent prematurely
<Two-Bits> never suppress errors in any way shape or form while in development. EVER



<easypwn> oh, ok.
<Two-Bits> not unless it's an error that you expect and are otherwise handling and cannot avoid for some reason. VERY rare
<easypwn> k
<easypwn> Getting this now; "Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/easypwns/public_html/nicedns/index.php:3) in /home/easypwns/public_html/nicedns/index.php on line 3" hmm..
<Two-Bits> also, fwiw, the meta refresh on your login success page should really be in the <head>. and i'd consider NOT redisplaying the login form if the login was successful. most people wont read that little message and will assume it says something to the effect of "WRONG!" but in more words
<Two-Bits> <@Two-Bits> because your session_start is not before your first content and thusly the headers are being sent prematurely
<Two-Bits> just as i said
<easypwn> oh.. hehe.. thx, lemme try..
<easypwn> should I put it even before the first <html> tag?
<Two-Bits> either move your session_start to the absolute beginning of the script (whereas the very first 2 bytes of your php file are < and % and session_start is within that php block with NO echo's or print's or otherwise content producing code above it
<Moridin> ok, I've narrowed down my problem
<Moridin> It's something to do with this line
<Moridin> $sql = 'SELECT * FROM `item_db` WHERE `name_english` LIKE "%$input%"';
<Two-Bits> the other option, which i dont usually like, is to turn output_buffering on


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

php
php