Jump to content

How to rename files? I just can't get it to work...


lordvader

Recommended Posts

How hard is it to rename a file? rename(oldname, newname), right?

Apparently, damn hard!

 

I keep getting Warning: rename(test1.txt,test2.txt) [function.rename]: No such file or directory in d:\pract\test.php

 

But they're there! This is just a win2k practice box running the latest xampp. What little, tiny thing am I missing here?

Not file perms, this is admin with full privies, and it's on fat32 so no chmod.

 

Gah! Anyone? TIA

No, that's the only code.

I put it on test.php at the root folder of my practice xampp install, and there's only one line: rename("test1.txt", "test2.txt");

And of course I put the test1.txt file in there too.

So this is about as simple as can be, and yet... it won't work!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.