<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font face="Courier New">Aaaargh, stupid me!! (plus, I'm really, really short-sighted ;-)&nbsp;)</font><BR><font face="Courier New"></font>&nbsp;<BR><font face="Courier New">The last variable doesn't need a semi-colon for it to work and I copied the last one ...&nbsp;</font><BR>&nbsp;<BR><font face="Courier New">Thanks!</font><BR><font face="Courier New">Markus</font>&nbsp;<BR>&nbsp;<BR><font face="Courier New"><br id="FontBreak"></font><br>&nbsp;<BR><div><hr id="stopSpelling">From: a.hardie@lancaster.ac.uk<br>To: cwb@sslmit.unibo.it<br>Date: Thu, 30 Jan 2014 04:05:38 +0000<br>Subject: Re: [CWB] [CQPweb]: optional configuration variables not working<br><br>



<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass span.ecxEmailStyle18 {
font-family:"Verdana","sans-serif";
color:#1F497D;
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Verdana","sans-serif"; font-size: 10pt;'>You need semi-colons at the end of each assignment.</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Verdana","sans-serif"; font-size: 10pt;'>&nbsp;</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Verdana","sans-serif"; font-size: 10pt;'>best</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Verdana","sans-serif"; font-size: 10pt;'>&nbsp;</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Verdana","sans-serif"; font-size: 10pt;'>Andrew.</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Verdana","sans-serif"; font-size: 10pt;'>&nbsp;</span></p>
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentColor currentColor; padding: 3pt 0cm 0cm;">
<p class="ecxMsoNormal"><b><span lang="EN-US" style='font-family: "Tahoma","sans-serif"; font-size: 10pt;'>From:</span></b><span lang="EN-US" style='font-family: "Tahoma","sans-serif"; font-size: 10pt;'> cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it]
<b>On Behalf Of </b>Markus Killer<br>
<b>Sent:</b> 29 January 2014 22:27<br>
<b>To:</b> cwb@sslmit.unibo.it<br>
<b>Subject:</b> [CWB] [CQPweb]: optional configuration variables not working</span></p>
</div>
</div>
<p class="ecxMsoNormal">&nbsp;</p>
<div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>Hi Andrew,</span></p>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>I've been trying out some of the optional configuration variables (CQPweb 3.1.1, @rev518)</span></p>
</div>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>$path_to_cwb,&nbsp;$path_to_perl and $homepage_logo_left seem to work as expected.</span></p>
</div>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>But when I set the following variables in lib/config.inc.php, I get a PHP Parse error:</span></p>
</div>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>//$homepage_welcome_message = 'WELCOME to
<a href="mailto:CQPweb@langui.ch">CQPweb@langui.ch</a>'</span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>//$searchpage_corpus_name_suffix = 'powered by
<a href="mailto:CQPweb@langui.ch">CQPweb@langui.ch</a>'</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>//$cqpweb_root_url = 'http://at.langui.ch/CQPweb-beta'</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>//$cqpweb_email_from_address = 'CQPweb@langui.ch'</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>//$allow_account_self_registration = false</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>//$account_create_contact = "&lt;a href=\"<a href="mailto:CQPweb@langui.ch\">mailto:CQPweb@langui.ch\</a>"&gt;<a href="mailto:CQPweb@langui.ch%3c/a">CQPweb@langui.ch&lt;/a</a>&gt;"</span></p>
</div>
</div>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>I've tested them individually, commenting out all but one at a time, each of them causes the browser to display an empty page. As soon as all of them are commented out, the main page is displayed
 correctly.</span></p>
</div>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal">&nbsp;</p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>[/var/log/apache2/error.log]</span></p>
</div>
<div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>[Wed Jan 29 23:02:37 2014] [error] [client 127.0.0.1] PHP Parse error: &nbsp;syntax error, unexpected T_VARIABLE in /opt/cl/cwb-dev/cqpweb/lib/config.inc.php on line 44, referer:
<a href="http://localhost/CQPweb-dev/adm/index.php?thisF=manageProcesses&amp;uT=y" target="_blank">http://localhost/CQPweb-dev/adm/index.php?thisF=manageProcesses&amp;uT=y</a></span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>&nbsp;</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif"; font-size: 11.5pt;'>Best wishes,</span><span style='font-family: "Calibri","sans-serif"; font-size: 11.5pt;'><br>
</span><span style='font-family: "Courier New","serif"; font-size: 11.5pt;'>Markus</span><span style='font-family: "Calibri","sans-serif"; font-size: 11.5pt;'><br>
&nbsp;<br>
</span><span style='font-family: "Courier New","serif"; font-size: 11.5pt;'>project webpage:&nbsp;<a href="http://langui.ch/" target="_blank"><span style="color: rgb(0, 104, 207);">http://langui.ch</span></a>&nbsp;/'læŋgwɪdʒ/</span><span style='font-family: "Courier New","serif";'></span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Courier New","serif";'>&nbsp;</span></p>
</div>
</div>
</div>
</div>
</div>


<br>_______________________________________________
CWB mailing list
CWB@sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb</div>                                               </div></body>
</html>