Hi all:
I'm working on a project that requires frequent updating of a large amount
of data to a MySQL database. Currently, I'm trying to transfer a CSV file to
the server, have it process the file, and then delete it once the processing is
complete. Rather than waste the up-front time of
How big is the file? fgetcsv() will read any file that you can get a
handle to using fopen() or fsockopen(), including remote files.
However, if allow_url_fopen is not enabled, you can't use fopen().
Also if the file is so large that your script is timing out while
waiting for it to be uploaded,
Go into your php.ini file and increase the script timeout length, which should
allow the upload to finish.
Jon Westcot [EMAIL PROTECTED] wrote:
Hi all:
I'm working on a project that requires frequent updating of a large
amount of data to a MySQL database. Currently, I'm trying
: Wolf [EMAIL PROTECTED]
To: Jon Westcot [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Sent: Wednesday, October 24, 2007 1:16 PM
Subject: Re: [PHP] Can a PHP script process a file on a remote computer?
Go into your php.ini file and increase the script timeout length, which
should
- Original Message -
From: Andrew Ballard [EMAIL PROTECTED]
To: PHP General php-general@lists.php.net
Sent: Wednesday, October 24, 2007 1:15 PM
Subject: Re: [PHP] Can a PHP script process a file on a remote computer?
How big is the file? fgetcsv() will read any file that you can get
Message-
From: Jon Westcot [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 24, 2007 3:18 PM
To: PHP General
Subject: Re: [PHP] Can a PHP script process a file on a remote computer?
Thanks, Wolf. I'm going to have to do a lot of long processes -- uploads,
queries, and the like -- and I
- Original Message -
From: Jon Westcot [EMAIL PROTECTED]
To: PHP General php-general@lists.php.net
Sent: Wednesday, October 24, 2007 1:22 PM
Subject: Re: [PHP] Can a PHP script process a file on a remote computer?
Hi Andrew:
Thanks for the reply.
If I use fopen() to open
On 10/24/07, Jon Westcot [EMAIL PROTECTED] wrote:
The test file that I'm using -- which probably is a small version of the
normal file -- is around 60 MB in size (just under 30,000 records).
That sounds like a rather large file to process anyway. You might need
to use some scheduled task
PM
To: PHP General
Subject: Re: [PHP] Can a PHP script process a file on a remote
computer?
Thanks, Wolf. I'm going to have to do a lot of long processes --
uploads,
queries, and the like -- and I appreciate knowing that I can adjust
that.
Now if I can just find the PHP.INI file
9 matches
Mail list logo