[Resolvido] Upload de imagen.
ola galera tenho um script e tem o upload de imagen. diz que foi enviado. mas nao vai para a pasta do servidor. oque faço????? a pasta ja esta com CHMOD 777.
vai o codigo da pagina
<?
@include ("../includes/barracimaadm.php");
include ('../includes/config.php');
@include ("../includes/abrebanco.php");
?>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="150" valign="top"><?
include ("../includes/barraesqadm.php");
?>
</td>
<td height="100%" valign="top">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="297" align="center" valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><img src="../imagens/tit_adm_insereauto.gif" width="456" height="27"></td>
</tr>
</table>
<form action="insereauto2.php" method="post" enctype="multipart/form-data">
<table width="456" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="28%" align="right" bgcolor="#FFFFFF">
<?=$fonte02?>
<b>Foto: </b></td>
<td width="72%" bgcolor="#FFFFFF"><input type="file" name="f_foto"></td>
</tr>
<tr align="center">
<td height="35" colspan="2" bgcolor="#FFFFFF">
<input type="submit" name="Submit" value="Enviar">
</td>
</tr>
</table>
</form>
<br>
<?=$fonte02?>
<a href="automoveis.php"><b>voltar</b><br>
<br>
</a>
</td>
</tr>
</table></td>
<td width="152" valign="top" background="../imagens/fundo_barra_dir.gif"><?
include ("../includes/barradiradm.php");
?>
</td>
</tr>
</table><?
include ("../includes/rodapeadm.php")
?>
no arquivo config.php tem isso $caminho = "../imagens/fotos/"; // caminho da pasta onde ficarão as fotos
creio que no PHP ai de cima deveria constar alguma coisa como $caminho neh.
Discussão (7)
Carregando comentários...