I have a strange setup at the moment (busy with a migration)
I have a 4th Dimension application which calls php scripts (which is our soon to be, only application. Dropping 4D)
This script thats called from 4D needs to open a html file in the browser.
Is this possible?
Iv'e tried something along the lines of
header('Location: ./DischargeLetter.php?id='.urlencode($id));
This passes the html document (report) that I want to open along with the patient id.
calling it in the browser works (obviously hey), but how can I get php to open the browser or a tab and head to that page?
From what I understand you have a command line script in php and you are trying to open a browser on the server?
If you are using the php like a command scripting language you can use http://php.net/manual/en/function.shell-exec.php to call other commands so you can call something like
shell_exec('C:\Program Files (x86)\Google\Chrome\Application\chrome.exe $url');