[PHP] exec() help

2001-11-21 Thread KPortsmout

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=1ref=001category1=trtipscat

egory2=acategory3=.$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??

TIA
Ade


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] exec() help

2001-11-21 Thread Stefan Rusterholz

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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=1ref=001category1=trtipsc
at

 egory2=acategory3=.$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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] exec() help

2001-11-21 Thread Brian Clark

Hi KPortsmout,

@ 8:37:22 AM on 11/21/01, [EMAIL PROTECTED] wrote:

 exec(/usr/local/bin/wget
 http://www.getresponse.com/cgi-bin/add.cgi?misc=1ref=001category1=trtipscat
 egory2=acategory3=.$Grab[2][$i].)or die (Error);

It may not fix it, but try wrapping the URL in \

 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 is the error message it produces?

--
 -Brian Clark | PGP is spoken here: 0xE4D0C7C8
  Please, DO NOT carbon copy me on list replies.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]