PDA

View Full Version : rename()



Shibby-Shabs
30-09-2010, 05:09 AM
I'm using the rename function and I keep getting this error:

Warning: rename(10.png,giggle2_10.png) [function.rename]: No error in C:\xampp\htdocs\happyhabbos\uploader\upload.php on line 23

Line 23:

rename("$fileform", "$uploadname");
here are the strings:

$fileform = $_FILES["file"]["name"];
$uploadname = $nameform . '_' . $fileform;

Agnostic Bear
30-09-2010, 10:39 AM
Literally less than 10s in Google.
http://stackoverflow.com/questions/2440500/error-using-rename-function-in-php

Want to hide these adverts? Register an account for free!