Jump to content

to execute command via webpage


hyuuga

Recommended Posts

if {
file_exists("/bin/bash/heritrix.sh") 
   echo "File exists and ready to execute."
} else {
   echo "Wooops! File is missing.";
}
if {
is_executable("/bin/bash/heritrix.sh")
   echo "And File is executable"
   exec ("/bin/bash/heritrix.sh", &$output); 
} else {
   echo "File is not executable.";
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.