Hi,
Im revisitng some old code and this doesnt work....I gett he following errors now
\\ should resolve a unc path but im a tad rusty on this so ...any ideas ?
Thanks for any pointers
Note we are reading off a unix box so a unc path is needed as the unix box doesnt run a web server
<?php
$file = '\\testsrv\tmp\intake.htm';
$newfile = '\test\test2.php.bak';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
?>
<?php include '\\testsrv\tmp\intake.htm';?>
PHP Warning: copy(\flexuk\tmp\intake.htm) [function.copy]: failed to open stream: Invalid argument in C:\Inetpub\wwwroot\index5.php on line 322 PHP Warning: include(\flexuk\tmp\intake.htm) [function.include]: failed to open stream: Invalid argument in C:\Inetpub\wwwroot\index5.php on line 326 PHP Warning: include() [function.include]: Failed opening '\testsrv\tmp\intake.htm' for inclusion (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\index5.php on line 326