# Need help setting up a simple php uploader script

**URL:** <https://forum.kirupa.com/t/need-help-setting-up-a-simple-php-uploader-script/285256>\
**Category:** Uncategorized\
**Created:** [March 29, 2009, 4:22pm UTC](https://forum.kirupa.com/t/need-help-setting-up-a-simple-php-uploader-script/285256 "2009-03-29T16:22:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![defjon66](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@defjon66](https://forum.kirupa.com/u/defjon66)\
**Post date:** [March 29, 2009, 4:22pm UTC](https://forum.kirupa.com/t/need-help-setting-up-a-simple-php-uploader-script/285256/1 "2009-03-29T16:22:47Z")

</div>

I am a beginner at this so pls someone help me figure out something. it may be nothing but here goes.

I am making a flash file uploader for my site and it needs a php script to actually upload the file to server. the code is as follows:

\<body\>\<?php  
if ($\_FILES[‘Filedata’][‘name’]) {  
move\_uploaded\_file($\_FILES[‘Filedata’][‘tmp\_name’], ‘upload\_directory/’ . basename($\_FILES[‘Filedata’][‘name’]));  
}  
?\>

will this work or do i need to change some vaues in the code such as the folder which the file goes into etc?
