L
L
lexaxaxa2015-09-27 13:33:38
linux
lexaxaxa, 2015-09-27 13:33:38

Does the php fwrite function fail? How to provide for this in the code?

Does the php fwrite function fail? How to provide for this in the code? The matter is that there was an incorrect record of fields of the correct data entered by the user. Instead of data from the user - ^@^@^@^@^. throughout the length of the field selected by me. At the same time, other fields with predefined values ​​(the user needs to choose) are written correctly. The fields are all the same length, 70 bytes each (they are completed by the function of adding spaces). 99.9% everything works correctly. I'm going to use subds for malicious subds, but for now I'm working with files directly. I would like some words on the case. (hhvm + nginx based on ubuntu server 14.04)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2015-09-27
@lexaxaxa

try catch and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question