This is a really strange thing. I ‘uploaded’ (ie, copied to htdocs) a php file but it’s not running. I get the download dialog from Firefox to download it.
That is really weird. Although I can run the file in Chrome it wouldn’t run in Firefox. What can be the problem.
I got the latest XAMPP version on Windows 7 64-bit.
Edit: typo.
Oke, I found out why it’s not working in firefox. Chrome just prints what it gets but Firefox is doing it right i guess. I’ve written in the header to be an JSON object. It\’s an api so that is why. I was testing in firefox with firebug: header(“Content-type: application/json”);