![]() |
class errors
:
//SCRIPT NAME=evalcls.incINVOKED BY THIS SCRIPT :
//SCRIPT NAME=hello.phpwhen i run this script i get this error; :
Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION in C:\wamp\www\evalcls.inc on line 4I am using the WAMP 5 tool as my main tool and i am writing the scripts with the crimson editor. any help would be greately appreciated. |
:
<?php:
<?php[edit:] confirmed: Quote:
|
From the manual:
Quote:
Quote:
|
thanks a bunch dawei and jimbo, should of remebered that from my c++ days;
|
wait sorry hold the applause:
new problem: now the script is complaining about the next line in the script with the same error message: :
public $ret = 0;and its giving this error message; :
Parse error: parse error, unexpected T_IF, expecting T_FUNCTION in C:\wamp\www\evalcls.inc on line 5anymore replys would greately be appreciated |
I believe the only change you need to make to your code is as follows:
:
class evalcls {:
class evalcls { |
Is that code located in your class or where exactly? 'Cause it wouldn't make sense to declare it as public if it's not in a class, which is what might be producing the error.
|
sorry i should it made clear. that code is part of the class.
thanks. |
i tried that and i am still getting the same error grimpirate.
|
if ($this->ret == 0)....
|
| All times are GMT -5. The time now is 1:11 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC