unix cmd, variable as target instead of file
Moderator: General Moderators
unix cmd, variable as target instead of file
I’m trying to use the unix diff command “diff –u –0 file1 file2” using php. I can use this on 2 files that are currently in the directory, but I’d like to use the diff command on 2 variables instead of 2 files. Of course I could save the 2 variables as file then do the diff, but is there a more direct way to diff 2 variables in php instead of having to save them as files in the directory?
-
Tubbietoeter
- Forum Contributor
- Posts: 149
- Joined: Fri Mar 14, 2003 2:41 am
- Location: Germany