I have fixed my earlier problem by going back to the beginning, making it work, adding bit by bit and testing as I go. Anyway...
I would like to upload files to MySQL UNIX box and also copy the files to the Windows shared drive on the network. Is there any way to push to both places at the same time? I am using something similar to this UPLOAD.PHP file:
<?php
mysql_connect("SERVERNAME","USERNAME","PASSWORD");
mysql_select_db("DBNAME");
$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
$result=MYSQL_QUERY("INSERT INTO baseline_doc_uploads (description, data,filename,filesize,filetype,doc_level,doc_sub_level,doc_name,doc_num_a,doc_num_b,doc_change_a,doc_change_b,doc_version_a,doc_version_b,doc_revision_a,doc_revision_b,doc_spcr_a,doc_spcr_b,doc_date_a,doc_date_b,doc_opr,doc_priority,doc_status,doc_hard_copy_only,doc_poc_1,doc_poc_2,doc_poc_3,doc_poc_4,doc_additional_comments) ". "VALUES ('$form_description','$data','$form_data_name','$form_data_size','$form_data_type','$doc_level','$doc_sub_level','$doc_name','$doc_num_a','$doc_num_b','$doc_change_a','$doc_change_b','$doc_version_a','$doc_version_b','$doc_revision_a','$doc_revision_b','$doc_spcr_a','$doc_spcr_b','$doc_date_a','$doc_date_b','$doc_opr','$doc_priority','$doc_status','$doc_hard_copy_only','$doc_poc_1','$doc_poc_2','$doc_poc_3','$doc_poc_4','$doc_additional_comments'
)");
$id= mysql_insert_id();
print "<p>File ID: <b>$id</b><br>";
print "<p>File Name: <b>$form_data_name</b><br>";
print "<p>File Size: <b>$form_data_size</b><br>";
print "<p>File Type: <b>$form_data_type</b><p>";
?>
Can this be edited or does something separate have to be created (if possible at all) to push the files to the Windows box?