I'm using xampp on mac osx for developing a php web app. I'm using the Yii MVC framework to build the app. I'm trying to access a php file via an ajax function and I keep getting this error
Access Forbidden: You don't have permission to access the requested object. It is either read-protected or not readable by the server
So the php file with the ajax function in it is in the same folders as the php file that it's trying to access. I've set the folder to chmod 777, which I assumed would probably do nothing anyway, I was right.
Any ideas what this might be?
That's certainly a problem on your Apache configuration. Maybe you can't access this directory? Have a look to you .htaccess file(s), or the virtual host config
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.