i have this script for uplod file:
HTML File:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>FILE Upload Demo page</p>
<form name="form1" method="post" action="upload.php" enctype="multipart/form-data">
<p>File to be uploaded.
<input type="file" name="file">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p> </p>
</body>
</html>
upload.php File:
<?php
//Fioe Upload script
$path = "/path/to/upload/directory"; //Set this to the full path from ther servers home directory to where the file should be.
//Do not leave a trailing slash.
if($file){
print("File name: $file_name<P>/n");
print("File size: $file_size bytes<P>/n");
if(copy($file, "$path/$file"){
print("Your File was uploaded successfully");
}else{
print("ERROR, your file was not successfully uploaded");
}
unlink($file);
}
?>
But I can not set Path on my Linux Hosting Server. anyone help me that what default common path on linux host?