I can´t execute a PHP file because it´s in a subfolder

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
florenciox
Forum Newbie
Posts: 1
Joined: Sun Aug 06, 2006 10:42 am

I can´t execute a PHP file because it´s in a subfolder

Post by florenciox »

Hello,

I´m trying to test a website a coder made for me but I can´t execute a PHP file because it´s in a subfolder.

I´m not a coder, but I need to execute a PHP file located in httpdocs/admin (where httpdocs is the root)

I moved the file to the root and it executes but doesn´t work because it´s configuration.

For this reason, I think it a matter of permissions but I changed the permissions to 775 and to 777 with Filezilla but it continues inaccessible, the site says:

Not Found
The requested document was not found on this server.

Can anybody help me?

Thanks in advance

Florencio
Costa Rica
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

if document root is httpdocs, it should read any sub-folders under that root folder.
blackbeard
Forum Contributor
Posts: 123
Joined: Thu Aug 03, 2006 6:20 pm

Post by blackbeard »

did you change the permissions on the folder and the file, or just the file?
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Not Found
The requested document was not found on this server.
Means, it wasn't found. If it was a matter of permission it would say forbidden. Check you are typing the name correctly, if this is running on a linux server it may be case sensitive. If you are requesting http://somesite.com/admin/ try http://somesite.com/admin/index.php
I´m trying to test a website a coder made for me
Where is he now?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The placement of the file in the subfolder should have nothing to do with it not executing. Try the suggestions posted so far (using the proper case of the filename, using the proper filename) and post back what the browser is telling you.
Post Reply