shell_exec

 

]Podporované v PHP 4, PHP 5 

Syntax


string shell_exec ( string $cmd )

Popis


Príkaz jazyka PHP
Execute command via shell and return the complete output as a string.

This function is identical to the backtick operator.
Parameter cmd - The command that will be executed.

Návratové hodnoty


The output from the executed command.

Note: This function is disabled in safe mode.

Príklad


<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>


Pozri aj


exec, escapeshellcmd

]



vytlačiť článok  hľadať súvisiace články 

Chat ku článku

Vyhľadávanie na stránke
Reklama
Náhodný obrázok
náhodný obrázok
Kontakty

Martin Kasman, M Software
Smreková 3095/23
Email: martin@kasman.sk

Telefón: 0908 270 294