Jump to content

PHP + FTP Ideas !


d.shankar

Recommended Posts

I have an image file in a remote server. The remote server generates different images instantly and replaces the existing image file. Such that the server has only one image file.

 

The image cannot be accessed directly and can be accessed via FTP only.

 

Now i need to retrieve the dynamically changing image as i want.

 

I have the ftp established the ftp conn via PHP and started retrieving the image. I have a button called 'capture image' and when i click it each and every time.. it establishes a new ftp link an retrieves the image..

 

What i want is that , i need to retrieve the images via the same connection.

 

 

Can someone help me ?

 

Link to comment
https://forums.phpfreaks.com/topic/124611-php-ftp-ideas/
Share on other sites

so you want to have a FTP link that remains open and multiple clients can see the image that is download through this FTP link?

that is imposable with php as php stops and closes everything file handlers, mysql connections, and ftp connections.......

so when a script ends there is nothing left but the output sent to your web server app.

the only way around this is if you made a daemon process in some other language that could get the file then some how talk to it in php and tell it to download the file.

but that is REALLY hard

 

Scott.

Link to comment
https://forums.phpfreaks.com/topic/124611-php-ftp-ideas/#findComment-643619
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.