Results 1 to 3 of 3

Thread: comparing files and updating

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    39

    Post comparing files and updating

    Want some script code

    I have two directories (source and target). Source directory contains new files
    I woulike to download source to target but if target contaains same files then overwrite if target doesnot contains fille then copy new file to target.


    I am new to php. Please help

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: comparing files and updating

    Have a go at doing it yourself. Then post otherwise goto www.rentacoder.com
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: comparing files and updating

    look at filemtime() to check when the file was last modified. As for reading the file look at fopen()

    Most people are willing to help you if you get stuck but no one will write the script for you. A quick search of this fourm will give you some good tutorials to helping you get started with PHP.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width