Answer the question
In order to leave comments, you need to log in
PHP script to access text file?
Good afternoon, participants. Such a situation, I am not strong in writing code, so I came to you with a question. Actually, for starters, I work in a telecom provider and I am entrusted with the obligation to configure network equipment, in order to eliminate the human factor, I need a script that edited the file along certain lines. For example, there is a file config.cfg/txt., I need to edit a few lines in this file, how to automate this? I imagine it like this, to make a special form for uploading the config, then a few lines in which you write the necessary data and they are ported to the previously loaded document.
In general, the question is how to implement it?
Answer the question
In order to leave comments, you need to log in
pythonworld.ru/tipy-dannyx-v-python/fajly-rabota-s...
https://www.ibm.com/developerworks/ru/library/l-py
...
pythonicway.com/python-fileio
?
file-put-contents
If php then this would be a more correct solution.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question