B
B
Bogdan Romanov2016-02-26 13:54:04
PHP
Bogdan Romanov, 2016-02-26 13:54:04

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

2 answer(s)
D
Dimonchik, 2016-02-26
@dimonchik2013

pythonworld.ru/tipy-dannyx-v-python/fajly-rabota-s...
https://www.ibm.com/developerworks/ru/library/l-py ...
pythonicway.com/python-fileio
?

A
Anton Nagaets, 2016-02-26
@gr1mm3r

file-put-contents
If php then this would be a more correct solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question