Как выполнить такой PHP скрипт используя браузер IE на autoit?
Вот если можно как-то выполнить как JS скрипт
например так:
Код:
if (isset($_GET['file']) and preg_match("/^Catalog[a-zA-Z0-9_]{0,50}\.xml$/",$_GET['file']) and file_exists($_GET['file'])) {
$content = file_get_contents($_GET['file']);
header('Content-Type: '.$ctype.'; charset=utf-8');
header("Content-Disposition: attachment; filename=".$_GET['file']);
ob_end_clean();
ob_start();
echo $content;
ob_end_flush();
exit();
} else {
echo "Файл не найден.";
exit();
}
Вот если можно как-то выполнить как JS скрипт
например так:
Код:
Local $hFile = FileOpen(@ScriptDir & '\php.php', 0)
Local $php = FileRead($hFile)
FileClose ($hFile)
$oIE.document.parentWindow.execPHP ($php)