codexx Posted March 26, 2007 Share Posted March 26, 2007 Hi Everyone, I have a Windows Server running that converts video files that my users upload. My main web server is on Redhat using Cpanel, the upload script uploads the raw video file to my windows server via ftp. My windows server has a program I purchased that automatically scans the folder and then when it finds a new file converts it to a FLV video file. Is there anyway I can write a script and use a cronjob to detect when a new file is inserted to the folder c:/complete and upload it back to the web server via ftp? Thanks in Advance, Sean Quote Link to comment https://forums.phpfreaks.com/topic/44351-solved-how-to-detect-a-new-file-so-it-can-be-uploaded-to-other-server-via-ftp/ Share on other sites More sharing options...
MadTechie Posted March 26, 2007 Share Posted March 26, 2007 You can but having the program store the filenames in the folder and then compare on the next run, just an idea, if your convert running from a windows server which you have access to, then you can get some software thats mapping drives via a the FTP protocal you could then change the output path of the convert to the mapped FTP drive and your done.. Quote Link to comment https://forums.phpfreaks.com/topic/44351-solved-how-to-detect-a-new-file-so-it-can-be-uploaded-to-other-server-via-ftp/#findComment-215389 Share on other sites More sharing options...
codexx Posted March 26, 2007 Author Share Posted March 26, 2007 Brilliant Idea on the FTP drive mapping! Thank you ever so much, that'll say me tons of time! Thanks again, Sean Quote Link to comment https://forums.phpfreaks.com/topic/44351-solved-how-to-detect-a-new-file-so-it-can-be-uploaded-to-other-server-via-ftp/#findComment-215392 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.