d.shankar Posted September 17, 2008 Share Posted September 17, 2008 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 More sharing options...
ranjuvs Posted September 17, 2008 Share Posted September 17, 2008 use ftp_close Link to comment https://forums.phpfreaks.com/topic/124611-php-ftp-ideas/#findComment-643594 Share on other sites More sharing options...
d.shankar Posted September 17, 2008 Author Share Posted September 17, 2008 I think u didnt get me. If i use ftp_close then again a new ftp connection has to be done to retrieve the file. I need to retrieve the dynamic images with the same ftp connection. Link to comment https://forums.phpfreaks.com/topic/124611-php-ftp-ideas/#findComment-643606 Share on other sites More sharing options...
ratcateme Posted September 17, 2008 Share Posted September 17, 2008 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 More sharing options...
d.shankar Posted September 17, 2008 Author Share Posted September 17, 2008 Wow rat ! seems somewhat interesting to do. Link to comment https://forums.phpfreaks.com/topic/124611-php-ftp-ideas/#findComment-643621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.