Regarding Namespace
Posted: Fri Sep 26, 2008 1:20 am
Hello,
I am new to PHP development and want to explore the features of PHP..
I have installed : php-5.2.6-win32-installer.msi setup along with
: apache_2.2.8-win32-x86-no_ssl.msi
In application when i add namespace as mention in following code
<?php
nampespace MyNamespace ;
class Test
{
public function hello()
{
echo 'Hello';
}
}
?>
it gives the following Error :
Parse error: syntax error, unexpected T_STRING in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DemoApps\Namespaces.php on line 2...
please help me to sortout this problem..
Is like that my PHP version not supports namespaces or I need to add something more..
Thanks in advance..
I am new to PHP development and want to explore the features of PHP..
I have installed : php-5.2.6-win32-installer.msi setup along with
: apache_2.2.8-win32-x86-no_ssl.msi
In application when i add namespace as mention in following code
<?php
nampespace MyNamespace ;
class Test
{
public function hello()
{
echo 'Hello';
}
}
?>
it gives the following Error :
Parse error: syntax error, unexpected T_STRING in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DemoApps\Namespaces.php on line 2...
please help me to sortout this problem..
Is like that my PHP version not supports namespaces or I need to add something more..
Thanks in advance..