afer changing them both to $userfile I get this:
Success! /tmp/phpIgXWXW uploaded to /home/zayyscec/public_html/Truck//tmp/phpIgXWXW
I get $path from the form page. It has password, path, and userfile variables.
I checked that dir...I use WS-FTP so I dont see public_html, etc, /www...but I dont see the dir or image in the dir listed above.
I assume all the files I have been uploading to my server are under public_html folder, but yeah.
I dont know where this dir is coming from in the success message:
/tmp/phpIgXWXW .... I think it is the image name I echoed, but the real files name was 63.jpg
Still no dice using this code:
<?
include('dbinfo.inc.php');
$query = mysql_query("SELECT * FROM admin WHERE password='$password'") or die(mysql_error());
$rows = mysql_num_rows($query);
if($rows=1){
include('top.php');
include('left.php');?>
<td width="81%"> <?
$where = "/home/zayyscec/public_html/$path";
if($userfile != "")
{
$dir = $where . "/" . $userfile;
copy($file_name, $dir);
echo "Success! $userfile uploaded to $dir ";
}
?>
</td> <?
include('bottom.php');
} else {
include('top.php');
include('left.php');?> <td height="110"> <?
print "Password is invalid. ";
?> </td> <?
include('bottom.php');
}
?>