Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Chron Job Upload Questions


  • Please log in to reply
3 replies to this topic

#1 harvlake

harvlake

  • Members
  • 59 posts
  • OFFLINE
  •  
  • Local time:03:09 AM

Posted 06 December 2011 - 12:21 AM

Hi, maybe you can help. I would like to generate a file and store it on an FTP server. Then, maybe, use a chron job to get the file and make an entry into my PHP/MySQL database.

Do you have any suggestions about how I would go about doing this? Such as testing for the available file, deleting the file once it is uploaded.
Thanks
Harv

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:02:09 AM

Posted 06 December 2011 - 09:39 AM

Create a php script that checks for the file, use a sys call to scp or ftp the file, update the database, and then delete the file. If that is stating the obvious, then I am not sure exactly what it is you are asking.

#3 harvlake

harvlake
  • Topic Starter

  • Members
  • 59 posts
  • OFFLINE
  •  
  • Local time:03:09 AM

Posted 06 December 2011 - 01:36 PM

Thanks for the help, just needed someone to point me in the right direction. :thumbup2:
Harv

#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:02:09 AM

Posted 06 December 2011 - 05:09 PM

You should be able to find enough sample scripts to do each part that you can cobble them together to make a single script.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users