Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
flock() [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
flock()


 
Sky
19-12-2001, 22:14 
 
Das PHP-Manual sagt mir:

Note: Because flock() requires a file pointer, you may have to use a special lock file to protect access to a file that you intend to truncate by opening it in write mode (with a "w" or "w+" argument to fopen()).

Schön und gut, aber was ist ein "special lock file"? Wie soll ich da vorgehen, wenn ich eine Datei mit 'w' öffnen möchte?

 
GWC
19-12-2001, 22:38 
 
Hi,
das hier ist etwas verständlicher:

http://www.php3-forum.de/befehle/flock.htm

Cya

 
Sky
19-12-2001, 22:53 
 
Danke, aber es ist doch egal ob das nun auf Deutsch oder Englisch ist - das Problem bleibt bestehen.

 
JoelH
20-12-2001, 09:54 
 
@Sky
les doch lieber die deutsche Version des Manual, denn dort ist dieser Absatz nicht enthalten :D :D Und was man nicht weiss das macht einen nicht heiss , oder so :D :D :D

http://www.php.net/manual/de/function.flock.php

so wie ich das lese funzt das eh nicht richtig.


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:00 Uhr.