Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Uploader

This is a discussion on Uploader within the HELP free utilities forums, part of the Flash CS3 eng category; Is it possible to add some code in the PHP file to send an email to me when a file ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > HELP free utilities

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 27-08-07, 12:44
Member
 
Join Date: Jul 2007
Posts: 33
Rep Power: 0
jimbo is on a distinguished road
Smile Uploader

Is it possible to add some code in the PHP file to send an email to me when a file is uploaded, to alert me? A client will upload a file for me to put on their website, and I do not know when it is uploaded, if the client does not tell me when he uploads the file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 27-08-07, 13:07
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,488
Rep Power: 6
Flep is on a distinguished road
yes, sure it's possible.
I' m crap on PHP stuff but i think you can use the script of email form:
http://www.flepstudio.org/english/ut...070824116.html

just call the script and pass it the name of the file as subject.
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 27-08-07, 15:26
Member
 
Join Date: Jul 2007
Posts: 33
Rep Power: 0
jimbo is on a distinguished road
heh, yes, I got it to work with this:

<?php

//path to storage
$storage = 'uploadedFiles';

//path name of file for storage
$uploadfile = "$storage/" . basename( $_FILES['Filedata']['name'] );

//if the file is moved successfully
if ( move_uploaded_file( $_FILES['Filedata']['tmp_name'] , $uploadfile ) ) {
echo( '1 ' . $_FILES['Filedata']['name']);

//file failed to move
}else{
echo( '0');
}
mailAdmin($uploadfile);
function mailAdmin($xmlString) {
$mailTo = "me@mywebsite.com";
$mailFrom = "From: <me@mywebsite.com>";
$mailSubject = "New File Upload";
$mailBody = "A new file has been uploaded to your upload bin";
mail($mailTo, $mailSubject, $mailBody, $mailFrom);
}
print "&result=okay";
exit;
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 27-08-07, 15:28
Member
 
Join Date: Jul 2007
Posts: 33
Rep Power: 0
jimbo is on a distinguished road
oops, in previous php code, function mailAdmin($xmlString) should be: function mailAdmin($uploadfile)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 27-08-07, 16:41
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,488
Rep Power: 6
Flep is on a distinguished road
good one !

:)
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Flash Uploader Flep Utilità di FlepStudio 19 20-11-08 09:41
Flash CS3 Uploader - free utility Flep FlepStudio utilities 9 12-11-08 19:43
Uploader Angel Flash CS3 eng 5 06-02-08 19:00
Uploader jimbo HELP free utilities 5 02-11-07 20:56


All times are GMT. The time now is 18:13.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406