Re: Can a PHP script process a file on a remote computer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is set_time_limit() that works from the script as long as safe_mode is not enabled.

http://docs.php.net/manual/en/function.set-time-limit.php

Ed


On Oct 24, 2007, at 3:26 PM, Vo, Lance wrote:

you probably won't be able to edit PHP.ini with shared-hosting. The other solutions, one I can think of it now - you can use PHP to upload files from remote computer to the server at certain time, and set schedule with cron to run your PHP scripts on your server.
Good luck

-----Original Message-----
From: Jon Westcot [mailto:jon@xxxxxxxxxxx]
Sent: Wednesday, October 24, 2007 3:18 PM
To: PHP General
Subject: Re: 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.... (Stupid GoDaddy-shared- domains;
can't find anything on 'em.)

    Jon

----- Original Message -----
From: "Wolf" <lonewolf@xxxxxxxxx>
To: "Jon Westcot" <jon@xxxxxxxxxxx>
Cc: "PHP General" <php-general@xxxxxxxxxxxxx>
Sent: Wednesday, October 24, 2007 1:16 PM
Subject: Re: 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 allow the upload to finish.


---- Jon Westcot <jon@xxxxxxxxxxx> 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 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 having to upload the file (which is currently timing out without fully uploading the file and I have no idea how to resolve this!), is it possible to have the server open the specified file remotely and read it using the fgetcsv()
function?  If so, how?

    Any help you can give me will be GREATLY appreciated!

    Thanks,

        Jon

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



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


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux