Page 1 of 1

forbidden 403

Posted: Fri Sep 23, 2005 4:38 am
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

Posted: Fri Sep 23, 2005 4:47 am
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?

Posted: Fri Sep 23, 2005 5:16 am
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

Posted: Fri Sep 23, 2005 5:48 am
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