I am setting up a webserver on a ARM9-based embedded Linux using THTTP. The server should be capable of handling PHP and SQLite3. First I set up a testfile, calling
[php]<?php
phpinfo();
?>[/php]
it went well, i had a good looking output file (which i unfortunately cant post since im not allowed to post links…)
then i tried a first call of a sqlite database, where the server crashed after i called the corresponding site.php. First intention: SQLite not correctly linked. But on my debugging way, i tried to print out the SQLite Version using another testfile:
[php]<?php
print_r(SQLite3::version());
?>
[/php]
which failed. I tried to define a little array and print_r that out
[php]<?php
$a=array(‘a’=>'alpha,‘b’=>‘beta’,‘c’=>array(‘x’,‘y’,‘z’));
print_r($a);
?>[/php]
result the same: It made the webserver shut down. But on the other hand i can call for example [php]<?php
echo ‘Hello’;
?>[/php] without any problems. Anyone an idea how to trace down the problem?