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
Byron Posted November 28, 2014 Posted November 28, 2014 Give your page a .php extension so it can parse the php. 1
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
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
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
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
Byron Posted November 29, 2014 Posted November 29, 2014 Your ok now. There isn't too many processes running.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now