note 85407 added to function.system

From: Date: Thu, 28 Aug 2008 18:59:08 +0000
Subject: note 85407 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-143951@lists.php.net to get a copy of this message
Can someone tell me why system() isn't receiving the variable correctly? <html> <body> <form id="blacklisted" name="blform" method="POST" action="test.php"> <input type="text" name="ip" size="20" > <input type="submit" name="submit" value="Check"> </form> <?php $ip = $_POST['ip']; echo 'Checking '.$ip.'<br>'; echo '<pre>'; system('./rbl.pl',$ip); echo '</pre>'; ?> </body> </html> echoing the $ip shows up just fine but when it goes to use that variable in the system() command it acts as if its not there. Thanks for any help. ---- Server IP: 64.71.164.2 Probable Submitter: 167.142.210.80 ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- https://master.php.net/note/edit/85407 Del: integrated -- https://master.php.net/note/delete/85407/integrated Del: useless -- https://master.php.net/note/delete/85407/useless Del: bad code -- https://master.php.net/note/delete/85407/bad+code Del: spam -- https://master.php.net/note/delete/85407/spam Del: non-english -- https://master.php.net/note/delete/85407/non-english Del: in docs -- https://master.php.net/note/delete/85407/in+docs Del: other reasons-- https://master.php.net/note/delete/85407 Reject -- https://master.php.net/note/reject/85407 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143951) next »