Hi
I would like to do the following:
rename('/home/testfile.txt', '/home/to/a/potentially/non-existent/
directory/testfile.txt');
PHP apparently won't auto-create the directory structure if it doesn't
already exist on the file system. Instead, it throws an error when
the directory doesn't already exist, stating "No such file or
directory".
Does anyone know of a way around this?
Thanks in advance.