
![]() |
jammaster82
Can anyone from the
linuxcrewsuggest a good way to maybe ftp batch my local directory to the webserver... perlscript?Kylix app? Kermit? I see there are many answers on google just wanted a human opinion.... vsloathe
Well I'd use
PHPbut that's just because I'm terribly unqualified to do any of the above mentioned. There are probably better options.jammaster82
after downloading a couple of non working
site editors , SCREEM, to be the suckiest, i glanced across gftp and i can bookmark the site , the directory and upload and overwrite entire folder after every edit with an alt-tab and a single click, alt-tab again and the browser page swings into view where i hit refresh.... phpediting staion solved...simple ,sweet and phreE! perkiset
I tar.gz it all first, since it maintains permissions and the upload is a lot quicker. But
PHPis a great way to go, people miss this all the time - if you simply:#!/usr/local/bin/ php<? php// some stuff ?> then chmod to 755 you can execute a phpfile like any other batch script... so I've abandoned shell scripting almost entirely and gone withPHP- IME it's way better and damn easy. Since I don't have a worry about RAM (which would be the primary reason for shells rather than anotherPHPinstance) it's a superior solution to my thinking. So if you wrote a little script that tar.gz'd everything in the current directory to, say, one directory up (towards the root) with a name specified on the command line you'd have a great solution. Then put the script in /usr/bin or something so that it's available from wherever you are. Then it'd be like this:> dirupload. phptargethost... where dirupload. phpis the script that does the compression and FTPing, and targethost is a filename that contains the ftp host, username, password etc of where you want it all to go.Just thinkin... jammaster82
sweet. i love it.
and i was running into the permissions issue too... ![]() |

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads