OK...
Thanks..

It works if i try it direktly..
but in PHP it dosent:

*Warning*: file_get_contents(http://....@mail.de OR
EMAIL_HEADER_TO:t...@mail.de <email_header_to%3at...@mail.de>)) [
function.file-get-contents<http://172.20.1.33/new/function.file-get-contents>]:
failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in *
/var/www/new/msearchres.php* on line *32*


Code:

$url='
http://172.20.1.33:8983/solr/select?wt=phps&q='.urlencode($q).'&sort='.urlencode($sort).'%20'.$direction.'&fq=(EMAIL_HEADER_FROM:'.$wo.'
OR EMAIL_HEADER_TO:'.$wo.')';

if(isset($_GET['s'])) $url.="&start=".$_GET['s'];
$serializedResult = file_get_contents($url);
$results = unserialize($serializedResult);

Reply via email to