Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8502077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:23:08+00:00 2026-06-11T01:23:08+00:00

I am using Phing and right now I am using this code to upload

  • 0

I am using Phing and right now I am using this code to upload my files to FTP:

<target name="ftp.upload">
    <echo>Uploading files to FTP</echo>
    <ftpdeploy 
        host="${ftp.destination.host}"
        port="${ftp.destination.port}"
        username="${ftp.destination.username}"
        password="${ftp.destination.password}"
        dir="${ftp.destination.dir}"
        mode="${ftp.destination.mode}">
       <fileset refid="TheFiles" />
    </ftpdeploy>
    <echo>FTP Upload Finished!</echo>
</target>

It takes a long time to load, and I have a lot of images – so every time I make a small text change, I don’t want it to re-upload everything. Is there a way to detect which files has been changed and only upload those?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:23:10+00:00Added an answer on June 11, 2026 at 1:23 am

    This is a little late … but you CAN actually do this with Phing. This requires a few steps:

    Define a date property to go off from. This will be necessary at the end when you’re saving last build date for future builds

    < tstamp>
      < format property="builddate" pattern="%m/%d/%Y"  />
      < format property="buildtime" pattern="%I:%M %p" />
    < /tstamp>
    

    Define lastbuilddate property. Define it to something way back. Then include a file (will be created at the end of your run) with the same property. If file exists (2nd run and after), it will override the setting you defined with whatever the last date was

    < property name="lastbuilddate" value="01/01/1970 12:00 AM" />
    < property file="$.\lastbuild.properties" override="true"/>
    

    Include date task in your fileset definition. That specifies to only pick files that have last modified date AFTER your last build date

    < fileset id=”TheFiles” > < date datetime=”${lastbuilddate}”
    when=”after”/> < / fileset>

    Run your ftp for the TheFiles fileset

    Update the lastbuild.properties file with the latest run date. Noticed that we’re using date/time properties defined initially.

        < echo msg="lastbuilddate=${builddate} ${buildtime}" file="$./lastbuild.properties" append="false" />
    

    Every time you run your target, it will only ftp files that were changed since the date specified in lastbuilddate property

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Phing to create build files, but I've noticed that it does not
I am using Phing 's dbdeploy task to manage my database schema . This
I have successfully installed Phing but have a few questions. Right now, in order
How to send CTRL+C/SIGINT to a remote host using Net::Ping in Perl ? I'm
i am using Qprocess to execute ping to check for a host to be
Not sure if this is the right place to ask, but here goes.... I
I'm using Phing to push a wordpress installation to my production server. Is it
We're currently using Phing for deployment and use dbdeploy to apply any database changes.
I am installing phing using instructions here I get the following error. I have
I am using PHPUnit 3.5 and CIUnit with PHING 2.4 for unit testing my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.