View Full Version : Can't Find File to Copy

04-03-2003, 03:40 AM
I am new to the copy() command and need a hand.

I have a line of code like this:

<? copy('../movies/movieTemplate.php','../movies/$filename'); ?>

I get an error back like:

Unable to open '../movies/movieTemplate.php' for reading: No such file or directory

I thought that perhpas php (or atleast the copy command) does not recognise the ../ to move it back a directory, if so what do I use :confused:

04-03-2003, 04:16 AM
Use the full server path or the full url.

04-03-2003, 08:03 AM
also note that variables within single quotes are not converted to their value


would need to be similar to


04-03-2003, 08:57 AM
yeah, thanks to both of you, sorted now :thumbsup: