do sth while script is running

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
krieger
Forum Newbie
Posts: 1
Joined: Wed Apr 30, 2003 4:43 am

do sth while script is running

Post by krieger »

hi all,
is it possible to make the script do sth while i'm executing eg. a "ftp upload" function? i'd like to open a new window which says "file upload in progress" as long as the upload goes.

i've tried everything in javascript, but it didn't work, because the ftp_put part is interpreted on the server, but the javascript part is interpreted on the client-side...

does someone knows a solution?
thanks,
sam
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Could possibly just echo 'file uploading' before the ftp code then, when it's done, echo a link like 'upload complete click to continue' - or header() to the next page.
Post Reply