I have got an Problem this is only a test script i write to see what is wrong.
FILE 1:
<?php
class hallo
{
function raus()
{
echo"hi how are you";
}
}
?>
++------------------------------------------++
++------------------------------------------++
FILE 2:
<?php
include ("hallo.php"
class test
{
hallo::raus();
}
?>
++-------------------------------------------++
++-------------------------------------------++
if i try it with my browser this is the error text:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in C:\ApacheGroup\Apache\hp\php\test1.php on line 6
do somebody now what i have done wrong or where the mistake can be ?
thanks for help !
FILE 1:
<?php
class hallo
{
function raus()
{
echo"hi how are you";
}
}
?>
++------------------------------------------++
++------------------------------------------++
FILE 2:
<?php
include ("hallo.php"
class test
{
hallo::raus();
}
?>
++-------------------------------------------++
++-------------------------------------------++
if i try it with my browser this is the error text:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in C:\ApacheGroup\Apache\hp\php\test1.php on line 6
do somebody now what i have done wrong or where the mistake can be ?
thanks for help !