![]() |
Php problem... WTF!
ok, i've been working my ass off trying to get this damn site working.. then finally, it's done! finally fixed all the bugs.. or so i thought!
I try to login to my admin section, and when i get to the index.php of the admin directory, i get this message: Warning: Cannot send session cookie - headers already sent by (output started at /home/virtual/site5/fst/var/www/get_env.php:1) in /home/virtual/site5/fst/var/www/html/tagadmin/index.php on line 14 What in fuck's name does that mean! And how do i fix it? |
What script(s) are you using?
|
It's called kDDL. It's a direct downloads script (intended for warez)
I got it back when i was a warez webmaster. But it's pretty much idealy suited for the TGP i wanna run, so i figured.. hey.. why not.. |
It probably sent some text or blank space before you do a header("location"); redirect or similair..
|
hmm.. any idea how to fix it though? :D
|
Check the html source in your browser if it outputs some strange text before the php warning, could even be " " blank space etc that you miss at first.
|
This is the source (after i've attempted to login, so there's another error)
PHP Code:
|
http://www.faqts.com/knowledge_base/...d/14388/fid/51
Quote:
|
Yep seems like you put the stuff in wrong order.. set session cookie first then html output.
|
Cheers guys. I'll see if i can fix it now :)
|
ok.. i'm stumped..
this is from the index.php of the admin directory: PHP Code:
PHP Code:
|
What's on line 14 of index.php?
|
PHP Code:
|
No errors in config.php or db.inc.php that outputs something?
|
Hey.. i dunno how it happened.. but the admin index.php was modified.. i'm not sure if that's supposed to happen.. but anyways. i just replaced hte index.php from admin and the get_env.php from the originals on my hard disk, and it's fixed the problem..
Any idea why this happened in the first place? and how do i prevent it from happening. cheers |
No idea. But if you have any more php problems hit me up on icq.
|
All times are GMT -7. The time now is 01:31 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123