Re: [WebDNA] Need some PHP help

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103515
interpreted = N
texte = Count me in on the "No PHP skill but would also really like this" front. I've tried to use Uploadify a couple of times and would dearly love a DNA solution. Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig ======================================== On 1 Sep 2009, at 23:21, Govinda wrote: > Pat, not sure if you got this covered. I was tempted to do this for > you several times.. just can't carve out the time. Crazy busy > here. Just writing to acknowledge your post. > I have no idea your own PHP skills.. if mediocre-decent (like mine) > and you attempt it, and get stuck, then ask a smaller question about > that, and maybe we can hack it together. > -Govinda > >> Here's a question for PHP folks: >> >> I'm trying to incorporate jQuery Uploadify (http:// >> www.uploadify.com/) into a WebDNA site. Uploadify uses a PHP >> script on a page that handles the file uploads. >> >> This PHP script will be called one or more times by a .swf file >> that sends it individual files. The flash part can do multiple >> files. I need to perform the functions in this PHP script using >> WebDNA. Is anyone able to translate this to equivalent WebDNA? >> >> >> ------------------------------------- >> > if (!empty($_FILES)) { >> $tempFile = $_FILES['Filedata']['tmp_name']; >> $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/'; >> $targetFile = str_replace('//','/',$targetPath) . >> $_FILES['Filedata']['name']; >>  >> // $fileTypes = str_replace('*.','',$_REQUEST['fileext']); >> // $fileTypes = str_replace(';','|',$fileTypes); >> // $typesArray = split('\|',$fileTypes); >> // $fileParts = pathinfo($_FILES['Filedata']['name']); >>  >> // if (in_array($fileParts['extension'],$typesArray)) { >> // Uncomment the following line if you want to make the directory >> if it doesn't exist >> // mkdir(str_replace('//','/',$targetPath), 0755, true); >>  >> move_uploaded_file($tempFile,$targetFile); >> echo "1"; >> // } else { >> // echo 'Invalid file type.'; >> // } >> } >> ?> > > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Need some PHP help ("Dan Strong" 2009)
  2. Re: [WebDNA] Need some PHP help (Clint Davis 2009)
  3. Re: [WebDNA] Need some PHP help ("Dan Strong" 2009)
  4. Re: [WebDNA] Need some PHP help (Clint Davis 2009)
  5. Re: [WebDNA] Need some PHP help (Patrick McCormick 2009)
  6. Re: [WebDNA] Need some PHP help (Steve Craig 2009)
  7. Re: [WebDNA] Need some PHP help (Govinda 2009)
  8. [WebDNA] Need some PHP help (Patrick McCormick 2009)
Count me in on the "No PHP skill but would also really like this" front. I've tried to use Uploadify a couple of times and would dearly love a DNA solution. Cheers ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 ======================================== http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig ======================================== On 1 Sep 2009, at 23:21, Govinda wrote: > Pat, not sure if you got this covered. I was tempted to do this for > you several times.. just can't carve out the time. Crazy busy > here. Just writing to acknowledge your post. > I have no idea your own PHP skills.. if mediocre-decent (like mine) > and you attempt it, and get stuck, then ask a smaller question about > that, and maybe we can hack it together. > -Govinda > >> Here's a question for PHP folks: >> >> I'm trying to incorporate jQuery Uploadify (http:// >> www.uploadify.com/) into a WebDNA site. Uploadify uses a PHP >> script on a page that handles the file uploads. >> >> This PHP script will be called one or more times by a .swf file >> that sends it individual files. The flash part can do multiple >> files. I need to perform the functions in this PHP script using >> WebDNA. Is anyone able to translate this to equivalent WebDNA? >> >> >> ------------------------------------- >> > if (!empty($_FILES)) { >> $tempFile = $_FILES['Filedata']['tmp_name']; >> $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/'; >> $targetFile = str_replace('//','/',$targetPath) . >> $_FILES['Filedata']['name']; >>  >> // $fileTypes = str_replace('*.','',$_REQUEST['fileext']); >> // $fileTypes = str_replace(';','|',$fileTypes); >> // $typesArray = split('\|',$fileTypes); >> // $fileParts = pathinfo($_FILES['Filedata']['name']); >>  >> // if (in_array($fileParts['extension'],$typesArray)) { >> // Uncomment the following line if you want to make the directory >> if it doesn't exist >> // mkdir(str_replace('//','/',$targetPath), 0755, true); >>  >> move_uploaded_file($tempFile,$targetFile); >> echo "1"; >> // } else { >> // echo 'Invalid file type.'; >> // } >> } >> ?> > > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 Steve Craig

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Cyberstudio and WebDNA (1997) CMS - Formatting Content (2004) Sku numbers (1997) 2.1b3 --> way slow (1997) Cleaning up all the shopping carts (2000) [HIDEIF] inside [FOUNDITEM] (1997) RE: Error -108 (1997) Frames and WebCat (1997) required fields (1998) PIXO with cometsite ... and/or other plugins (1998) Firesite cache vs webcat cache (1997) RE: Re:Has this happened to you? (1997) Browser based content... (2004) How do you hide [math]stuff[/math] (1997) Server IP address-thanks (2004) can you reassign loop index? (1998) [Cart] ... (1997) I have observed and I am gone. (1998) hideif glitch (2003) How can I Add several Items into the cart at once? (1997)