Show 12 more comments. Use the a mode. It stands for append. Valentin Mercier Valentin Mercier 5, 3 3 gold badges 24 24 silver badges 50 50 bronze badges. Oh, yes there will be, in this case use a SQL database, it has a built-in engine to avoid race-conditions.
But that's a whole new question. Show 3 more comments. Thielicious Thielicious 3, 2 2 gold badges 23 23 silver badges 35 35 bronze badges. Many thanks for this Logger class! I was not expecting to find that when I found this page Mihir Bhatt Mihir Bhatt 2, 2 2 gold badges 34 34 silver badges 40 40 bronze badges. Rwakos Rwakos 71 3 3 bronze badges. There is no reason to do! PHP Worm There is no such file open mode as "wr" in your code: fopen "logs.
Here is what you need, as has been already pointed out above: fopen "logs. Maxim Masiutin Maxim Masiutin 2, 3 3 gold badges 44 44 silver badges 65 65 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Stewart, Suzy. After Hours Programming. Accessed on January 13, Accessed 13 January, Read and Write to File. Leave a Comment Cancel reply You must be logged in to post a comment.
This site uses Akismet to reduce spam. Learn how your comment data is processed. Create a personalised content profile. Measure ad performance. Select basic ads. Create a personalised ads profile. Select personalised ads. Apply market research to generate audience insights.
Measure content performance. Develop and improve products. List of Partners vendors. Share Flipboard Email. By Angela Bradley Angela Bradley. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked 0. See more linked questions. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.
Accept all cookies Customize settings.
0コメント