Ini processing into javascript


<html>
<body>
<?php
$ini_array=parse_ini_file('lxtest/ini/system.ini.php');
echo '<pre>';
var_dump($ini_array);
echo '</pre>';
echo '<hr />';
extract ($ini_array);
echo 'Database: '.$database.'<br />';
?>
<?=$database?>
</body>
<script>
alert("<?=$password?>");
</script>
</html>

This is the beginning of an adventure - to use PHP to inject strings into javascript for AJAX applications. Multi-lingual, fast and efficient. More posts later. Will probably require Apache adjustments to run .js files through PHP, but that’s okay!!!

:D