School of Computing. Dublin City University.
Online coding site: Ancient Brain
coders JavaScript worlds
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_so,pcntl_exec
// do these functions exist: if ( function_exists ('exec') ) echo " exec "; if ( function_exists ('passthru') ) echo " passthru "; if ( function_exists ('shell_exec') ) echo " shell_exec "; if ( function_exists ('system') ) echo " system "; // show value of the setting "disable_functions": $x = ini_get("disable_functions"); echo " $x ";
system ( "ls -l (dir)" );
include "header.php";
Whatever is outside PHP is just displayed. <?php print "Name of script = $argv[0] \n"; print "First command-line arg = $argv[1] \n"; print "All command-line args: \n"; print_r($argv); print "\n"; ?> Whatever is outside PHP is just displayed.
php file.php