I am building a neural network in PHP, and I am encountering some funny problems. I know a language like Java or C++ is better suited for this kind of application, but I have my reasons for using PHP.
Anyway, I have setup a network that needs to run for several thousand iterations. I am executing the script from the command line, and hoping to let it run, but I get the following behavior:
I enter:
zMac:~ mdz$ /usr/local/bin/php /Library/WebServer/Documents/nn/v2/bin/Network.class.php
It works, and I can track the progress in a log output file. Then a few second later, I get:
Segmentation fault
zMac:~ mdz$
And a popup informs me that php has quit unexpectedly.
Does anybody know anything about a segmentation fault, what might be causing it, and how I can fix it? I don't know a lot about php beyond the language grammar, and am not familiar with this error.
Thanks!