Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: executing Linux commands


Message #1 by "Allan Hedegaard Hansen" <allan_hedegaard@h...> on Thu, 7 Sep 2000 13:29:47 +0100
Take a look at the exec(), passthru() and system() commands. Each takes a
command string as an argument. They differ in terms of what they do with the
command's output, and how they handle return values.

just watch what values you pass in to these commands - they're the easiest
way to open up a huge security hole in your application.

-----Original Message-----
From: Allan Hedegaard Hansen [mailto:allan_hedegaard@h...]
Sent: 07 September 2000 13:30
To: professional php
Subject: [pro_php] executing Linux commands


Is it possible to execute a Linux command from a PHP4 script.


  Return to Index