Jump to content

Doug Rudd

  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Doug Rudd

    Injecting Pascal into PHP?

    PHP has commands to execute a native console program. Including: exec() - Execute an external program system() - Execute an external program and display the output passthru() - Execute an external program and display raw output escapeshellcmd() - Escape shell metacharacters pcntl_exec() - Executes specified program in current process space Make a console application that does what you want, or outputs HTML. In Delphi you can now make it for Windows or Linux. You can then use it anywhere on a PHP page: <?php echo exec("myconsoleprog.exe myparameters"); ?>