Page 1 of 1
Some PHP scripts doesn't work on MAC
Posted: Sat Jan 28, 2012 2:07 am
by A7x
OK, this is maybe a strange question but here we go. Is it possible that some scripts doesn't work on MAC? Every user on my website using windows is able to login to the dashboard without any problems. Yesterday a MAC user contacted me that the login is not working. So I tried it and replied that it is working for me, I tried it in mozilla firefox and chrome so I asked what browser is he using. He was using safari so I tried safari too and it worked, then i asked for operating system and he replied that he is using MAC. I'm not able to test my website on MAC, so I coded a really simple plain HTML/PHP login page without any JavaScript. It was the simplest code, it had about only 20 lines of code (just mysql query for username, then mysql_num_rows() if there exists such username, and then if() condition to see if $_POST['username'] and pass equals with those in the database.). It didn't work for him either. I don't know where to look, and for what I should be looking exactly. Is there a chance that there is something wrong or different with setcookie(), $_SESSION[] or sending headers on MAC? Right now, I'm clueless and I have no idea what is wrong. So i'm asking if you have ever had such problem and how did you solve it. Thank you

Re: Some PHP scripts doesn't work on MAC
Posted: Sun Jan 29, 2012 3:15 pm
by califdon
As far as I know (and I'm not an expert on this), Macs running Safari should experience the same behavior as PCs running Safari. If there were any real differences, I think it would be well known in the community. I would suggest you find someone else who uses a Mac (there are a lot of them!) and ask them to test your page, before I would spend a lot of time on it.
Re: Some PHP scripts doesn't work on MAC
Posted: Sun Jan 29, 2012 7:28 pm
by flying_circus
A7x wrote:OK, this is maybe a strange question but here we go. Is it possible that some scripts doesn't work on MAC? Every user on my website using windows is able to login to the dashboard without any problems. Yesterday a MAC user contacted me that the login is not working. So I tried it and replied that it is working for me, I tried it in mozilla firefox and chrome so I asked what browser is he using. He was using safari so I tried safari too and it worked, then i asked for operating system and he replied that he is using MAC. I'm not able to test my website on MAC, so I coded a really simple plain HTML/PHP login page without any JavaScript. It was the simplest code, it had about only 20 lines of code (just mysql query for username, then mysql_num_rows() if there exists such username, and then if() condition to see if $_POST['username'] and pass equals with those in the database.). It didn't work for him either. I don't know where to look, and for what I should be looking exactly. Is there a chance that there is something wrong or different with setcookie(), $_SESSION[] or sending headers on MAC? Right now, I'm clueless and I have no idea what is wrong. So i'm asking if you have ever had such problem and how did you solve it. Thank you

It's really hard to comment without seeing the code, but keep in mind that cookies and javascript are optional. He may have one or both turned off. Does your login script work if cookies are disabled?
Functionally, there should be no difference between mac and pc. Does the problem persist if the user tries firefox on his mac?