PHP Security - Directory and File Permissions Help

I need a security hole fixed on a SHARED server.

I have a directory with some PHP files in it: /home/[url removed, login to view]

I need to be able to execute these as PHP by include()ing them from /home/ So when the code is included, it will be seen as running from /home/[url removed, login to view], even though they are being taken from /home/[url removed, login to view]

The problem is that I don't want the files from /home/[url removed, login to view] to be able to read/write to anything..

But I still need the file that calls them (in /home/[url removed, login to view]) to have read/write access.

I have been told to use chown by someone, but I'm not sure what to do. I tried some chmod stuff but it either disabled everything from read/write or nothing. There was no distinction based on where the source php was coming from. Maybe I could use an iframe but who wants to do that? Not me.

I REQUIRE the problem solved, along with a DESCRIPTION of how the problem was solved, clearly, so I can do it again myself in the future if required.

PLEASE ONLY BID IF YOU KNOW EXACTLY WHAT TO DO. It would be helpful it you could give me a hint prior to me accepting your bid.


Skills: Apache, PHP, Web Security

See more: what php can do, site where i can write anything, php from home, web security, security, php security, ing, code security, file source, require iframe, permissions php, file permissions, chown, can php read access, source file, php read file, file access, can someone help write, write file, web iframe, someone help can write, file home, solved site, need someone help write, read files web server

About the Employer:
( 0 reviews ) Melbourne, Australia

Project ID: #1162892

5 freelancers are bidding on average $71 for this job


Please see PMB

$50 USD in 1 day
(57 Reviews)

I can do it in few hours.

$80 USD in 0 days
(100 Reviews)

Hello, gently check PM.

$70 USD in 0 days
(12 Reviews)

Hello, I could finish this work quickly. Kindly contact me to start working. Regards.

$80 USD in 1 day
(2 Reviews)

My name is Meerab and I am contacting you on behalf of Webnomics Technologies.I am Marketing Executive for the company. Webnomics Technologies is a global outsourcing services provider. we have been in business since More

$76 USD in 5 days
(0 Reviews)