...

View Full Version : rename: no such file or directory



docock
06-20-2010, 07:31 PM
So why doesn't this rename work?


rename('../mdwgold/scripts/origineel.jpg','../mdwpictures/gpfmottenPic102236.jpg');

All I'm getting is an error saying: no such file or directory

I've also tried the line without quotes like this:

rename(../mdwgold/scripts/origineel.jpg,../mdwpictures/gpfmottenPic102236.jpg);
but it gives me the same error.

The directories do exist and are chmodded to 777.
So what's wrong with my code, or what's going on here?

mlseim
06-21-2010, 01:05 AM
What you're doing looks correct (single or double quotes should be OK ... also try double quotes) ...

rename("../mdwgold/scripts/origineel.jpg","../mdwpictures/gpfmottenPic102236.jpg");

I'm guessing ../ is wrong.
You're telling to go back one directory, is that correct?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum