...

View Full Version : Can't Find File to Copy



Candrias77
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:

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

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

,'../movies/$filename');

would need to be similar to

,'var/site/public/movies/'.$filename);

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum