PHP to CVS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
php_quest
Forum Newbie
Posts: 1
Joined: Fri Jul 24, 2009 5:26 am

PHP to CVS

Post 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
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: PHP to CVS

Post 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.
Post Reply