WordPress.org

Ready to get started?Download WordPress

Forums

How do I compare php files (5 posts)

  1. rvblog
    Member
    Posted 9 years ago #

    Is there an editor (or other way) that will compare two php files with each other.

    Example:

    I take a clean version of index.php

    I then make changes to index.php for my theme - for the purpose of this topic call it index2.php

    Is there an editor (or other way) to open both files at the same time ( index.php and index2.php) and then compare the contents of one file with the other to see where any changes were made

    For example:

    changes made in the index2.php file - compared to the original index.php

    Hopefully, I explained this properly

    Thanks

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    winmerge on windows

  3. Yngwin
    Member
    Posted 9 years ago #

    diff will do, but I don't know how you like your commandline :-)
    If you're on Windows, you can use WinMerge: http://winmerge.sourceforge.net/

  4. rvblog
    Member
    Posted 9 years ago #

    Command Line ? - forget that LOL

    WinMerge - Exactly what I'm looking for.

    Thanks

  5. banjolawyer
    Member
    Posted 9 years ago #

    extremely useful...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.