Re: automated upload with PHP



On Mar 29, 8:29 pm, "Steve Poe" <steve....@xxxxxxxxx> wrote:
sure, you can script on the client using what is called active
scripting.
its nice and familiar, so you would either
1) have your script one once per day and upload any images not already
uploaded from a set of folders
2) configure explorer so you can right click and select upload image,
your php script would be run in the bvackground with argument such as
c:\path\to\php -r "%1"
and it would do the rest.
Why not use FTP if you are scripting this, as it will be nice and
robust and can interact is a predicatable way with your fileserver -
providing it can have an ftp serve running on it, like filezilla
server.

oops I should have added, that if you have a few computers you need to
install this on you could use NSIS (Nullsoft Scriptable Install
System)http://nsis.sourceforge.net/Main_Pagetowrap up everything
including the script that makes the right click functionality between
tiffs and the php script, and distribute that.

Thanks for your help (and the link). I am not familar with
implementing
FTP through PHP. It's mainly PHP with HTML forms. The PHP app runs on
a
Linux box (hopefully this does not matter) and I believe it also has
ftp access. At this point, there will only be one computer that the
PHP application will need to automatically load
the TIF image. The file will be saved in a directory called xrays off
of the C:\
drive.

Steve

Hi Steve -
Would it suit your requirement to hard code the path into the file
upload box? The user still has to click "upload" but will not have to
find the file each time.

Aerik

.



Relevant Pages

  • Re: file upload problem
    ... I am trying to learn about uploading files with php. ... I made a simple form script and and file up load script. ... The form script gets the file name correctly and seems to pass it to the upload script correctly. ... if I echo ini_getI see ...
    (comp.lang.php)
  • Re: file upload problem
    ... I am trying to learn about uploading files with php. ... I made a simple form script and and file up load script. ... The form script gets the file name correctly and seems to pass it to the upload script correctly. ... if I echo ini_getI see ...
    (comp.lang.php)
  • Re: PHP-file upload problem and upload_tmp_dir
    ... I am trying to use some of the scripts in the php manual to upload a file. ... It calls and posts to the file processing script correctly. ... echo ''; ...
    (comp.lang.php)
  • Re: IIS & Frontpage permissions?
    ... you could use FTP to upload the image. ... "username" is username used to logon to this FTP ... Most important thing about this script is that it is stored in secured ...
    (microsoft.public.inetserver.iis.security)
  • Re: automated upload with PHP
    ... have your script one once per day and upload any images not already ... tiffs and the php script, ... // request local file read permission ...
    (comp.lang.php)