Closed Thread Icon

Topic awaiting preservation: php & send email upon ftp upload (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27246" title="Pages that link to Topic awaiting preservation: php &amp;amp; send email upon ftp upload (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: php &amp; send email upon ftp upload <span class="small">(Page 1 of 1)</span>\

 
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 01-03-2006 20:42

I have a BUNCH of people that send us files via FTP, so they all have their own folders. Does anyone know of a good way with PHP or something else that can monitor certian folders and when something is uploaded send an email to me a two other people when something is uploaded with the username and filesize?


Thanks in advance!

Later,

C:\

Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 01-03-2006 22:28

hmm im not sure this can be done with php a monitoring software on the server might do this better

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 01-03-2006 22:48

yeah....must be why I haven't gotten it to work. LOL

Do you know of a Linux software that might be good? I'll do a search in the meantime.

Thanks!

<edit>

oh, and I did see in the man pages for ftpaccess(5) that you can set it for Anonymous log in but I need it to send the email with username and stuff

</edit>

Later,

C:\



(Edited by CPrompt on 01-03-2006 22:49)

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 01-04-2006 00:49

hm... apart from scanning the folder every so often (every couple of minutes probably is enough), comparing that to an earlier scan and mailing the differences... nothing comes to mind.

Now, that'd be rather trivial to do via php and a cron job.

so long,

->Tyberius Prime

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 01-04-2006 12:36

Yeh was going to say that, cron job & php will do that easy.. Makes life a bit harder without cron jobs (windows server) tho

Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 01-04-2006 13:42

couldn't you have a sort of login script that does the job when someone actualy logges on via ftp???

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 01-04-2006 23:44
quote:

Blacknight said:

couldn't you have a sort of login script that does the job when someone actualy logges on via ftp???




I could but they want to get the filename and size as well. I have something in the works. thanks for all the replies

Later,

C:\

« BackwardsOnwards »

Show Forum Drop Down Menu