/    Sign up×
Community /Pin to ProfileBookmark

on click download and process php file

I’ve not been doing this long so hope this isn’t an obvious/stupid a question.

I am trying to create a button/link that will download a file and then do some server side processing in php (update a dtabase) to log the fatc that it has been downloaded (or at least attempted).

I hav ebeen racking my brains but have not come with any workaround. I would have thought that after the download there would be someway for me to redisplay the page with for example, but even if i force a download in php, I cannot get another page to dispaly.

Any ideas?

thx

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@temp_user123Jul 02.2007 — I posted my code here which does exactly that -- downloads a file and then logs the fact that the file was downloaded and who did it:

http://www.webdeveloper.com/forum/showthread.php?t=153227

Of course, all that last part is done in an include file so you can't see it -- but the concept is plain.
Copy linkTweet thisAlerts:
@buttercupauthorJul 03.2007 — many thanks for this.

I had seen this thread but had missed the include.

(i really appreciate the info given by you guys out there - maybe one day i may be able to help someone too?! ? )
×

Success!

Help @buttercup spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...