Hi, firstly a little description of my situation! I've started a new job this week, a web design job, and most of the week the corporate site of the company is undergoing change and as a newbe! I get the nice job of changing the code in lots of php files, these files all have the same text in them but need to be changed. So all I'm doing is copying and pasting the new code into these php files, the new code is the same for all these files. This is REALLY boring so I want to make my job faster, I want to write a program that gets all the files in a directory (php only!) and changes the information in the files. I've done a similar program before but you have to declare the file name first and the output file name:
So what I need to do now is work out how to read in x amount of php files and write the new php code into each file. Can anyone help me?