PinkHTML Posted November 28, 2014 Posted November 28, 2014 User: pinkhtmlWebsite: 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 Quote
Byron Posted November 28, 2014 Posted November 28, 2014 Give your page a .php extension so it can parse the php. 1 Quote
PinkHTML Posted November 28, 2014 Author Posted November 28, 2014 Sorry I sent wrong website http://www.pinkhtml.com/developer/signin.php Website I sent you use javascript ajax to request website above Quote
Byron Posted November 28, 2014 Posted November 28, 2014 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 imapd27532 pinkhtml 15 0 16864 1032 852 S 0.0 0.0 0:00.00 imapd27534 pinkhtml 15 0 16864 1004 824 S 0.0 0.0 0:00.00 imapd27535 pinkhtml 15 0 16864 1040 852 S 0.0 0.0 0:00.00 imapd27576 pinkhtml 15 0 9036 1148 1008 S 0.0 0.0 0:00.00 gam_server 1 Quote
wolstech Posted November 29, 2014 Posted November 29, 2014 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. 1 Quote
Byron Posted November 29, 2014 Posted November 29, 2014 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_server30039 pinkhtml 15 0 16864 1044 852 S 0.0 0.0 0:00.00 imapd30040 pinkhtml 15 0 14776 932 772 S 0.0 0.0 0:00.00 imapd30041 pinkhtml 15 0 16864 1040 852 S 0.0 0.0 0:00.00 imapd30042 pinkhtml 16 0 14776 908 744 S 0.0 0.0 0:00.00 imapd30043 pinkhtml 16 0 14776 908 744 S 0.0 0.0 0:00.00 imapd30044 pinkhtml 15 0 14776 936 772 S 0.0 0.0 0:00.00 imapd Quote
Byron Posted November 29, 2014 Posted November 29, 2014 Your ok now. There isn't too many processes running. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.