I can't get it. 🙁
Here is how everything is set up.
/home/scripts contains main.php, getbrowser.php, browscap.ini, and php.ini. main.php has the following code:
<?php
$info = `/home/scripts/getbrowser.php`;
foreach ($info as $item => $val) {
echo "<b>$item</b> $val <br />\n";
}
?>
getbrowser.php has the following code:
<?php
print_r( get_browser() );
?>
Yet I get this error: Warning: Invalid argument supplied for foreach() in /home/scripts/main.php on line 37
What is going wrong?