The below script is running on a webserver. The idea is that a 'blob' type holds a file name and this file has to be moved from the PC where the page is viewed accross the internet to a folder on the web server.
However right now the webserver is looking for the original file in a folder ON THE WEBSERVER instead of on the machine where the page is viewed?? I tried FTP - ing but for that I'd need an FTP server running on the machine where the file to be transferred is.. agree?? and it's not always possible... so how do I get the selected file over onto the webserver???
Please!!!!!!! ta - fari
Code: Select all
if (mysql_field_type( $result , $i ) == "blob" )
{
$source_file_name = $new_stuffї$i];
$temp = substr ( strrchr($new_stuffї$i] , ""e;),1);
$dest_file_name = "../images/" . $temp;
$new_stuffї$i] = $dest_file_name;
if (!(copy($source_file_name , $dest_file_name)))
{
echo"<TR><TD></TD><TD>";
arial_2("Could not copy file!");
echo"</TD></TR>";
}
else
{
echo"<TR><TD></TD><TD>";
arial_2("File copied successfully!");
echo"</TD></TR>";
}
}