Php Script To Change File Permissions And Edit File

Hi,

I need a script the will change file permissions, change a line of code in the file, then change the file permission again.

Specifically, I need the script to do the following:

Change the file permissions from 444 to 644 on the following files:

public_html/includes/configure.php
public_html/adminarea/includes/configure.php

In those two files I need the following lines changed from:

define(‘SQL_CACHE_METHOD’, ‘database’);

to

define(‘SQL_CACHE_METHOD’, ‘none’);

Then…

Leave a Reply

Your email address will not be published. Required fields are marked *