php-windows Digest 25 Sep 2006 07:25:58 -0000 Issue 3042

Topics (messages 27166 through 27171):

Re: Problems accessing the net units through PHP
        27166 by: Mikael Krogius \(Winwap Technologies\)
        27167 by: German Piqué
        27168 by: German Piqué
        27169 by: Stut
        27170 by: Mitch Miller

Re: Reverse DNS/IP
        27171 by: Alex Turner

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
> Dale Attree wrote:
> PHP on windows does not support mapped network drives, 
> you would need to use sockets...

Don't know if this helps in German's situation, but you can use UNC paths
with PHP on Windows to access other computers in the same network - this way
you don't even have to map the drives.

Example: $mydir = "\\\\servername\sharename\foldername\\";

- Mikael

--- End Message ---
--- Begin Message ---
Well... i answer myself... in the name of the mapped unit appears the
server...

i'm a lammer XDDDD


2006/9/21, German Piqué <[EMAIL PROTECTED]>:

I don't know the servername... i have directly the mapped unit. I'll will
try the other solutions 'cause the server is on another place and can cause
so much trouble being messing around :P

But I can think of it as a last option, thanks :)


2006/9/21, Mikael Krogius (Winwap Technologies) <[EMAIL PROTECTED]>:
>
> > Dale Attree wrote:
> > PHP on windows does not support mapped network drives,
> > you would need to use sockets...
>
> Don't know if this helps in German's situation, but you can use UNC
> paths
> with PHP on Windows to access other computers in the same network - this
> way
> you don't even have to map the drives.
>
> Example: $mydir = "\\\\servername\sharename\foldername\\";
>
> - Mikael
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
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 :/

--- End Message ---
--- Begin Message --- On Thu, 21 Sep 2006 10:55:41 +0100, German Piqué <[EMAIL PROTECTED]> wrote:
$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>";

You need to escape \ with a \. So it becomes...

$myfile = "\\\\Esm2-region2\\Depts_REG2\\Region_Catalunya\\A_TECNOLOGIA\\AT_OyM\\ACCESO_SSA\\Drop3G\\Control_total_alarmas\\logs_hfb";

-Stut

--- End Message ---
--- Begin 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 :/


--- End Message ---
--- Begin Message ---
Stut wrote:
Daniel Anderson wrote:
I see what you mean though, but it would still be handy to find out how to find the Reverse IP/DNS anyway.

Does anyone know?

http://php.net/gethostbyaddr

-Stut
Daniel,

Just be careful because if you ban people by ip/dns you will end up banning a lot of other people who have done nothing wrong because most adsl connections are nat'ed

AJ

--
www.deployview.com
www.nerds-central.com
www.project-network.com

--- End Message ---

Reply via email to