Chris: On Mon, Mar 25, 2002 at 08:38:16AM -0500, Chris Hilbert wrote: > I was wondering if anyone would know how I could go about checking two XML > files for differences, similar to the "diff" command in *nix. I'm having a > heck of a time getting a function written to achieve this task.
Which OS are you running on??? Okay, I'll guess Windows. Ah, yes, your mail headers confirm that... Have you tried the "fc" command? It does the same thing as the "unix" based "cmp" command. Also, you could pull the contents of both files into variables and then compare the strings using either a straight "==" evaluation or via one of the comparison functions such as strcmp(), strncasecmp() or strcasecmp(). Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php