- BlackBerry Support Community Forums
- Welcome & Introductions
- Announcements
- Your Stories
- Smartphones
- BlackBerry® Bold™ 9700 smartphone
- BlackBerry® Tour™ 9630
- BlackBerry Storm - BlackBerry 9500 Series Smartphone
- BlackBerry Bold - BlackBerry 9000 Series Smartphone -
- BlackBerry Curve - BlackBerry 8900 Series Smartphone
- BlackBerry 8800 Series Smartphone
- BlackBerry Curve 8500 Series Smartphone
- BlackBerry Curve - BlackBerry 8300 Series Smartphone
- BlackBerry Pearl - BlackBerry 8200 Series Smartphone
- BlackBerry Pearl- BlackBerry 8100 Series Smartphone -
- Other BlackBerry Smartphones and Devices
- General BlackBerry Smartphone Functions and Features
- BlackBerry Accessories
- Software
- BlackBerry® Desktop Software
- BlackBerry® for Mac
- BlackBerry® Device Software
- BlackBerry® Applications, Third-Party Applications & BlackBerry App World
- BlackBerry App World - General Discussions
- Downloaded Applications for BlackBerry Devices
- Solutions
- BlackBerry® Enterprise Server Version 5.0
- BlackBerry® Enterprise Solution
- BlackBerry® Internet Service
- BlackBerry® Professional Software and BlackBerry® Unite!
- BlackBerry® Training and Certification
- BlackBerry® Training and Certification
- BCP-410
- BlackBerry Development
- Dev Blog
- BlackBerry App World™ Development
- Java Development
- Web Development
- MDS Runtime Development
- BlackBerry Enterprise Server Development
- Product Management: The BlackBerry Application Platform
- BlackBerry Themes & Animated Graphics
- Community Forums Feedback
- Forum Feedback and Ideas
- BlackBerry Community Post
- BlackBerry Community Post
- Register
- ·
- Sign In
- ·
- Help
- ·
- New Topics
- ·
- New Posts
- BlackBerry Support Community Forums
- :
- BlackBerry Development
- :
- BlackBerry App World™ Development
- :
- Dynamic license key
- Subscribe to RSS Feed
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
03-18-2009 05:45 PM
Hi,
Trying to figure out the php script to retrieve the POST from the App WOrld and then send back a response;
for the post to retrieve the PIN i'm guessing something like this will work:
<?php $myPIN = $_POST['PIN']; //do stuff to generate the key here //return response with a key ?>
how do i send the response containing the key?
Thanks!
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
03-18-2009 06:38 PM
Can anyone confirm if this would work?
<?php $host = $_SERVER['HTTP_HOST']; $myPIN = $_POST['PIN']; //manipulate $myPIN to generate $key $fp = fsockopen($host, 80); fputs($fp, "HTTP/1.1 200 Ok\r\n"); fputs($fp,"Content-Type: application/www-url-encoded\r\n"); fputs($fp, "Content-Length: 20\r\n\r\n"); fputs($fp, "key=" . $key); fclose($fp); ?>
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
03-25-2009 07:14 PM
I am by no means a PHP expert so cannot really comment on your PHP code. What I can say is that when you submit your application and note that it leverages dynamic licensing you will have the ability to test your dynamic licensing server implementation to ensure that it operates properly.
Director, Developer Relations
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
06-21-2009 11:14 PM
Hai
Is this code work for you buddy.. I am also in toruble with response to vendor portal.. can you please let me know ...
<?php
$host = $_SERVER['HTTP_HOST'];
$myPIN = $_POST['PIN'];
//manipulate $myPIN to generate $key
$fp = fsockopen($host, 80);
fputs($fp, "HTTP/1.1 200 Ok\r\n");
fputs($fp,"Content-Type: application/www-url-encoded\r\n");
fputs($fp, "Content-Length: 20\r\n\r\n");
fputs($fp, "key=" . $key);
fclose($fp);
?>
Thanks in Advance
Joe
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
06-23-2009 03:05 PM
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
06-24-2009 10:02 AM
Check the Content-Length. I don't know why the test in AppWorld put 20 in there. I know it was an example but if it says key=ABCDEFGHIJK, the Content-Length would be 15.
Just making sure you are not hard coding the value of 20 here.
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
06-24-2009 10:08 AM
rsure thanks rlord.
I'm ready to enter BB store now but I'm not sure that I want to bet 200$
for a store that I can neither visit here from europe.
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
06-24-2009 01:49 PM
I wouldn't let that stop you. Even though you can't view the store, there are many many people who can.
By the way, I do offer services to generate keys for dynamic licensing hosted on my website. It's based off of whatever algorithm you come up with and it checks the IP of the sender. It works for 3 different websites/applications. They are AppWorld, MobiHand, and Handango. I also perform testing for people who don't have real hardware available (STORM, BOLD, etc). Let me know if you are interested.
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
06-24-2009 01:59 PM
you are so kind, as always...
thanks but I've got a dedicated server where to generate my activation code,
the only problem is that I cannot see the app store and I can't realize if there is a similar apps
like the one I want to upload and if my apps will worth 200$ on that store.
Re: Dynamic license key
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Flag for a Moderator
06-24-2009 02:05 PM
Just mentioning :-) There will always be an app similar to yours now or in the future. Right now I see a game that I made as shareware and gave to the AOL community back in the day.. I mean, it was a remake of a classic game but it had its unique twists... this game that is available has the same twists...I mean, it's really bad... but right now I'm in the process of remaking this same game for the blackberry and the one that's pretty much a clone mine (you know who you are!) that has been selling is not slowing my efforts.
To check to see if there are apps similar to yours, go to
The same games pretty much show up on all the sites. Have you registered to be a developer on any of these sites yet?
Shortcut Navigation
Copyright © 2009 Research In Motion Limited, unless otherwise noted.





