Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
Guest George



Guest George

tentei de todas as formas, pedi ajuda pra muita gente e não consegui...aparecem os seguintes erros:

Warning: fopen(lol.txt): failed to open stream: Permission denied in /home/riopreto/public_html/livro/hah.php on line 11

Warning: fwrite(): supplied argument is not a valid stream resource in /home/riopreto/public_html/livro/hah.php on line 12

meu script está assim:


$arquivo = "lol.txt";

$texto = "bah";

$abre = fopen($arquivo, "a+");

fwrite($abre, $texto);


já tentei fazer com if, segundo alguns exemplos que encontrei mas está dando o mesmo erro... :(

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

você não atribuiu a permessão necessária ao arquivo "lol.txt" para poder escrever nele....Dê um chmod 666 nele e o problema terá sido resolvido (acho hehehe)


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...