Jump to content

wrs223

New Members
  • Posts

    3
  • Joined

  • Last visited

wrs223's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for that?! I have protected the upload folder with .htaccess and can only accept photo files.. We are just beginners seeking some much needed help so if you can advise how we can rename files during uploading I would appreciate it.
  2. Hi All, Would really appreciate some help.. Our website visitors upload photos to our site and I would the files to be renamed to avoid files being over written. Upload.PHP script is as follows :- <?php if($_SERVER['REQUEST_METHOD'] == "POST"){ if(move_uploaded_file($_FILES['file']['tmp_name'], "uploads/".$_FILES['file']['name'])){ echo($_POST['index']); } exit; } ?> Please can you advise what I need to change to ensure all files are renamed during / after the upload? We would like the file names to be a number 1 to 99 for example. Thanks in advance! Will
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.