PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old March 3rd, 2007, 03:40 PM
marblekittykat marblekittykat is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 41 marblekittykat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 7 sec
Reputation Power: 2
Selling PHP Scripts?

I was wondering if anyone knows how to set up a site to sell digital goods like PHP scripts?

There are loads of "fully featured" e-commerce scripts to download but I don't really want to build an entire catalogue, just a way to make a handful of scripts available for a small fee via Paypal.

If anyone could help me with the basics of:
1. How to deal with Paypal
2. How to automatically make files available for download after purchase

Alternatively, it would be good to know if there is a site which will actually host scripts for download/handle the money transaction, for a small commission or something.

Thanks,

~MKK

Reply With Quote
  #2  
Old March 3rd, 2007, 05:12 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Selling PHP Scripts?

Honestly i found this stupid...php scripts must be free beause this is an open source language after all...so you dont know how to set the basics such as deal with paypal and automatically make files available for download after purchase..and still you want to make a site and sell scripts?

I could easily tell you how to do this but why should i do that when if i ever need help i will have to pay for your services? Do you get what i'm trying to say?

I honestly think you should find another way to make extra money..this one i dont agree with

Reply With Quote
  #3  
Old March 3rd, 2007, 10:43 PM
marblekittykat marblekittykat is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 41 marblekittykat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 7 sec
Reputation Power: 2
RE: Selling PHP Scripts?

Hmm tbh I don't really think you have a point. Obviously I don't know about PayPal..otherwise I wouldn't be asking...er..

When I talk about selling PHP scripts, I don't mean "I will sell you a stupid application that you should be able to do yourself." Nor am I saying "I want to cash in on PHP."

What I'm saying is, I've put a lot of effort into good building scripts which would help get people started with building their own project, even if they didn't know much about PHP. I don't think that asking for a fiver or so for that exchange is unreasonable. Obviously any advice/help regarding the code would be free...

"I could easily tell you how to do this but why should i do that when if i ever need help i will have to pay for your services"

What's that about? I put a lot of time into helping people for nothing. =/

If you have any better suggestions for making a little money I would love to know.

So no, I don't see what you're saying. Really, was a pretty useless reply, wasn't it?

Reply With Quote
  #4  
Old March 3rd, 2007, 11:58 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Selling PHP Scripts?

paypal has their own web api for this, details here. that should get you started.

Quote:
php scripts must be free beause this is an open source language after all

that's not true at all, many business' thrive on selling open-source applications, and even charge for support on top of it. are you at all familiar with the gpl license? give this a read: http://www.gnu.org/philosophy/selling.html

Reply With Quote
  #5  
Old March 4th, 2007, 04:35 AM
jesusjams777 jesusjams777 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Austin, Texas, USA
Posts: 1 jesusjams777 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Selling PHP Scripts?

i was looking at the pay pal options you linked to.

i am curious how digital products are sold and how secure they actual are. say for instance i wanted to sell hip hop beats that i made. would i just put them on my server as mp3s or in a zip file? and if so how can you restrict someone from accessing them?

how do other companies do this? like when you buy some digital software you get a link and a password but those files are stored on a server somewhere right? what if you just accessed it directly, i mean i know that it may be near impossible for someone to know the exact url but if they did..?

i noticed this site actually mails the beat to you
http://www.50dollarbeat.com/policy.htm

i also noticed that on some software that i bought in the past they just named the zips with random characters, still an outsider could type that url in and download the files w/o paying for them.

Reply With Quote
  #6  
Old March 4th, 2007, 04:08 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Selling PHP Scripts?

the way they do it is by storing the files in a folder outside of the "public" folder on the server, so they're not accessible by a url at all directly. then the download script fetches those files and sends them to the user requesting them. for example:
php Code:
Original - php Code
  1.  
  2. # download.php
  3.  
  4. $dir = '/www/mydomain.com/offline/downloads/';
  5. $id = isset($_GET['id']) && ctype_alnum($_GET['id']) ? $_GET['id'] : null;
  6.  
  7. if(isset($id)) {
  8.     // filter id to prevent SQL injection
  9.     $result = mysql_query("SELECT filename FROM downloads WHERE id = '$id'");
  10.     if(!empty($result)) {
  11.         $row = mysql_fetch_row($result);
  12.         $filename = $row[0];
  13.         header("Content-Type: application/octet-stream");
  14.         header("Content-Length: " . filesize($dir.$filename));
  15.         header("Content-Disposition: attachment; filename=".basename($filename));
  16.         readfile($dir.$filename);
  17.     }
  18. }

the above sends a "save as" dialog option for the file the user is requesting based on the id they were given when they purchased the item. that id could be randomly generated at the moment they purchase the item, and then destroyed after say, 24 hours, to prevent anyone else from accessing it. if the user buying has a login for the site, then it's even more convenient as the download is tied directly to their session information so they can download it as many times as they want, but still nobody else can.

Reply With Quote
  #7  
Old March 4th, 2007, 05:30 PM
marblekittykat marblekittykat is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 41 marblekittykat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 7 sec
Reputation Power: 2
RE: Selling PHP Scripts?

Thanks!! This is very useful =^_^=

Even if I don't end up selling anything, it's something I'd really like to know about, so thanks for the information.

~MKK

Reply With Quote
  #8  
Old March 5th, 2007, 01:59 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Selling PHP Scripts?

another advice though

Please take a look at esyndicat software. It could be used for your site. It already has built in module for paypal so you will just configure it properly and that's all.

about that guy who mentioned about FREE php scripts and he really thinks they must be free.. that's wrong. I have a team of 12 developers involved in software development. I should pay them and they will not work for free

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > Selling PHP Scripts?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway