php-windows Digest 19 Dec 2003 17:18:51 -0000 Issue 2048

Topics (messages 22403 through 22404):

Re: mssql_connect problem
        22403 by: Frank M. Kromann

Re: copy function
        22404 by: Svensson, B.A.T. (HKG)

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 ---
Hi,

One problem could be name resolution. The mssql server uses a default
protocol to connect to the server. If you just install the client
libraries (or just copied ntwdblib.dll) the default protocol would be
netbeui (named pipes) and that might not be routed/enabled on your
network.

To make sure your client can connect to the server you should configure
the client network utility (a program installed with MS SQL Client tools).
You can use this application to set the default protocol, and you can
create aliases that combines a name to a server through a specific
protocol.

Another problem could be the configuration of the SQL Server. Does it
allow SQL user names or does it require a trusted connection. Use
mssql.secure_connection = 0 or 1 in php.ini to alter this.

- Frank

> Hello.
> I have a sql server named CLUSTER01, i try to connect to it :
> $db_conn = mssql_connect("CLUSTER01", $db_usuario, $db_password);
> 
> and it gives me this message:
> Warning: 0 is not a MS SQL link index in x
> 
> The user name and password are correctly created in the logins of the
sql
> server.
> What else could be?
> 
> Thank you for your help.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
What's wrong with FTP? 

-----Original Message-----
From: Omar
To: [EMAIL PROTECTED]
Sent: 2003-12-19 00:17
Subject: [PHP-WIN] copy function 

Is there a way to copy a file from 1 server to a different one?
I have this code in a win 2k server, and i try to copy the file to a win
NT
server:

if (is_file($file_att))
  if (copy($file_att,'\servername\folder\'.$file_name))
    echo "succesful";
  else
    echo "failure";

It gives me this warning:

Warning: Unable to create '\servername\folder\image.jpg': Invalid
argument
in D:\Intranet\sitio\Documentos\copyf.php on line 161
failure

I need this to work on any computer of the network. What kind of
permission
do I need so any computer can use this script?

Thanks for the help.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---

Reply via email to