The script dataentry/z3950-01.php is in charge of establishing the connection with the Z39.50 server.<br><br>In that script there is a command $id = yaz_connect($host[$i]); <br><br>that does the z59.50 connection. The yaz_connect commad has the syntax: <span class="methodname"><b><br>
<br>yaz_connect</b></span>
( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$zurl</tt></span>
[, <span class="methodparam"><span class="type"><a href="http://www.php.net/manual/en/language.pseudo-types.php#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$options</tt></span>
] ) (<a href="http://php.net/manual/en/function.yaz-connect.php">http://php.net/manual/en/function.yaz-connect.php</a>)<br><br>that means that some options can be attached to the commad. One of the options is the proxy server.<br>
<br>I thing that if the script dataentry/z3950-01.php es modified in this way:<br><br> if ($fullquery!="" && $expr_isbn!=""){<br> $fullquery="@or ".$expr_isbn ." " .$fullquery;<br>
}else{<br> if ($expr_isbn!="") $fullquery=$expr_isbn;<br> }<b><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> </span></b><b style="color: rgb(255, 0, 0);"> $options=array("proxy"=>"your_proxy");</b><b><span style="color: rgb(255, 0, 0);"> //line added</span></b><br>
for ($reintentar=0;$reintentar<=$intentos;$reintentar++){<br> for ($i = 0; $i < $num_hosts; $i++) {<br> <b style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> </span>$id = yaz_connect($host[$i],$options);</b><b><span style="color: rgb(255, 0, 0);"> // line modified</span></b><br>
$ids[$i] = $id;<br><br>It could work.<br><br>Please let me know the results because the next step will be to add the proxy server as a parameter in the z3950 configuration module<br><br>Regards,<br><br>Guilda<br>
<br><br><div class="gmail_quote">2010/12/7 MEGNIGBETO Eustache (RELEX-COTONOU) <span dir="ltr"><<a href="mailto:Eustache.MEGNIGBETO@ec.europa.eu">Eustache.MEGNIGBETO@ec.europa.eu</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="FR">Hello,</span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="FR"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I'm using ABCD on a local server that requires proxy
identification before connecting to Internet. So I have problem when I try to
use the Z39.50 functions. ABCD has never succeeded in connecting to Z39.50
server where as on other installation without proxy, there is no problem. </span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Does anybody already encounter such a problem? And how has
it be managed?</span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="FR">Thank you.</span></font></p>
<p><b><i><font color="blue" face="Times New Roman" size="2"><span style="font-size: 10pt; color: blue; font-weight: bold; font-style: italic;" lang="FR-BE">-----------------------------------------------------------------------</span></font></i></b><font color="navy"><span style="color: navy;" lang="FR-BE"><br>
</span></font><b><i><font color="blue" size="2"><span style="font-size: 10pt; color: blue; font-weight: bold; font-style: italic;" lang="FR-BE">Eustache MEGNIGBETO</span></font></i></b><font color="navy"><span style="color: navy;" lang="FR-BE"><br>
</span></font><b><i><font color="blue" size="2"><span style="font-size: 10pt; color: blue; font-weight: bold; font-style: italic;" lang="FR-BE">01 BP 910 Cotonou - BENIN</span></font></i></b><font color="navy"><span style="color: navy;" lang="FR-BE"><br>
</span></font><b><i><font color="blue" size="2"><span style="font-size: 10pt; color: blue; font-weight: bold; font-style: italic;" lang="FR-BE">Tél: +229 21 31 26 17 /
Fax: +229 21 31 53 28</span></font></i></b><font color="navy"><span style="color: navy;" lang="FR-BE"><br>
<br>
</span></font><span lang="FR"></span></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="FR"> </span></font></p>
</div>
</div>
<br>_______________________________________________<br>
isis-users mailing list<br>
<a href="mailto:isis-users@iccisis.org">isis-users@iccisis.org</a><br>
<a href="http://lists.iccisis.org/listinfo/isis-users" target="_blank">http://lists.iccisis.org/listinfo/isis-users</a><br>
<br></blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>