We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

mswallace on 04/10/08


Tagged

php file upload Flex


Versions (?)


PHP used with MXML Upload File Script


Published in: PHP 


URL: http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=5241&productId=2

got this as part of an example on the adobe cookbook site

  1. <?php
  2.  
  3. $tempFile = $_FILES['Filedata']['tmp_name'];
  4. $fileName = $_FILES['Filedata']['name'];
  5. $fileSize = $_FILES['Filedata']['size'];
  6.  
  7. move_uploaded_file($tempFile, "./" . $fileName);
  8.  
  9. ?>

Report this snippet 

You need to login to post a comment.