I need help. ( PHP )

Status
This thread has been locked.

Grace.

Supreme
Feedback score
19
Posts
796
Reactions
367
Resources
4
Gonna keep this simple. I don't want to post my code here in the public so DM me if you're experienced with php. I'll kinda explain my issue here, but DM me if you can help please. ( if you know php well it'll legit take 1 minute ) , so I have a html form, where a certain users can upload a file. Then I upload it to the web server using php , it all works, but ( and yes I've tried the results from google ) , I need to rename the uploaded file before it gets uploaded to the web server, and I'm having an issue with that. If you could help me with how to rename the file, please DM me. Thanks :)

Can't pay for this sadly, but cmon it shouldn't take long at all.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Glitch

Website Developer
Supreme
Feedback score
32
Posts
426
Reactions
114
Resources
0
Code:
$newfilename = namehere . $file_ext; //you need to get the file extension
        if (file_exists("pathhere" . $newfilename))
        {
            move_uploaded_file($_FILES["file"]["tmp_name"], "pathhere" . $newfilename);
            echo "File uploaded successfully.";
        }
 
Status
This thread has been locked.
Top