the_oliver Posted October 31, 2006 Share Posted October 31, 2006 Hello,Is there a way that i can create a php form to reed in data from a .cfg file, prefrably on a diffrent server, thats not in the web directory, and then alow the data to be altered and saved back into the file?The file would have an area looking as follows.[quote]# define service{ host_name Changable by form is_volatile Changable by form check_period Changable by form }[/quote]Also could i use php to create or remove these files?Thanks Link to comment https://forums.phpfreaks.com/topic/25753-can-i-use-php-to-edit-cfg-files/ Share on other sites More sharing options...
fert Posted October 31, 2006 Share Posted October 31, 2006 you could use php to create and remove files on other severs. Link to comment https://forums.phpfreaks.com/topic/25753-can-i-use-php-to-edit-cfg-files/#findComment-117576 Share on other sites More sharing options...
mainewoods Posted November 1, 2006 Share Posted November 1, 2006 you're not allowed to rewrite files on other servers! web hosts and webmasters work to keep people from doing that. if you could do that then microsofts home page would be forever full of microsoft insults! Link to comment https://forums.phpfreaks.com/topic/25753-can-i-use-php-to-edit-cfg-files/#findComment-117670 Share on other sites More sharing options...
corbin Posted November 1, 2006 Share Posted November 1, 2006 You could do it via php and FTP into the server and replace the file... But if you mean to do this for destructive purposes youre on the wrong website :P Link to comment https://forums.phpfreaks.com/topic/25753-can-i-use-php-to-edit-cfg-files/#findComment-117671 Share on other sites More sharing options...
fert Posted November 1, 2006 Share Posted November 1, 2006 [quote author=corbin link=topic=113407.msg460926#msg460926 date=1162349774]You could do it via php and FTP [/quote]That's what i was talking about. Link to comment https://forums.phpfreaks.com/topic/25753-can-i-use-php-to-edit-cfg-files/#findComment-117681 Share on other sites More sharing options...
the_oliver Posted November 1, 2006 Author Share Posted November 1, 2006 not distructive, all the files and servies are mine! What about on the same server though? Link to comment https://forums.phpfreaks.com/topic/25753-can-i-use-php-to-edit-cfg-files/#findComment-118134 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.