Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Oi Pessoal! Novamente...
Seguinte eu fiz um gerador de .txt, e esta funcionando ( usando o apache) mas quando testei na internet não funcionou da o seguinte erro:
Warning: fopen(noticias.txt) [function.fopen]: failed to open stream: Permission denied in /home/evandrow/public_html/noticias.php on line 19
Warning: fwrite(): supplied argument is not a valid stream resource in /home/evandrow/public_html/noticias.php on line 23
Warning: fclose(): supplied argument is not a valid stream resource in /home/evandrow/public_html/noticias.php on line 25
Este é o link: undefined
O código que eu usei é esse:
<style type="text/css">
<!--
body {
background-color: #99CC00;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}</style>
<form id="msg" name="msg" method="post" action="">
<label></label>
<label></label>
<label></label>
<label><span class="style1">
<?php
$abrir_arquivo=fopen("noticias.txt","w");
$msg=@$_POST["msg"];
$escreve=fwrite($abrir_arquivo,$msg);
fclose($abrir_arquivo);
?>
Notícias :</span></label>
<label></label>
<textarea name="msg" id="msg"></textarea>
<input type="submit" name="Submit" value="Atualisar" />
</form>
<label></label>
Porfavor me dão uma força, tenho que entregar esse trabalho até semana que vem....
abraços
E Obrigado!
Carregando comentários...