RE: [PHP-WIN] copy function

2003-12-19 Thread Svensson, B.A.T. (HKG)
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

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



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

2003-12-19 Thread php-windows-digest-help

php-windows Digest 19 Dec 2003 17:18:51 - 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 ---


[PHP-WIN] random access file with php

2003-12-19 Thread Idur
Hi there,

I have a big file txt to read(about 40 Mb), and i have
script to read this file, suddenly i realise that my
methode to read file is using "sequential access"
mode, but this process take time to
long(max_time_execution = 90) and i need the methode
to read in "random access" with php, i heared that
random access is more fastest than sequential access,
where i can get the tutorial about file operations
(random access mode) using php. 
Because it's very little informations that i can get
from php manual about random access mode(they told to
use fseek) or i don't the right place or right site to
get this informations.

thanx

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



php-windows Digest 20 Dec 2003 06:19:16 -0000 Issue 2049

2003-12-19 Thread php-windows-digest-help

php-windows Digest 20 Dec 2003 06:19:16 - Issue 2049

Topics (messages 22405 through 22405):

random access file with php
22405 by: Idur

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

I have a big file txt to read(about 40 Mb), and i have
script to read this file, suddenly i realise that my
methode to read file is using "sequential access"
mode, but this process take time to
long(max_time_execution = 90) and i need the methode
to read in "random access" with php, i heared that
random access is more fastest than sequential access,
where i can get the tutorial about file operations
(random access mode) using php. 
Because it's very little informations that i can get
from php manual about random access mode(they told to
use fseek) or i don't the right place or right site to
get this informations.

thanx

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
--- End Message ---


[PHP-WIN] random access file with php

2003-12-19 Thread Idur
Hi there,

I have a big file txt to read(about 40 Mb), and i have
script to read this file, suddenly i realise that my
methode to read file is using "sequential access"
mode, but this process take time to
long(max_time_execution = 90) and i need the methode
to read in "random access" with php, i heared that
random access is more fastest than sequential access,
where i can get the tutorial about file operations
(random access mode) using php. 
Because it's very little informations that i can get
from php manual about random access mode(they told to
use fseek) or i don't the right place or right site to
get this informations.

thanx

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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