note 24014 added to features.file-upload
| From: | MaKi at NOSPAM dot com | Date: | Sun, 04 Aug 2002 01:19:57 +0000 |
| Subject: | note 24014 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34249@lists.php.net to get a copy of this message | ||
Y have this problem , help please
<form action="subir.php" method="post" name="miformu"
enctype="multipart/form-data">
<input name="archivo" type="file">
<input type="submit" name="Submit" value="Enviar">
</form>
-----> send variables to subir .php
this:
<?php
$extension = explode(".",$archivo_name);
$num = count($extension)-1;
if($extension[$num] == "zip")
{
if($archivo_size < 100000)
{
if(!copy($archivo, "AZ-cfgs/".$archivo_name))
{
echo "Error al copiar el archivo";
}
else
{
echo "Archivo subido con exito";
}
}
else
{
echo "El archivo supera los 100kb";
}
}
else
{
echo "El formato de archivo no es valido, solo .zip";
}
?>
This url for test : http://www.wm-site.com/csconfig/mandar.html
witch this error:
Warning: open_basedir restriction in effect. File is in wrong directory in
/home/sites/site20/web/csconfig/subir.php on line 8
Error al copiar el archivo
Dont work , why? help my :)
--
http://www.php.net/manual/en/features.file-upload.php
http://master.php.net/manage/user-notes.php?action=edit+24014
http://master.php.net/manage/user-notes.php?action=delete+24014
http://master.php.net/manage/user-notes.php?action=reject+24014