note 92742 added to function.is-uploaded-file

From: Date: Thu, 06 Aug 2009 20:16:49 +0000
Subject: note 92742 added to function.is-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-159164@lists.php.net to get a copy of this message
Hello, I am trying to create an upload page for users to upload images. Below is what was created I must say I am not experience in this error and need help. Also if anyone has a better way of writing this so I can understand please do. Thanks in advance!! <?php // Add security here move_uploaded_file($_FILES['Filedata']['tmp_name'], getcwd() . "./uploads/".$_FILES['Filedata']['name']); chmod(getcwd() . "uploads/".$_FILES['Filedata']['name'], 0755); The problem i'm getting is that when i try to upload i can't see an image on the screen or in the file folder indicated. ---- Server IP: 208.69.120.35 Probable Submitter: 98.96.77.198 ---- Manual Page -- http://www.php.net/manual/en/function.is-uploaded-file.php Edit -- https://master.php.net/note/edit/92742 Del: integrated -- https://master.php.net/note/delete/92742/integrated Del: useless -- https://master.php.net/note/delete/92742/useless Del: bad code -- https://master.php.net/note/delete/92742/bad+code Del: spam -- https://master.php.net/note/delete/92742/spam Del: non-english -- https://master.php.net/note/delete/92742/non-english Del: in docs -- https://master.php.net/note/delete/92742/in+docs Del: other reasons-- https://master.php.net/note/delete/92742 Reject -- https://master.php.net/note/reject/92742 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159164) next »