Can any one tell me the proper syntax of imap_search? I've tried just about everything.
(The imap stream opens fine and I can get the first headers, etc from it).
Here is the code:
$arrayThisNewsgroup = array();
$arrayThisNewsgroup = imap_search($nntp,"BODY Week");
if($arrayThisNewsgroup == false)
echo "The search failed";
$err = imap_errors();
print_r($err);
var_dump($arrayThisNewsGroup);
Here is the output:
NULL
The NULL is output by var_dump();
If anyone can give me a piece of code to search for a string AND print the results, it would be much appreciated. I have tried one I found on this newsgroup (by Jim PeƱaloza) and that didn't work either. I'm using PHP 4.