<?php $spravy=FILE("odkazovka.txt"); $f=fopen("odkazovka.txt","w"); $x=."$nick".":".$novasprava."kde robim chybu?? vsak ked mam premenne pomenovane novasprava a nick tak by sa mali takto zapisat do suboru nie??
\n"; fputs($f,$x); for ($i=0;$i<15;$i++) fputs($f,$spravy[$i]); fclose($f); ?>
problem s php
Pre pridávanie komentárov sa musíte prihlásiť.
'w' Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
bud to mas uplne zle, alebo si objavil obrovsky bug v PHP
index.php?nick=nick&sprava=sprava
? Neprehodnotis pouzitie$_GET
?alebo
podla toho akou metodou odosielas udaje ;-)