reference a local file

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: reference a local file

Post by seandisanti » Fri May 02, 2014 6:14 pm

Because apache doesn't have access to see outside of the webroot.

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: reference a local file

Post by seandisanti » Sat May 03, 2014 10:38 am

no, I'm saying that as far as apache is concerned, the local drive is not the entire c drive, it only sees what its given access to, which really should not be anything beyond the web root. There are other ways around it, like putting the file in some subfolder of the webroot if it's for web use, or have a task scheduler or cron job move it to where it can be read at set intervals. There are a lot of ways to accomplish what you want, what you should not do, however tempting it may seem, is give your apache access to your entire drive. Then you're just one good exploit away from SOL.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest