Ok the shell exec was relative easy, I have a problem with placing in variables so that the shell commands can be dynamic or user driven.
such as the following:
Code:
<?php
$output = shell_exec('C:/FWTools2.2.1/bin/ogr2ogr -f "$filetype" c:/mygisdata/$postgislayer.$file_ext PG:"host=localhost user=postgres dbname=mdssdata password=database" "$postgislayer" ');
echo "<pre>$output</pre>";
?> the Problem:
the echo doesn't seem to "echo" the the variables in the $output string.
I think it might be the way I use quotes around the variables, the quotes are required on the shell command.
Hope someone can help.
Thanks
Sarel
