View Single Post
Old 11-21-2012, 02:44 PM   PM User | #18
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,504
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
I don't know what you want me to say?

I've offered to write the code for you but instead you prefer to do it yourself, have me give you all the information, you struggle to write the code so get me doing it, then help you fix your code / debug it and all for free?

If someone offers to do something for you for a fair price, it's a bit of a cheek to turn around and then ask them to help you do it while actually expecting them to do most of the work because you don't know how to DIY. You might just as well asked me to do it for free because thats effectively what you're getting at.

On top of that, I've explained the logic to you that you need to write code that loops at least once per second (twice max) that checks the source folder for files and moves them to your destination folder and continues to do so for 59 seconds. Then every minute your cron runs the script again.

I've explained the theory to you of how this process should work. Go away, hit google and find out how to do these small steps bit by bit until you work out what you're doing and can put it all together. It really isn't that hard you just have to make an effort.

Sorry if that sounds harsh but you say you want to do it yourself and rather than pay, so DO IT! Everyone who writes PHP has had to learn the hard way and that takes time and effort. If you then want someone to write your code for you it's only fair that you reward them for it or be prepared to do some learning yourself. This forum is really aimed at helping people out with small snippets of code or helping bug fixes etc not asking for people to either write your complete project for free or help you plan and build it from the ground up. There is a projects forum for that!

Hit google, look up php loops, then php directory scan etc. That will get you started
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.

Last edited by tangoforce; 11-21-2012 at 02:53 PM..
tangoforce is offline   Reply With Quote