I am looking for a program that can merge 2 php files into 1.
Situation I have to users.class.php. One for the front-end and one for the back-end. I've added more methods to both files and I found that it's troublesome. I want to merge the 2 files so that I just have to include to the same file and that'll save some space and troubles. I want the final file to have both methods and variables contains in both the (class) files.
create a superclass which will contain those methods and fields, and extend the other 2 classes from it. That's the nicest OOP way.
To place both classes in 1 file, just copy/paste one in the other
cheers
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks