/    Sign up×
Community /Pin to ProfileBookmark

Downloads in PHP?

On my site I want to put linked downloads to zip files, however I need to save the pages as dot php for php include code, I’m aware there is an html include code but I’m not bothering to change all my files to html with the html include code and so on now…

Anyway in summary the downloads don’t work and I’m assuming it’s cuz I’m using links to downloads in HTML and the files are dot php so anyone know a php download code or any ideas why it isn’t working?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 22.2005 — Huh?

A link is a link, regardless of how the page was generated before being sent to the user's browser. (Or, more likely, I'm not understanding what the real problem/question is here.)
Copy linkTweet thisAlerts:
@NoobletauthorApr 22.2005 — Ok I'm really confused too, but my links to the downloads (hosted on other sites) when clicked on bring you to the host's homepage, I've tried it on various hosts and it still doesn't work..
Copy linkTweet thisAlerts:
@NogDogApr 22.2005 — Perhaps we could see the source code you're using?
Copy linkTweet thisAlerts:
@nixApr 22.2005 — nooblet, you said it's in a zip file right? then if it is, it doesn't matter, because the person downloading will be able to open the php files no problem once they extract them. However, if you want to be able to download .php files so others can view the source code, I can do that. it just requires a bit of code and you can download it. but I've only tried it on my local server so it might not work on "real" servers.
×

Success!

Help @Nooblet 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...