Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Load crashdetect plugin and after server crashes, run time errors, it'll print to server log information related to it.
By the way, on the part you save the businesses, you don't check if the file handle is valid before using it in fwrite/fclose functions.
Posts: 420
Threads: 130
Joined: Sep 2012
Reputation:
0
But can i use Biz.ini or maybe i need rename it Biz.cfg
I set all files CHMOD 777
Posts: 1,241
Threads: 67
Joined: Dec 2013
Are you sure you did create the file which saves those bizs ?, Because it makes the server gets crashed.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
It sometimes cannot open a file successfully so you can read from/write to it. By checking if the file handle is valid, you prevent the server crash but still, it cannot save as the file failed to be opened.
Posts: 420
Threads: 130
Joined: Sep 2012
Reputation:
0
It might be if it had CHMOD 0644 so it wasnt writeable?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Yes, permissions can cause this. Make sure that scriptfiles folder is both readable and writeable.