Hola tengo estos scripts donde quiero subir al servidor un archivo, y ya no se que hacer, alguien me podria ayudar a resolver mi problema:
Primer script:
<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></p>
<form name="form1" method="post" action="upload.php" enctype="multipart/form-data">
<p>Archivo a Enviar.
<input type="file" name="file">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p> </p>
</body>
</html>
Segundo script:
<?php
//Fioe Upload script
$path = "/home/midominio/public_html/exis/"; //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)
{
echo $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);
}
?>
El error que me manda es el siguiente:
Parse error: parse error in /home/midominio/public_html/exis/upload.php on line 14
ya cambie el chmod a 777, del server, ya no se ni que hacer:
supuestamente este script si trabaja.
Gracias por la ayuda que me pùedan proporcionar.