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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...