php-windows Digest 18 Dec 2003 23:16:39 -0000 Issue 2047
Topics (messages 22401 through 22402):
Re: mssql_connect problem
22401 by: Luis Moreira
copy function
22402 by: Omar
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 ---
El mensaje no está completo.
Falta (como minimo) la linea del script.
De todas formas ...
mssql_connect
(PHP 3, PHP 4 )
mssql_connect -- Open MS SQL server connection
Description
int mssql_connect ( [string servername [, string username [, string
password]]])
Returns: A positive MS SQL link identifier on success, or FALSE on error.
mssql_connect() establishes a connection to a MS SQL server. The servername
argument has to be a valid servername that is defined in the 'interfaces'
file.
Luis
----- Original Message -----
From: "OMAR IGNACIO CAMPOS GALAN" <[EMAIL PROTECTED]>
To: "Luis Moreira" <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 4:35 PM
Subject: RE: [PHP-WIN] mssql_connect problem
La x es la ruta del archivo carpeta\archivo.php (por ejemplo)
$db_usuario y $db_password = "Formas"
Es el login y password que se utiliza para conectarse a la base de datos.
Éste usuario tiene permisos de escritura en las tablas necesarias.
LI. Omar Campos Galán
Desarrollo de Formas Electrónicas
CompuSoluciones
Tel. (0133) 3818-1554 Fax (0133) 3818-1506
cuenta messenger:
[EMAIL PROTECTED]
www.compusoluciones.com
-----Mensaje original-----
De: Luis Moreira [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 17 de Diciembre de 2003 10:29
Para: Omar
CC: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: Re: [PHP-WIN] mssql_connect problem
Omar,
Español ?...
Es este el mensaje completo ?
De donde viene el "x" ?
Qual es el contenido de las variables $db_usuario y $db_password en el
momento de la llamada ?
Luis
----- Original Message -----
From: "Omar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 4:20 PM
Subject: [PHP-WIN] mssql_connect problem
> 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 ---
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.
--- End Message ---