<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dale,<br>
<br>
Please can you run 3 commands for me and send me the output of them:<br>
<br>
<tt>php --version</tt><tt><br>
</tt><tt>md5sum /opt/zendto/lib/NSSUtils.php</tt><tt><br>
</tt><tt>
php -l /opt/zendto/lib/NSSUtils.php</tt><br>
<br>
If you are running PHP earlier than 5.3, you will almost certainly
get a syntax error of some sort on that line, as prior to 5.3 you
couldn't skip the value between the "?" and the ":".<br>
<br>
If that turns out to be the cause, replace that line with these 2:<br>
<br>
<tt>$the_ip = filter_var($the_ip, FILTER_VALIDATE_IP);</tt><tt><br>
</tt><tt>$the_ip = $the_ip ? $the_ip : '0.0.0.0';</tt><br>
<br>
That should achieve the same thing, if my brain is attached
correctly this morning.<br>
<br>
Please do let me know how you get on.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 31/01/2017 16:49, Dale E. Qualls
wrote:<br>
</div>
<blockquote
cite="mid:E81C383E98FE7E44B1BD819DC8E687CA4472CC0C@PM-EXC.ad.pattishall.com"
type="cite">
<!-- Template generated by Exclaimer Mail Disclaimers on 10:49:02 Tuesday, 31 January 2017 -->
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css">P.49eea63f-ec09-49ac-baa8-3230da97c898 {
        MARGIN: 0cm 0cm 0pt
}
LI.49eea63f-ec09-49ac-baa8-3230da97c898 {
        MARGIN: 0cm 0cm 0pt
}
DIV.49eea63f-ec09-49ac-baa8-3230da97c898 {
        MARGIN: 0cm 0cm 0pt
}
TABLE.49eea63f-ec09-49ac-baa8-3230da97c898Table {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style><!-- Template generated by Exclaimer Mail Disclaimers on 10:49:01 Tuesday, 31 January 2017 -->
<style type="text/css">P.fc2dbf36-2013-4bc6-a992-ede0aadc3703 {
        MARGIN: 0cm 0cm 0pt
}
LI.fc2dbf36-2013-4bc6-a992-ede0aadc3703 {
        MARGIN: 0cm 0cm 0pt
}
DIV.fc2dbf36-2013-4bc6-a992-ede0aadc3703 {
        MARGIN: 0cm 0cm 0pt
}
TABLE.fc2dbf36-2013-4bc6-a992-ede0aadc3703Table {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I upgraded today (yum update zendto) and
everything appeared to update normally.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Trying to open the site in the browser, I
received this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>Parse error</b>: syntax error,
unexpected ';' in <b>/opt/zendto/lib/NSSUtils.php</b> on line
<b>193<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal">The only semicolon on that line is the one
at the end:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">/*
Fetch the REMOTE_ADDR of the http connection, even through
proxies */<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">function
getClientIP()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">{<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
// Get the forwarded IP if it exists<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
if ( isset($_SERVER['HTTP_CLIENT_IP']) &&
array_key_exists('HTTP_CLIENT_IP', $_SERVER) ) {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
$the_ip = $_SERVER['HTTP_CLIENT_IP'];<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
} elseif ( isset($_SERVER['HTTP_X_FORWARDED_FOR'])
&& array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER
)) {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
$the_ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
$the_ip = trim($the_ips[0]);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
} else {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
$the_ip = $_SERVER['REMOTE_ADDR'];<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
// Now validate it<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
$the_ip = filter_var($the_ip, FILTER_VALIDATE_IP) ?:
'0.0.0.0';
</span><span style="font-size:9.0pt;font-family:Wingdings">ß</span><span
style="font-size:9.0pt;font-family:"Courier New"">-----------THIS
IS LINE 193<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:9.0pt;font-family:"Courier New"">
return $the_ip;<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier New"">}<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal">Any thoughts or suggestions?<o:p></o:p></p>
</div>
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703"> </p>
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703">
<table class="fc2dbf36-2013-4bc6-a992-ede0aadc3703Table"
style="BORDER-COLLAPSE: collapse; WIDTH: 100%" cols="2"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="WIDTH: 198px" valign="bottom">
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703"> </p>
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703"> </p>
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703"><img
moz-do-not-send="true"
src="http://www.pattishall.com/imgs/pattishalllogo.jpg"
width="170"></p>
</td>
<td style="WIDTH: 977px">
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703"> </p>
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703"> </p>
<p><font face="arial" size="2">Dale E. Qualls<br>
Director of Information Technology<br>
Pattishall, McAuliffe, Newbury, Hilliard &
Geraldson LLP<br>
200 South Wacker Drive, Suite 2900<br>
Chicago, IL 60606-5896<br>
Direct: (312) 554-7979 Main: (312) 554-8000 Fax:
(312) 554-8015<br>
<a moz-do-not-send="true"
href="mailto:deq@pattishall.com" title="Click to
send email to Dale E. Qualls" target="">deq@pattishall.com</a>
<a moz-do-not-send="true"
href="http://www.pattishall.com">www.pattishall.com</a>
<a moz-do-not-send="true"
href="http://www.twitter.com/Pattishall">
Follow us on Twitter</a></font> </p>
</td>
</tr>
</tbody>
</table>
</p>
<p class="fc2dbf36-2013-4bc6-a992-ede0aadc3703"> </p>
<p class="49eea63f-ec09-49ac-baa8-3230da97c898">
<table border="0" cellpadding="0" cellspacing="5" width="650">
<tbody>
<tr>
<td width="25"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/25pixelimage.gif"></td>
<td width="25"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/25pixelimage.gif"></td>
<td align="center" width="75"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/blf-badge.jpg" width="65"></td>
<td align="center" width="25"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/25pixelimage.gif"></td>
<td align="center" width="300"><font face="Franklin Gothic
Medium" size="2">Pattishall Ranks
<font color="gold">GOLD</font> in the United
States and in Illinois in the prestigious<br>
WTR 1000</font></td>
<td width="25"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/25pixelimage.gif"></td>
<td align="center" width="75"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/2014chambers-65.jpg" width="65"></td>
<td width="25"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/25pixelimage.gif"></td>
<td align="center" width="75"><img moz-do-not-send="true"
src="http://images.pattishall.com/images/2013gototop500.jpg" width="65"></td>
</tr>
</tbody>
</table>
</p>
<hr id="HR1">
<font face="Arial" size="1"><font face="Franklin Gothic Medium">The
preceding message and any attachments may contain confidential
information protected by the attorney-client or other
privilege. You may not forward this message or any attachments
without the permission of the sender. If you believe that it
has been sent to you in error, please reply to the sender that
you received the message in error and then delete it. Nothing
in this email message, including the typed name of the sender
and/or this signature block, is intended to constitute an
electronic signature unless a specific statement to the
contrary is included in the message</font>.</font>
<hr id="HR1">
<p> </p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng MBCS CITP CEng
'It's very unlikely indeed he will ever recover consciousness, and
if he does he won't be the Julian you knew.'
- A hospital consultant I proved very wrong in 2007 :-)
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
</pre>
</body>
</html>