Jump to content

Recommended Posts

Posted

User: pinkhtml

Website: http://www.pinkhtml.com/

 

Right now I have only one php file and when I run it, it show 500 error

 

This is script I'm using

$db = mysqli_connect("localhost","<USER>","<PASSWORD>","<DB>");

if (mysqli_connect_errno()) {
 printf("Connect failed: %s\n", mysqli_connect_error());
 exit();
}

$em = $_POST['email'];
$ps = md5($_POST['pass']);

if ($q = mysqli_query($db, "SELECT * FROM `login` WHERE `email` = '$em' AND `password` = '$ps'")) {
 if ($r = mysqli_fetch_row($q)) {
  printf("%s",$r[2]);
  setcookie("token",$r[5],time()+3600+24,"/",".pinkhtml.com");
 }else{
  printf("0");
  exit;
 }
}

 

You can test it here http://pinkhtml.com/developer/login.html

Posted

You've got too many php processes running at once. Kill the imapd:

 

 

27531 pinkhtml 15 0 16864 1000 824 S 0.0 0.0 0:00.00 imapd

27532 pinkhtml 15 0 16864 1032 852 S 0.0 0.0 0:00.00 imapd

27534 pinkhtml 15 0 16864 1004 824 S 0.0 0.0 0:00.00 imapd

27535 pinkhtml 15 0 16864 1040 852 S 0.0 0.0 0:00.00 imapd

27576 pinkhtml 15 0 9036 1148 1008 S 0.0 0.0 0:00.00 gam_server

 

  • Like 1
Posted

A lot of imapd processes usually means you're checking your mail too much. Turn off any software, mobile devices, etc. that check your mail, and those imapd instances should go away.

  • Like 1
Posted

I have to kill the processes. You have to stop them from happening like wolstech said. I've killed these same processes on your account several times but they keep coming back. Let me know when you've correct the problem.

 

5376 pinkhtml 15 0 9036 1216 1008 S 0.0 0.0 0:00.03 gam_server

30039 pinkhtml 15 0 16864 1044 852 S 0.0 0.0 0:00.00 imapd

30040 pinkhtml 15 0 14776 932 772 S 0.0 0.0 0:00.00 imapd

30041 pinkhtml 15 0 16864 1040 852 S 0.0 0.0 0:00.00 imapd

30042 pinkhtml 16 0 14776 908 744 S 0.0 0.0 0:00.00 imapd

30043 pinkhtml 16 0 14776 908 744 S 0.0 0.0 0:00.00 imapd

30044 pinkhtml 15 0 14776 936 772 S 0.0 0.0 0:00.00 imapd

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...