Re: returning results of cURL POST

From: Date: Sat, 08 Feb 2003 22:59:58 +0000
Subject: Re: returning results of cURL POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134904@lists.php.net to get a copy of this message
> From: Lowell Allen <la@lowellallen.com> > [snip] > > // check cURL results > if ((trim($curl_results) != 1) || (trim($curl_results) != 0)) { > // maybe nothing returned, bail out > echo("<p>Can't confirm results of attempt to add to > database!</p>\n"); > exit; > } I knew I'd find a stupid mistake as soon as I posted the question. I was using a condition that could never be true, instead, I needed: if ((trim($curl_results) != 1) && (trim($curl_results) != 0)) Sorry. -- Lowell Allen

« previous php.general (#134904) next »