editing another user's file

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
dracoola
Forum Newbie
Posts: 3
Joined: Thu Dec 09, 2004 5:10 pm

editing another user's file

Post by dracoola »

Hi !

I want to edit apache's config file with a php script.
But as you know php can't reach the root's file.
How can i edit this config file?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Who's server? Is it your own server?

If it is your server you just need to change the owner of the file to "nobody" or "wwwroot" or whoever the username is that PHP scripts run under.

If it's not your server you can forget it and will have to make do with .htaccess :?
Post Reply