$command = 'start /b /wait mysqld.exe -V'; $output = exec($command, $result); .... $command = 'start /b /wait httpd.exe -t -D DUMP_VHOSTS'; ob_start(); passthru($command); $output = ob_get_contents(); ob_end_clean(); .... $command = 'sc query wampapache | find "STATE"'; $output = `$command`;
<tr> <td>Script Batch Dos</td> <td><!--#exec cmd="Batch.bat" --></td> <td><pre><!--#exec cmd="Batch.bat" --></pre></td> </tr> <tr><td>Script CGI</td> <td><!--#exec cgi="Bonjour.pl" --></td> <td><!--#exec cgi="Bonjour.pl" --></td>
@echo off chcp 1252 > nul echo hello ! dir exit
#!c:\perl64\bin\perl.exe print "Content-type: text/html\n\n"; print "<p id='parag1'>Bonjour tout le monde !</p>\n"; print "<p id='parag2'>Bienvenue sur mon site.</p>\n"; exit 0;
# ------------------------------------------------------------------ # # Répertoires utilisant les commandes "Server Side Includes" # # ------------------------------------------------------------------ # <Directory "f:/site-01/Ex_05/"> Options +Includes # AddType text/html .shtml AddOutputFilter INCLUDES .shtml </Directory> # ---------------------------------------- # # Répertoires exécutant du cgi-bin # # ---------------------------------------- # <DirectoryMatch "f:/site-(01/Ex_05/|04/)"> Options +ExecCGI # AddHandler cgi-script .pl </DirectoryMatch>Je traduis :