PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Re: [PHP] Can a PHP script process a file on a remote computer?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: [PHP] Can a PHP script process a file on a remote computer?

Réponse
 
LinkBack Outils de la discussion
Vieux 24/10/2007, 21h16   #1
Wolf
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 allow the upload to finish.


---- Jon Westcot <jon@westcot.net> 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 you can give me will be GREATLY appreciated!
>
> Thanks,
>
> Jon

  Réponse avec citation
Vieux 24/10/2007, 21h17   #2
Jon Westcot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.... (Stupid GoDaddy-shared-domains;
can't find anything on 'em.)

Jon

----- Original Message -----
From: "Wolf" <lonewolf@nc.rr.com>
To: "Jon Westcot" <jon@westcot.net>
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 allow the upload to finish.
>
>
> ---- Jon Westcot <jon@westcot.net> 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 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
>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h55.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09001 seconds with 10 queries