I want to make a script, which could automatic edit a PHP file.
For example, in PHP file abc.php I have this script
<?php
/*
Data : 'Valid Data'
Method : 'Yes'
*/
?>
And I want that, when I get data to a page via $_GET or $_POST on another page data.php, then abc.php file will get edited with new Data. Identity for replacing the old value in abc.php is single colon (Data : ‘Valid Data’).
I have already tried http://www.hotscripts.com/listing/simple-php-file-editor/, but it doesn’t provide any way to use it in my situation.
http://us.php.net/manual/en/function.file.php
http://us.php.net/manual/en/function.file-put-contents.php
http://us.php.net/manual/en/function.implode.php