473,388 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

What's the best way to download software from a website

134 100+
Hello,

I want to sell my software on my website and I already created a PayPal button.
But what's the best way to set software on my website? Is it better to upload the software in a sql database or is it better to just create a special link which gets the map out of my DirectAdmin?
Also please tell me how to do one of these ways, because I don't know how to upload software in a database or how to make a special link to takes the map out of my DirectAdmin.

Thanks in Advance
Jun 19 '11 #1
2 1801
Markus
6,050 Expert 4TB
If the software is behind a paywall I would have the software in some location outside of the webroot (which is typically /var/www) so that it can not be accessed by a web-browser, only through some PHP script. That PHP script (yoursite.tld/get-software.php) would then authenticate that the user has indeed paid for the software. Then you would send a header to the browser, followed by the content of the binary file using the readfile function or something similar. The path to your software should be stored in a database if it is not in some fixed location.
Jun 20 '11 #2
michaeldebruin
134 100+
oke thanks a lot.
That link behind the readfile was the tutorial I was looking for
Jun 20 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: pratchaya | last post by:
What the best language code to connect MySQL --> C , C++ , php,VB,Delphi ? about ---- Speed ---- Stable ---- Security Can anyone compare C , C++ , php4,php5 ,vb ,delphi to connect to...
3
by: Chris Transcend | last post by:
Hi all, I'm writing my first .NET website and am wondering what the best method for including headers and footers is. I was thinking either a user or server control but am not sure which would...
2
by: df4ian | last post by:
Hello, I'm new in programming PHP (I have several years experience in C). I want to download a website, say : http://www.findu.com/cgi-bin/raw.cgi?call=db0skp The website is full of datas....
17
by: | last post by:
I have an app that retrieves data from an Access database. At the moment I have the SQL string as a Const in my app. I understand this is not best practice. I don't want the user to have access to...
1
by: Rocael Hernandez | last post by:
Hello all, I was wondering what's best for PG, since we have to decide what will be the new server for our DB, that will serve one or more websites. Our actual configuration is a dual xeon...
2
by: Søren M. Olesen | last post by:
Hi What's best practice for distributing the load between webservices on different computers? What I'd like is for a client to always select the webservice with the least load, I.e. If...
2
by: kbutterly | last post by:
All, I have a menu which contains Category as the master and Product as the child. When I click on a Category in the menu, I want one formView control, fvpc, to show, and then when I click on...
14
by: colombianpimp28 | last post by:
please tell me what you think of my website any suggestions http://masterjuan0101.googlepages.com
1
by: Jeff | last post by:
Hey asp.net 2.0 at work we are about to start on a new project. Creating a website. My mananger has created the database. The database has a table holding user information (not that standard...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.