Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® World™ Development

Reply
New Contributor
willjo
Posts: 6
Registered: ‎12-03-2011
My Carrier: uk

Dynamic License Key PHP code

 

I want make a .php to generation  Dynamic License Key at blackberry app world.

 

I'm not familiar with PHP. this is my code:

 

<?php
$key = "key=abcd";
header("HTTP/1.1 200 OK");
header("Content-Type: text/html");
header("Content-Length: ".strlen(utf8_decode($key)));
echo $key;
?>

 

I put it in my server(http://www.myweb.com/test.php),

 

But, when I test it at appworld isvportal.

the problem is:

first click the "test" button tips: "URL provided is invalid or unreachable", then I click the "test" button again. Test Response:

HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 8

 

key=abcd

 

if close browse and try again has same problem.

who can help me? thanks!

Please use plain text.
New Contributor
willjo
Posts: 6
Registered: ‎12-03-2011
My Carrier: uk

Re: Dynamic License Key PHP code

Everyone did not meet this problem

Please use plain text.
Developer
QuiteSimple
Posts: 1,447
Registered: ‎11-06-2009
My Carrier: WiFi

Re: Dynamic License Key PHP code

I'm not a PHP expert either, but I copied your code and placed it on my server. I used the Test button in Vendor portal and got an OK response from the very first time:

 

HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 8

key=abcd

 

Success!
Key=abcd 

 I have tried this with FireFox 8.0

 

I'd suggest to try with different browsers and if you get the same error everytime, contact your internet provider, probably there is some proxy or firewall stopping the requests.



"When you become a level 3 developer, you learn to communicate over the ether. I'm told that level 5 developers are ascend into a higher level of existence beyond the physical realm." gord888 @ crackberry
Please use plain text.