0 LIKES LikeUnLike
$filename = $_FILES["file"]["name"]; $new_filename = "_what shud i put here if want to save the new file into the same folder of my upload.php file_". $filename; $status = copy($filename, $new_filename) or die("Could not copy file contents");note: assume i have this uploading code below:<form enctype="multipart/form-data" action="upload.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <label for="file">Filename:</label> <input type="file" name="file" id="file" > <br > <input type="submit" name="submit" value="Submit" > </form>please help!...
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 3 answers.