Error : "Failed to Open Stream - Invalid Argument" when trying to run an application in the IDE

Abstract: Error : "Failed to Open Stream - Invalid Argument" when trying to run an application in the IDE

Question

The location of my My Documents folder has been set to a network share using a UNC path (ie \\machine\share). When I try to run my application inside the Delphi PHP IDE I get an error:

Line 127 c:\program files\CodeGear\Delphi for PHP\1.0\VCL\vcl.inc.php require_once(../../../../../c:/program files/codegear/delphi for php/1.0/vcl/vcl.inc.php) [<a href='function.require_once'>function.require_once</a>] : failed to open stream: Invalid Argument.


Answer

The error message is generated by PHP. In order to work properly the PHP code must be accessed via a drive letter.