Jump to content

Editing Files on Server


animuson

Recommended Posts

I'm having trouble figuring out how to word this properly so I also had trouble searching for how to do it.

 

I was wondering if it was possible to use PHP to edit files on a different part of the server. Like my PHP file is located at /home/domains/animuson.com/form.php and I want to be able to edit a file at /etc/game/servers/[server]/config.cfg

Link to comment
https://forums.phpfreaks.com/topic/152548-editing-files-on-server/
Share on other sites

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/etc/game/servers/racing/settings.cfg) is not within the allowed path(s): (/home/admin/:/tmp:/usr/local/lib/php/) in /home/admin/domains/[domain]/public_html/smanage.php on line 4

 

Warning: fopen(/etc/game/servers/racing/settings.cfg) [function.fopen]: failed to open stream: Operation not permitted in /home/admin/domains/[domain]/public_html/smanage.php on line 4

Can't open file

* Removed the domain

 

It won't let me get out of the /home directory. Any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.