Jump to content
php.lv forumi

fclose(), fwrite() problēmas


daGrevis

Recommended Posts

Labvakar,

Tik tikko tā nopietni sāku apgūt PHP, bet tikko arī saskāros ar problēmu! :(

 

Mācījos kā atvērt, izveidot un ierakstīt kaut ko failā, bet saskāros ar šādu brīdinājumu...

Warning: fwrite(): supplied argument is not a valid stream resource in /home/ad_bulat/dagrevis1/test/to-write-on-file.php on line 6

 

...kā arī izvadījās manis paša veidotais kļūdas paziņojums...

Can't write to the file!

 

Fails tika izveidots, bet ir palicis tukšs - nekas tur nav ierakstīts.

P.S. CHMOD 777.

 

PHP: http://paste.php.lv/7369443b9ffd0acab87316952f5cc3bb?lang=php

Link to comment
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.

Guest
Reply to this topic...

×   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.

Loading...
×
×
  • Create New...