deu esse erro ao instalar o Easy php algum pode me ajudar
Amigo desativa o servidor IIS do windows ou configura outra porta para ele (Ex: porta 8080) que rola
Abraços!!!
21/01/2009, 17:18
deu esse erro ao instalar o Easy php algum pode me ajudar
21/01/2009, 16:09
...
$id = $_SESSION['username'];
...
$result= mysql_query("select (nome, dia, mes, ano, turno, entra, sai) from persons where nome='$id'");
22/02/2008, 08:26
function addcontents() { $categoria = $_POST['categoria']; $titulo = $_POST['titulo']; $txt = $_POST['txt']; $buscas = $_POST['buscas']; $autor = $_POST['autor']; if ($_FILES['imagep']['name']!=0) { if(substr($_FILES['imagep']['name'],-4)==".jpg") { $imgp="_images/".date("dmYHim").$_FILES['imagep']['name']; if (!move_uploaded_file($_FILES['imagep']['tmp_name'],$imgp)) { header ("location: app.php?op=contents&mens=Não foi enviado: 1!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem Principal não é JPEG!!!"); exit; } } if ($_FILES['image1']['name']!=0) { if(substr($_FILES['image1']['name'],-4)==".jpg") { $img1="_images/".date("dmYHim").$_FILES['image1']['name']; if (!move_uploaded_file($_FILES['image1']['tmp_name'],$img1)) { header ("location: app.php?op=contents&mens=Não foi enviado: 2!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem 1 não é JPEG!!!"); exit; } } if ($_FILES['image2']['name']!=0) { if(substr($_FILES['image2']['name'],-4)==".jpg") { $img2="_images/".date("dmYHim").$_FILES['image2']['name']; if (!move_uploaded_file($_FILES['image2']['tmp_name'],$img2)) { header ("location: app.php?op=contents&mens=Não foi enviado: 3!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem 2 não é JPEG!!!"); exit; } } if ($_FILES['image3']['name']!=0) { if(substr($_FILES['image3']['name'],-4)==".jpg") { $imgp="_images/".date("dmYHim").$_FILES['image3']['name']; if (!move_uploaded_file($_FILES['image3']['tmp_name'],$img3)) { header ("location: app.php?op=contents&mens=Não foi enviado: 4!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem Principal não é JPEG!!!"); exit; } } $ql="INSERT INTO `content` (`id`, `categoria`, `titulo`, `imagep`, `txt`, `buscas`, `image1`, `image2`, `image3`, `autor`) VALUES (NULL, '$categori', '$titulo', '$imgp', '$txt', '$buscas', '$img1', '$img2', '$img3', '$autor')"; $query=mysql_query($ql); if ($query) { header ("location: app.php?op=contents&mens=Conteúdo adicionado com sucesso!!!"); exit; } else { header ("location: app.php?op=contents&mens=Erro!!!<br>"mysql_error()); exit; } }
function addcontents() { $categoria = $_POST['categoria']; $titulo = $_POST['titulo']; $txt = $_POST['txt']; $buscas = $_POST['buscas']; $autor = $_POST['autor']; if ($_FILES['imagep']['name']) { if(substr($_FILES['imagep']['name'],-4)==".jpg") { $imgp="_images/".date("dmYHim")."_".$_FILES['imagep']['name']; if (!move_uploaded_file($_FILES['imagep']['tmp_name'],"../".$imgp)) { header ("location: app.php?op=contents&mens=Não foi enviado: 1!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem Principal não é JPEG!!!"); exit; } } if ($_FILES['image1']['name']) { if(substr($_FILES['image1']['name'],-4)==".jpg") { $img1="_images/".date("dmYHim")."_".$_FILES['image1']['name']; if (!move_uploaded_file($_FILES['image1']['tmp_name'],"../".$img1)) { header ("location: app.php?op=contents&mens=Não foi enviado: 2!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem 1 não é JPEG!!!"); exit; } } if ($_FILES['image2']['name']) { if(substr($_FILES['image2']['name'],-4)==".jpg") { $img2="_images/".date("dmYHim")."_".$_FILES['image2']['name']; if (!move_uploaded_file($_FILES['image2']['tmp_name'],"../".$img2)) { header ("location: app.php?op=contents&mens=Não foi enviado: 3!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem 2 não é JPEG!!!"); exit; } } if ($_FILES['image3']['name']) { if(substr($_FILES['image3']['name'],-4)==".jpg") { $img3="_images/".date("dmYHim")."_".$_FILES['image3']['name']; if (!move_uploaded_file($_FILES['image3']['tmp_name'],"../".$img3)) { header ("location: app.php?op=contents&mens=Não foi enviado: 4!!!"); exit; } } else { header ("location: app.php?op=contents&mens=A imagem Principal não é JPEG!!!"); exit; } } $ql="INSERT INTO `content` (`id`, `categoria`, `titulo`, `imagep`, `txt`, `buscas`, `image1`, `image2`, `image3`, `autor`) VALUES (NULL, '$categori', '$titulo', '$imgp', '$txt', '$buscas', '$img1', '$img2', '$img3', '$autor')"; $query=mysql_query($ql); if ($query) { header ("location: app.php?op=contents&mens=Conteúdo adicionado com sucesso!!!"); exit; } else { header ("location: app.php?op=contents&mens=Erro!!!"); exit; } }
11/02/2008, 23:12
$cont = explode("," , $row['categorias']);
foreach($cont as $ind) {
$ex=mysql_query("SELECT nome FROM categorias WHERE id = '$ind'");
$exibe=mysql_fetch_array($ex);
echo $exibe['nome'].", ";
}
11/02/2008, 22:54
pessoal.. preciso de uma form.. de envio direto do site para meu e-mail
uma form de e-mail com validação sem bd
pq n entendo nada de banco de dados!
me ajudem ! rodei o forum e n achei oq eu keria!
:\
<?php
/* Destinatário */
$to = "mary@example.com" . ", " ; // Observe a vírgula
$to .= "kelly@example.com";
/* assunto */
$subject = "Birthday Reminders for August";
/* mensagem */
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
/* Atenção se você pretende inserir numa variável uma mensagem html mais
complexa do que essa sem precisar escapar os carateres
necessários pode ser feito o uso da sintaxe heredoc, consulte tipos-string-sintaxe-heredoc */
/* Para enviar email HTML, você precisa definir o header Content-type. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* headers adicionais */
$headers .= "To: Mary <mary@example.com>, Kelly <kelly@example.com>\r\n";
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n";
$headers .= "Cc: birthdayarchive@example.com\r\n";
$headers .= "Bcc: birthdaycheck@example.com\r\n";
/* Enviar o email */
mail($to, $subject, $message, $headers);
?>
Community Forum Software by IP.Board
Licensed to: Webmasters Online