PHP namespace errors
Posted: 02. March 2010 00:04
Hi everyone,
Could anyone please tell me how to solve this problem?
When I run this PHP script below.
----------------------------
<?php //line 1
namespace namespacename; //line 2
?>
----------------------------
I received:
---------------------
Fatal error: Namespace declaration statement has to be the very first statement in the script.
--------------------
My settings:
XAMPP Windows 1.7.3, XP Pro sp3, the other PHP installation (ver 5.3.1) installed, iis stopped.
Thank you for your help and time.
Steve
Could anyone please tell me how to solve this problem?
When I run this PHP script below.
----------------------------
<?php //line 1
namespace namespacename; //line 2
?>
----------------------------
I received:
---------------------
Fatal error: Namespace declaration statement has to be the very first statement in the script.
--------------------
My settings:
XAMPP Windows 1.7.3, XP Pro sp3, the other PHP installation (ver 5.3.1) installed, iis stopped.
Thank you for your help and time.
Steve