Re: Import files from directory

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

 



I may be mistaken, but it seems to me you would be better served letting it 
be file uploaded via php and process it as it arrives.  This would save the 
chron run every 5 min, and dir search headaches.  Or is there an issue that 
requires you to use an ftp transport?


"Merlin Morgenstern" <merlin_x@xxxxxxxxxxx> wrote in message 
news:39.7D.07052.F7F92694@xxxxxxxxxxxxxxx
> Hi everybody,
>
> I am running a real estate portal and would like to allow users to upload 
> their listing from their existing software. They do this with a XML file 
> which they will upload on a ftp server that places this xml file into a 
> seperate directory on the file system.
>
> My basic idea was to run a php scipt triggered by cron every 5 minutes 
> that checks if there is a new upload and then reads the file and removes 
> it. Now here is where the problem starts. Imagine if there are 1000 users, 
> I would need to go through 1000 folders to check for new content. There 
> must be a better solution to identify the directory that has a new 
> finished upload.
>
> Has anybody an idea on how to do this? Thank you for any hint.
>
> Best regards,
>
> Merlin 



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