forbidden 403

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

forbidden 403

Post by rami »

Forbidden
You don't have permission to access /html"view.php on this server.


--------------------------------------------------------------------------------

Apache/1.3.33 Server at localhost Port 80

i have got this strange error for only one file in the folder
all files are accessible from the folder except this one(view.php)
so where is the error
i dont think its do with the setting

the root and details of problem is here
viewtopic.php?t=38381&highlight=
since i was not able to get real answer so i posted here..
(not a double post)
thanks
rami
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

/html"view.php
I think you mean /html/view.php :P

On view.php, is there any code that would redirect to a forbidden page?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

This can have a couple of reasons:

1. check the file permissions. If it is not at least world readable or probably even world executable you get that error
2. check the directory permissions. dir permissions are also important
3. check if there is a .htaccess doing something like rewrite
4. the script execution could be somehow limited inside httpd.conf
5. check if the file calls anything that has a problem with 1-4
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

Post by rami »

AGISB wrote:This can have a couple of reasons:

1. check the file permissions. If it is not at least world readable or probably even world executable you get that error
2. check the directory permissions. dir permissions are also important
3. check if there is a .htaccess doing something like rewrite
4. the script execution could be somehow limited inside httpd.conf
5. check if the file calls anything that has a problem with 1-4
thanks for such quick reply
any way i am new to user dont know much about these but i have leaened a lot in these few days from this forum as well
i have just installed easyphp from http://www.easyphp.org and have not done any thing like permission restriction

how ever from my commen sense i can say that
its not directory permission restriction error and other all files in that folder can be access in that login page there is
ob_end_clean();
header ("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) .
""view.php?aid={$row['user_id']}">");
even if i give just index.php removing all other aid=....
it works
all files are in folder html inside www

i think i have not used .ttaccess

i think 5 th may be solution ..the code might have been causing the problem
the link i have provided has complete code of both
login.php and view.php
viewtopic.php?t=38381&highlight=

so can any body please help me saying what is casuing error...

thanks for quick help
Post Reply