Re: securing a script that exec()s

From: Date: Fri, 30 Mar 2012 15:18:48 +0000
Subject: Re: securing a script that exec()s
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-317377@lists.php.net to get a copy of this message
On Mar 30, 2012, at 9:25 AM, rene7705 wrote: > On Fri, Mar 30, 2012 at 3:16 PM, Peter Bauer <php@archivum.info> wrote: > >> On Fri, Mar 30, 2012 at 11:56:41AM +0200, rene7705 wrote: >>> ... >>> But unfortunately, $_SERVER['REMOTE_ADDR'] is my external IP, and >>> $_SERVER['SERVER_ADDR'] is my internal IP. >>> >>> How would I best fix this? >> >> Simply log on your box via ssh (if its a unix system) and run your script >> from console or with textmode browser lynx. >> >> But the best solution would be to secure the exec call. >> >> How would I best secure the exec call? What would the form input look like? Mike Mackintosh PHP, the drug of choice - www.highonphp.com

« previous php.general (#317377) next »