G
Gegzy
Guest
Hi.
Here's the info: Using my BW site, I want to be able to allow users to upload screenshots to a given directory (say "images/shots"). I also want to be able to use the imaging functions to automatically create a thumbnail for the site as well.
However, the uploading side works...but the this line fails for some reason:
{
global $shotsfile;
global $shotsfile_name;
.
.
if( !copy( $shotfiles, "images/shots/$shotsfile_name" )
echo "Error during copy";
.
.
}
The copy fails all the time - yet when I run the same web site on my own PHP server here at home, it all works a treat.
Any ideas on what I need to do?
Thanks
-- Gegzy
Here's the info: Using my BW site, I want to be able to allow users to upload screenshots to a given directory (say "images/shots"). I also want to be able to use the imaging functions to automatically create a thumbnail for the site as well.
However, the uploading side works...but the this line fails for some reason:
{
global $shotsfile;
global $shotsfile_name;
.
.
if( !copy( $shotfiles, "images/shots/$shotsfile_name" )
echo "Error during copy";
.
.
}
The copy fails all the time - yet when I run the same web site on my own PHP server here at home, it all works a treat.
Any ideas on what I need to do?
Thanks
-- Gegzy