php diff

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AirYT

    php diff

    Hello,

    I'm looking for an implementation for diffing 2 (text) files and spitting
    out the output using php only. i would like to extend this to use ftp to
    diff two files on two ftp servers, or one local file & a remote ftp server.

    Anyone have any ideas on source for this before i go ahead and build it? At
    least the diff engine? a nice gui would be best, but not totally necessary.

    TIA,
    yt



  • Andy Hassall

    #2
    Re: php diff

    On Mon, 18 Dec 2006 17:39:27 GMT, "AirYT" <airyt@funkychi ckens.orgwrote:
    >I'm looking for an implementation for diffing 2 (text) files and spitting
    >out the output using php only. i would like to extend this to use ftp to
    >diff two files on two ftp servers, or one local file & a remote ftp server.
    >
    >Anyone have any ideas on source for this before i go ahead and build it? At
    >least the diff engine? a nice gui would be best, but not totally necessary.
    For the diff engine part:


    (I've been using this for a while and it's fine)


    (Not pure PHP, it's a compiled extension)

    Or shell out to an external diff command.

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • AirYT

      #3
      Re: php diff

      "Andy Hassall" <andy@andyh.co. ukwrote in message
      news:skkdo2p1jn hdt2uvnjkc16ph2 6qmf06bqf@4ax.c om...
      On Mon, 18 Dec 2006 17:39:27 GMT, "AirYT" <airyt@funkychi ckens.orgwrote:
      >
      >>I'm looking for an implementation for diffing 2 (text) files and spitting
      >>out the output using php only. i would like to extend this to use ftp to
      >>diff two files on two ftp servers, or one local file & a remote ftp
      >>server.
      >>
      >>Anyone have any ideas on source for this before i go ahead and build it?
      >>At
      >>least the diff engine? a nice gui would be best, but not totally
      >>necessary.
      >
      For the diff engine part:
      >

      (I've been using this for a while and it's fine)
      >

      (Not pure PHP, it's a compiled extension)
      >
      Or shell out to an external diff command.
      >
      --
      Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      thanks - ever seen a good GUI diff done in php?

      regards, yt


      Comment

      • Andy Hassall

        #4
        Re: php diff

        On Mon, 18 Dec 2006 19:04:23 GMT, "AirYT" <airyt@funkychi ckens.orgwrote:
        >http://pear.php.net/package/Text_Diff
        >(I've been using this for a while and it's fine)
        >
        >thanks - ever seen a good GUI diff done in php?
        I wrote one using Text_Diff at work (which means I can't post the code) - it's
        not that hard, you just make your own subclass of the Text_Diff_Rende rer class
        from Text_Diff, if I remember correctly. I think there's also a couple of
        example renderers in the package that you can tweak.

        --
        Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
        http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

        Comment

        Working...