0
3
I get this error when using the rename function Warning: rename(../data/feeds/feed2.txt,../data/feeds/feed3.txt) [function.rename]: No error in C:\wamp\www\cms\admin\pages\feeds.php on line 32 "../data/feeds/feed2.txt" is the correct path, I h...
2010-07-10
4
1
how do I clone and rename a file with php. I need to take. thumb_123.jpg Copy it. Rename it to thumb_456.jpg I can do the renaming just fine with rename(). Its the copying that I don't get. ...
2011-03-09
-1
3
i have this script but i want to rename the file: <?php $fieldname = $_REQUEST['fieldname']; $uploaddir = 'uploads/'; $uploadfile = $uploaddir . basename($_FILES[$fieldname]['name']); ...
2011-01-04
0
4
I download a file with cURL using option CURLOPT_FILE and then try to rename the downloaded file, for example, from "1.txt" to "2.txt". It fails to rename the file. PHP throws an error: "Warning: rename(E:\.../test/1.txt,E:\.../test/2.txt) ...
2010-07-31
1
1
I am currently building a gallery web application using php. I am currently developping on windows but the deployment server is running unix. Each gallery will have its own folder, from which the name of the gallery is derived (ie if the folder ...
2010-12-12
1
3
I am working on some PHP to rename photos in a directory to something else based on data from a CSV file. The CSV has three columns: Number, FirstName and LastName. The original names of the photos are "FirstName LastName.jpg". The new names sho...
2011-02-25
5
4
If I write: rename('php109.tmp','test.jpg'); then it's fine and working. but if I change it into: rename('php109.tmp','中文.jpg'); it'll report "No such file or directory...". But if the multi-byte characters can be written into datab...
2009-05-17
10
4
I'm trying to move a folder by renaming it. Both the test1 and test2 folders already exist. rename( "test1", "test2/xxx1/xxx2" ); The error I get is: rename(...): No such file or directory I assume this is because the directory "xxx1" does...
2010-04-16
5
2
Figured PHP's rename would be my best bet. I didn't see many examples on how to use relative URLs in it though, so I kind of compromised. Either way, this give me permission denied: I want to do this: $file = "../data.csv"; rename("$file", "../...
2010-07-26
7
3
I am using plupload to do an upload of multiple files to my server. Using this, there is a parameter 'url : 'upload.php'. upload.php catches the files as they are received, and might recombine them if they get chunked. Once the full file is recei...
2011-05-06