note 85408 added to function.system

From: Date: Thu, 28 Aug 2008 19:10:52 +0000
Subject: note 85408 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-143952@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/85408 Del: integrated -- https://master.php.net/note/delete/85408/integrated Del: useless -- https://master.php.net/note/delete/85408/useless Del: bad code -- https://master.php.net/note/delete/85408/bad+code Del: spam -- https://master.php.net/note/delete/85408/spam Del: non-english -- https://master.php.net/note/delete/85408/non-english Del: in docs -- https://master.php.net/note/delete/85408/in+docs Del: other reasons-- https://master.php.net/note/delete/85408 Reject -- https://master.php.net/note/reject/85408 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143952) next »