Page 1 of 1

PHP to CVS

Posted: Fri Jul 24, 2009 5:44 am
by php_quest
Hi,

Is there any way to compare code file(.php OR .js etc.) using PHP Script.

What I mean is, I want to compare two files using comparison tool like Winmerge; And this winmerge should be open through php script.

Please help.. I am in need of this urgently.

Thanks

Re: PHP to CVS

Posted: Fri Jul 24, 2009 9:33 am
by Eric!
Assuming everything you want to do is local to the server, run the winmerge process external to php
http://us2.php.net/manual/en/function.proc-open.php
then pull in the output and redisplay it via php.