01. marts 2001 - 14:31Der er
26 kommentarer og 1 løsning
ftp-cache...
Hej med-eXperter !
Samme spm. har vist været stillet før...
Jeg søger et script der kan det samme som CyberCity\'s FTP-Cache
Altså at en bruger logger ind og angiver de filer han/hun gerne vil have d/l\'et...
På et givent tidspunkt begynder serveren/servicen så at downloade disse filer, og VupTi, brugeren har sine filer næste dag, i sin respektive brugermappe !
Findes dette script ?
/morpheus
P.S Der er evt. flere point oven i hatten til den der laver det ! :o)
Hvis det er på en Linux/UNIX fætter, så er det vidst ikke så svært, du laver bare et feldt hvor man skriver adressen til filen i, og så smider man det på i en DB. F.eks. kl. 04 om natten eksekverte man et cronjob på maskinen, som eksekvere/starter en PHP-fil som så river URL\'erne ud fra databasen og så downloader dem...
Du skal vel have fat i et ftp program, som du kan bruge via en kommando linie, og så bare kalde det fra php-scriptet. Det ville være smartest under linux, m. fx. lynx. http://ftp.net.uni-c.dk/tucows/adnload/405_29558.html - FTP commander, skulle kunne bruges via kommando linier under win, og så er den freeware.
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.
E:\\>at -help Invalid command.
The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command.
AT [\\\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\\\computername] time [/INTERACTIVE] [ /EVERY:date[,...] | /NEXT:date[,...]] \"command\"
\\\\computername Specifies a remote computer. Commands are scheduled on the local computer if this parameter is omitted. id Is an identification number assigned to a scheduled command. /delete Cancels a scheduled command. If id is omitted, all the scheduled commands on the computer are canceled. /yes Used with cancel all jobs command when no further confirmation is desired. time Specifies the time when command is to run. /interactive Allows the job to interact with the desktop of the user who is logged on at the time the job runs. /every:date[,...] Runs the command on each specified day(s) of the week or month. If date is omitted, the current day of the month is assumed. /next:date[,...] Runs the specified command on the next occurrence of the day (for example, next Thursday). If date is omitted, the current day of the month is assumed. \"command\" Is the Windows NT command, or batch program to be run.
E:\\>wget --help GNU Wget 1.5.3.1, a non-interactive network retriever. Usage: wget [OPTION]... [URL]...
Mandatory arguments to long options are mandatory for short options too.
Startup: -V, --version display the version of Wget and exit. -h, --help print this help. -b, --background go to background after startup. -e, --execute=COMMAND execute a `.wgetrc\' command.
Logging and input file: -o, --output-file=FILE log messages to FILE. -a, --append-output=FILE append messages to FILE. -d, --debug print debug output. -q, --quiet quiet (no output). -v, --verbose be verbose (this is the default). -nv, --non-verbose turn off verboseness, without being quiet. -i, --input-file=FILE read URL-s from file. -F, --force-html treat input file as HTML.
Download: -t, --tries=NUMBER set number of retries to NUMBER (0 unlimits). -O --output-document=FILE write documents to FILE. -nc, --no-clobber don\'t clobber existing files. -c, --continue restart getting an existing file. --dot-style=STYLE set retrieval display style. -N, --timestamping don\'t retrieve files if older than local. -S, --server-response print server response. --spider don\'t download anything. -T, --timeout=SECONDS set the read timeout to SECONDS. -w, --wait=SECONDS wait SECONDS between retrievals. -Y, --proxy=on/off turn proxy on or off. -Q, --quota=NUMBER set retrieval quota to NUMBER.
Directories: -nd --no-directories don\'t create directories. -x, --force-directories force creation of directories. -nH, --no-host-directories don\'t create host directories. -P, --directory-prefix=PREFIX save files to PREFIX/... --cut-dirs=NUMBER ignore NUMBER remote directory components.
HTTP options: --http-user=USER set http user to USER. --http-passwd=PASS set http password to PASS. -C, --cache=on/off (dis)allow server-cached data (normally allowed). --ignore-length ignore `Content-Length\' header field. --header=STRING insert STRING among the headers. --proxy-user=USER set USER as proxy username. --proxy-passwd=PASS set PASS as proxy password. -s, --save-headers save the HTTP headers to file. -U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION.
FTP options: --retr-symlinks retrieve FTP symbolic links. -g, --glob=on/off turn file name globbing on or off. --passive-ftp use the \"passive\" transfer mode.
Recursive retrieval: -r, --recursive recursive web-suck -- use with care!. -l, --level=NUMBER maximum recursion depth (0 to unlimit). --delete-after delete downloaded files. -k, --convert-links convert non-relative links to relative. -m, --mirror turn on options suitable for mirroring. -nr, --dont-remove-listing don\'t remove `.listing\' files.
Recursive accept/reject: -A, --accept=LIST list of accepted extensions. -R, --reject=LIST list of rejected extensions. -D, --domains=LIST list of accepted domains. --exclude-domains=LIST comma-separated list of rejected domains. -L, --relative follow relative links only. --follow-ftp follow FTP links from HTML documents. -H, --span-hosts go to foreign hosts when recursive. -I, --include-directories=LIST list of allowed directories. -X, --exclude-directories=LIST list of excluded directories. -nh, --no-host-lookup don\'t DNS-lookup hosts. -np, --no-parent don\'t ascend to the parent directory.
Mail bug reports and suggestions to <bug-wget@gnu.org>. Mail bug reports and suggestions to <bug-wget@gnu.org>.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.