Hi I am a newbie can anybody help me please?
I am gettin the following error
Parse error: parse error, expecting `']'' in c:\program files\easyphp1-8\www\webshop\routines\tSys.php(483) : eval()'d code on line 4
Thanks in advance for your help
Katie
you better show us: beginning of file: webshop\routines\tSys.php as there is something on line 4
<?php class tSys {
var $templateContents; var $templateDir; var $theVariables; var $loopCounters; var $baseVar; var $baseVarLimited; var $looperMatch; var $nextForLoop; var $startTime; var $endTime; var $requiredVariables; function tSys($templateDir,$templateFile,&$requiredVars,$compileTemplate=0) { $this->nextForLoop = 0; $this->baseVar="@\$this->theVariables"; $this->baseVarLimited="@\$this->_RUNTIME_stringLimit(@\$this->theVariables"; $this->looperMatch = "<?php print \$this->loopCounters[\$variableBits[1]][\$variableBits[2]]; ?>"; $this->templateDir = $templateDir; $this->startTime = microtime();
Escaping the $ in php variable names is causing the complaint (\$ instead of just $), it doesn't see the brackets as array indexes. This is on the line with the print statement.
troybtj wrote:Escaping the $ in php variable names is causing the complaint (\$ instead of just $)
Escaping the $ in php variable names is causing the complaint (\$ instead of just $)
No, I'm sure this is fine (he wants a literal $this in the string that I assume is eval'd later).
The error isn't even towards the beginning of the file, the error (as stated by the error message he posted) is on line #483. Can we please see this line?