Re: Problems accessing the net units through PHP
| From: | Mitch Miller | Date: | Thu, 21 Sep 2006 13:56:37 +0000 |
| Subject: | Re: Problems accessing the net units through PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27170@lists.php.net to get a copy of this message | ||
Also ... what user is PHP running as? If it's running as a service configured as "Local System" it will not have network access like you're trying to get.
In order for services to have access to other Windows networking resources (ex: shared folders), it must be running as a user, NOT Local System.
-- Mitch
German Piqué wrote:
Well, i'm trying the UNC paths, but without success. Now I'm trying with this piece of code: $myfile = " \\\\Esm2-region2\Depts_REG2\Region_Catalunya\A_TECNOLOGIA\AT_OyM\ACCESO_SSA\Drop3G\Control_total_alarmas\\logs_hfb"; if($error=file_exists($myfile)) echo "El fichero existe<br>"; else echo $error . ": El fichero no existe<br>"; An the output int he browser is: : El fichero no existe the translation is: "The file doesn't exists" logs_hfb is the file I need to read :/