romy: Problem mit fseek und fwrite

Beitrag lesen

Hi,

Geholfen hat mir das jetzt aber auch nicht.......

wer lesen kann ist klar im Vorteil ;)
habs mal rauskopiert:

<zitat>
3. if you're using fseek() to write data to a file, remember to open the file in "r+" mode, example:

$fp=fopen($filename,"r+");

Don't open the file in mode "a" (for append), because it puts the file pointer at the end of the file and doesn't let you fseek earlier positions in the file (it didn't for me!). Also, don't open the file in mode "w" -- although this puts you at the beginning of the file -- because it wipes out all data in the file.

Hope this helps.
</zitat>
Quelle: <www.php.net>

ciao
romy

--
DIE ROMY AUS L. AN DER P. SAGT DANKE UND AUF WIEDERSEHEN
sh:( fo:| ch:? rl:( br:& va:| zu:) ss:| ls:[
Die Erklärung zum Selfcode findest du hier: http://emmanuel.dammerer.at/selfcode.html
Einen Decoder für den Selfcode findest du hier: http://peter.in-berlin.de/projekte/selfcode