PDA

View Full Version : why won't this work on my site


andrew1234
10-25-2002, 03:27 PM
hi can anyone tell me why this won't work on my site

thanks

andrew

bcarl314
10-29-2002, 01:11 PM
Just a guess, but try changing all the forward slashes "/" to back slashes "\" if your on a Windows box.

Also, check your php.ini file to make sure they are backslashes.

Chris Hunter
10-30-2002, 12:36 PM
Why do you post one question twice andy?

Gbright
10-30-2002, 02:17 PM
I'm using a very similar piece of code for uploads on my site, the only difference is

yours...
copy ("$file", "C:/Apache/htdocs/$file_name") or die("Could not copy file");
mine...
copy("$filename", "./files/$filename_name") or die("Could not copy file");

I've got a relative path to the folder where I want the files to be saved...the normal directory path is C:\Apache\htdocs\files

maybe changing it will help.

Chris Hunter
10-30-2002, 02:39 PM
get you document path with the variable $DOCUMENT_ROOT. and replace the C:\apache... with that, than it may work...