Run a 3rd party PHP script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prap19
Forum Newbie
Posts: 3
Joined: Sun Mar 29, 2009 12:52 am

Run a 3rd party PHP script

Post by prap19 »

Hi
I want to run a php script for an array of values.For eg: consider a file downloader script run for an array of 5 files.After the 1st file is posted to downloader script, it downloads the file and then move on to 2nd file and so on.In this way all files are downloaded without user interaction.
Please help me this idea of posting the file names to download script one by one
BornForCode
Forum Contributor
Posts: 147
Joined: Mon Feb 11, 2008 1:56 am

Re: Run a 3rd party PHP script

Post by BornForCode »

For this you may need cURL, give it a try (if you want to execute the script from your server). Though i never used to download content so i am not sure this is doable in php.

I think what you are looking (if you want to download this from a client) for a java applet or some flash.

Can you please provide more information?
prap19
Forum Newbie
Posts: 3
Joined: Sun Mar 29, 2009 12:52 am

Re: Run a 3rd party PHP script

Post by prap19 »

My problem is that:
I have a downloader script say download.php.It accepts a single file address(say url) at a time and a user is allowed to select multiple files by selecting few check boxes. These files have values as their urls. And i need to send each file to download.php one by one as each one is downloaded.
So i am not getting how to send urls one by one to download.php as each file is downloaded.So can any help me in the code or logic
Post Reply