oddly the following code does work for a mac but all images and file types return invalid from a Pc... I don't get it...
all I am doing here is checking for image type and renaming the image based on the userid
any help is profoundly appreciated.
<?php
//Check File Type
if ($_FILES['photo']['type']=="image/gif" or $_FILES['photo']['type']=="image/jpeg" or $_FILES['photo']['type']=="image/jpg"){
//If good... Upload the image
$photopick=$uid.".jpg";
copy ($_FILES['photo']['tmp_name'], "/etc/httpd/pathtodirectory".$photopick) or die ("Could not copy");
?>