opearn Posted April 17, 2009 Share Posted April 17, 2009 hi everyone, is there anyway i can make an automated upload script that will upload "C:/myphp.php" to my hosts server? I've got one script working but it requires a form, I'd like to set a php file up so i just have to double click it and then go to my URL to test. thanks for your time -opearn Link to comment https://forums.phpfreaks.com/topic/154574-help-with-uploads/ Share on other sites More sharing options...
ShadwSrch Posted April 18, 2009 Share Posted April 18, 2009 Got most of this here: http://www.webmasterworld.com/forum10/5090.htm Make a text file that contains your ftp instructions... OPEN ftp.yourhost.com mylogin mypassword binary MPUT c:\myphp.php BYE Make a.bat file that executes it... ftp -i -s:C:\script_daily.ftp Then execute the.bat file. It occurs to me that having this file locally might be safer than having something that will upload to your host. Link to comment https://forums.phpfreaks.com/topic/154574-help-with-uploads/#findComment-812818 Share on other sites More sharing options...
opearn Posted April 18, 2009 Author Share Posted April 18, 2009 sorry, i meant using move_uploaded_file() i'll update the main post. Link to comment https://forums.phpfreaks.com/topic/154574-help-with-uploads/#findComment-812824 Share on other sites More sharing options...
jackpf Posted April 18, 2009 Share Posted April 18, 2009 You shall probably have to use the ftp() functions in PHP. Link to comment https://forums.phpfreaks.com/topic/154574-help-with-uploads/#findComment-812853 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.