Namespace in PHP file error
Posted: February 28th, 2013, 10:44 am
Hi, I try to move PHP application from Linux/Apache to Windows/IIS.
I setup IIS and I can call PHP file over internet browser, thats OK.
When I try use .NET features in PHP file
I got this error
Its possible to do this?
In web.config I have this section
Thank you for any suggestion
I setup IIS and I can call PHP file over internet browser, thats OK.
When I try use .NET features in PHP file
- Code: Select all
<?php
import namespace System;
?>
I got this error
- Code: Select all
CompileError (2014): Syntax error: unexpected token 'namespace' in C:\inetpub\wwwroot\webApplication\test.php on line 4, column 10.
Its possible to do this?
In web.config I have this section
- Code: Select all
<phpNet>
<compiler>
<set name="LanguageFeatures">
<add value="PhpClr" />
</set>
</compiler>
<classLibrary>
<add assembly="mscorlib" />
<add assembly="System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add url="phpLib\PhpNetPDO.dll" />
<add url="phpLib\PhpNetMsSql.dll" />
</classLibrary>
</phpNet>
Thank you for any suggestion