I am having problems uploading to my windows 2000 server. I have the script right for inserting into mySQL database. It will insert the file into my db, but I need to actually upload the file to the server. tempfile->hard disk.
<?php
$file_name = str_replace(" ", "", $file_name);
$sql = "INSERT INTO photo (album, file_name, thumb_name, description, active) VALUES ('$album', '$file_name', '$thumb_name', '$description', '$active')";
mysql_query($sql);
exec("copy $file ../photo/$file_name");
exec("copy $thumb ../photo/thumbs/$thumb_name");
?>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">The photo was uploaded
successfully!<br>
<br>
<?php
echo "<img src=../photo/$file_name><br>\n";
?>
I put the script above, but I do not know the command for executing a copy command on windows. I know this works on unix, but do i need the full path for windows? or do I have it scripted wrong?
Thanks in advance.