Re: [OFFLIST] [PHP-WIN] Problems accessing the net units through PHP

From: Date: Thu, 21 Sep 2006 10:14:34 +0000
Subject: Re: [OFFLIST] [PHP-WIN] Problems accessing the net units through PHP
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-59674@lists.php.net to get a copy of this message
Mmm, one thing have changed... Now the server has no access to the mapped unit... Asking to the boss results that the current user has no access to that shared directory, but the old one which i been testing (when I was trying to access directly typing R:\...\log_hbf) does. But this old user has been blocked and this new user has no access. So, until my Boss comes back from wherever he had leave I can't test anything... Sorry -_- 2006/9/21, Mikael Krogius (Winwap Technologies) <krogius@winwap.com>:
1) test if your file really is accessible over that UNC path by trying to open it directly from Windows (Start -> Run -> enter that path+filename) 2) Change your code to be like this: If (file_exists($myfile)){ echo "File Found<br>"; } else { echo "File NOT Found<br>"; } - Mikael -----Original Message----- From: German Piqué [mailto:extremdur2@gmail.com] Sent: Thursday, September 21, 2006 13:05 To: krogius@winwap.com Subject: Re: [OFFLIST] [PHP-WIN] Problems accessing the net units through PHP I tried and nothing -_- 2006/9/21, Mikael Krogius (Winwap Technologies) <krogius@winwap.com>: \\\\Esm2-region2\Depts_REG2\Region_Catalunya\A_TECNOLOGIA\AT_O yM\ACCESO_SSA\Drop3G\Control_total_alarmas\\logs_hfb";
      Try using a single slash instead of a double slash
before the filename.
      ...Control_total_alarmas\logs_hfb
      - Mikael
-----Original Message----- From: German Piqué [mailto: extremdur2@gmail.com <mailto:extremdur2@gmail.com> ] Sent: Thursday, September 21, 2006 12:56 To: php-windows Subject: Re: [PHP-WIN] Problems accessing the net units through PHP 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_O yM\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 :/


« previous php.general.es (#59674) next »