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...
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) ...
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 ...
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...
If I write:
then it's fine and working.
but if I change it into:
"No such file or directory...".
But if the multi-byte characters can be written into datab...
I'm trying to move a folder by renaming it. Both the test1 and test2 folders already exist.
The error I get is: rename(...): No such file or directory
I assume this is because the directory "xxx1" does...
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";
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...