Re: exec() help

From: Date: Wed, 21 Nov 2001 14:50:53 +0000
Subject: Re: exec() help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75389@lists.php.net to get a copy of this message
----- Original Message ----- From: <KPortsmout@aol.com> To: <php-general@lists.php.net> Sent: Wednesday, November 21, 2001 2:37 PM Subject: [PHP] exec() help > Hi, > > I am running the following function in my PHP script: > > exec("/usr/local/bin/wget > http://www.getresponse.com/cgi-bin/add.cgi?misc=1&ref=001&category1=trtips&c at > > egory2=a&category3=".$Grab[2][$i]."")or die ("Error"); > > It is run inside an if loop and $Grab[2][$i] contains an e-mail address. > > However it always returns an error and I cannot figure out why, any ideas?? What error? What does it tell you? Why don't you use fopen or fsockopen which are implemented in PHP instead of doing probably dangerous exec()? best regards Stefan Rusterholz > TIA > Ade > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#75389) next »