Hi, trying to create a simple .pdf upload form <form action="" enctype="multipart/form-data" method="post"> File name:<br /> <input type="text" name="name" value="" /><br /> PDF file:<br /> <input type="file" name="pdffile" value="" /><br /> <p><input type="submit" name="submit" value="submit" /></p> </form> PHP: but print_r($_FILES) seems to be empty, $_POST['name'] is good; if(isset($_POST['submit'])) { echo $_POST['name']."<br>"; print_r($_FILES)."<br>"; etc PHP: i have chmod 777 the dir where .pdf should be uploaded i am using phpversion 4.4.2 any tips? ps: how can i check if file uploads is turned on? As this server config have phpinfo() disabled??? even ini_get('file_uploads') PHP: gives nothing. Should be 0 or 1, right? ps2: i tried to get access to conf folder to add <Directory "/some/dir"> php_admin_flag file_uploads on php_value upload_max_filesize 4M </Directory> PHP: Unfortunatly, i haven't got the permission
While you're at it , upgrade to PHP5 already. It's been over 5 years that PHP5 has been the current version of PHP.
It's possible that your <form> is inside another <form>, causing it not to work. This is a common error when working with $_FILES.
Alternatively there is $HTTP_POST_FILES['name'] (or 'tmp_name' and so forth) for the older PHP versions.