This works:
rename("box/". $picture , "box/tmp/". $picture);
This does not:
rename("/box/". $picture , "/box/tmp/". $picture);
results in a file/directory not found error.
This may seem menial, however I have a problem with my code and the underlying problem to this may be the root cause of another problem of mine.
Thanks
renameworks with file system paths and is not based on theDOCUMENT_ROOTunless you have a really odd setup then/box(orc:\boxon a windows system) isnt going to exist and even if it did unless you wen out of your way the webserver wouldnt have permission to write to it.What you probably want is something more like this: