Page 1 of 1

Strange error messages

Posted: Sun Feb 03, 2008 8:09 am
by pete_lol
Hello,
I think my website hosts have done something to my login script as after they did some maintenance on my server i get a timed out error message. I just want to find out some possible reasons why that message is generated just to make sure it's not my script.

As far as i know the script was working perfectly well. There's no loops so there's no chance of an infinite loop.

After the script has timed out and i try to load another page i get error messages saying that my header and footer files couldn't be found.

Does this sound like a php or server error?

Thanks, Peter

Edit: It's complaining about this line:

Code: Select all

//check username
if(!file_exists("./{$dir_accounts}/".$_POST['username_post']."_user.php")){
   $error = true;
}
//this line
if(file_exists("./{$dir_accounts}/".$_POST['username_post']."_user.php")){
   include("./{$dir_accounts}/".$_POST['username_post']."_user.php");
   if($password != md5($_POST['password_post'])){
      $error = true;
   }
}

Re: Strange error messages

Posted: Sun Feb 03, 2008 3:05 pm
by califdon
What error messages are you receiving?

Re: Strange error messages

Posted: Sun Feb 03, 2008 5:30 pm
by pete_lol
A time out error. Something like "the script has timed out after 30 seconds /home/../../ line 17"

Re: Strange error messages

Posted: Sun Feb 03, 2008 6:15 pm
by Christopher
How big is the file?

Re: Strange error messages

Posted: Mon Feb 04, 2008 4:08 pm
by pete_lol
2KB.I put in my header a message and added die() after, but now i've removed that message and die() but it seems when the cookie is there the error is applied again, along with error messages saying the header and footer can't be found.

I found the problem, and i have absolutely no idea why it generated these errors. My ftp client sometimes writes index.php to the wrong directory and in this case it wrote it to my accounts directory.

Re: Strange error messages

Posted: Mon Feb 04, 2008 4:19 pm
by califdon
It makes it very hard to answer your questions unless you show us verbatim what error messages you are receiving.