Why can't I load this file in my php env

I downloaded ajax example here…
JSON AJAX Web Chat Tutorial

I’m all set up for php on my mac, and have np running anything, but on this one, even when I load readme.html
http://localhost/json_ajax_chat/readme.html

I get “403 – forbidden” error: this is what it says on the browser:
You don’t have permission to access /json_ajax_chat/readme.html on this server.

why does this happen… thank you…

PS: there is no “comments” section on this tutorial, and email sent to address mentioned here,
http://www.dynamicajax.com/pg/145-243.html
bounces… how the heck are you supposed to report bugs/issues to this guy???

I don’t know anything about running PHP on a Mac, but the 403 comes from the web server (which is Apache in a Linux environment). Not sure what you are running.

You might check the file permissions and ownership first.

hmm… I posted this here in the hopes that someone knowledgeable about PHP would respond…:wink:

how do I check “file permissions and ownership”?? I’ve never had to do this for any back-end files I have ever downloaded (and I’ve downloaded A LOT of stuff…)

ok… thank you for your response…

Most people run PHP in a LAMP setup.

well, I’m running it in Apache… I don’t get this 403 error on anything else I’m running in php, I can even connect to MySQL fine…

ok… thank you…

As speda1 mentioned you should check your file permissions, I’m not sure what you’re running your LAMP stack on, so I can’t easily tell you how to do that without knowing.

Either let us know more information or try to Google something like “how to change file permissions in [your operating system]”

well, I found solution… duplicated entire folder and re-created all files one-by-one, copying all code from orig files… it runs now… but it’s full of JS-errors and thus non-functional… oh man… I do need a good example with JSON & back-end, and this seemed like a good one… oh well… I guess I need to debug the JS errors, but finding another good example with JSON & PHP (& AJAX), would also help, if anyone knows of any such example I can grab somewhere I would appreciate it…

thank you…