Pages:
Author

Topic: PHP Bitcoin Development Kit | v0.0.46_pre15 | Alpha | BitcoinDevKit.com - page 2. (Read 16294 times)

member
Activity: 182
Merit: 10
I personally think it would be quite more difficult becuase then you'd have to create an "object" then call a function why make everything so complex for less than 20 cpu cycles saved here?

As far as I know JSON rpc is usually HTTP type requests by default so no there shouldn't be any CPU cycles saved here just more typing and confusing of "object handlers" if I could enable TCP mode for sure, I'd implement the global "object handling" feature infact I'm writing that down in the "TO DO" list "Research how to enable TCP mode in the BDKs' current JSON library".

https://github.com/Xenland/Bitcoin-Development-Kit/wiki/%28%29-To-Do-Features-%28Notes-to-contributing-developers%29

I'm not talking about CPU cycles, I'm concerned about network traffic.  Not everyone is going to have their RPC server hosted on the same machine as their site.  I'm willing to best most actually go the 3rd-party route, and outsource their RPC server.

As for "creating an object", the jsonRPC library already returns the connection as a class object.  All you need to do is have it set as public at the top of the script (after including jsonRPCClient.php and config.php, of course).
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I personally think it would be quite more difficult becuase then you'd have to create an "object" then call your function; why make everything so complex for less than 20 cpu cycles saved here?

As far as I know JSON rpc is usually HTTP type requests by default so no there shouldn't be any CPU cycles saved here just more typing and confusion of "object handlers". if I could enable TCP mode for sure, I'd implement the global "object handling" feature infact I'm writing that down in the "TO DO" list "Research how to enable TCP mode in the BDKs' current JSON library".

https://github.com/Xenland/Bitcoin-Development-Kit/wiki/%28%29-To-Do-Features-%28Notes-to-contributing-developers%29
member
Activity: 182
Merit: 10
Looking over your sourcecode.

I have to ask, doesn't it make more sense to open the connection once as a public object when the library is included, instead of every time a function is called?  For small projects it's not that big a deal, but if someone were to use your kit for a high-traffic site, those are just extra RPC calls that could be cut back on.

Food for thought.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I'm saddened by the fact developers on here need RPC calls compiled into a fancy package for them.

There's nothing fancy about it. It has a function.

For example encouraging integer math, but most importantly error codes are already built in and caught, no need to reinvent the wheel. The reason why I built it is because I kept rewriting PHP functions per client when i ended up writing the same thing over and over but not only that... The way RPC error handling happens in PHP is if you don't catch the "known" error the whole page wont render at all so that was another major issue.. Which was to catch all the errors instead of rendering a blank page; With the BDK the page actually computes/renders and spits out an error status code instead (which the developer can actually choose to display professional looking messages instead of error codes or blank pages).

Now if this was a C or C++ library I'd agree with you, but in PHP there is some issues that I have personally faceplamed the solutions some of these newbie developers are passing around, so in a way its meant to encourage less open holes for hackers to exploit due to the ignorance from newbie programmers. If you would like to reinvent the wheel I would say that's probably a waste of time unless your improving it... which in that case there should be some kind of record to "improve" upon or nobody will get any where as a "whole" and will just make the same mistakes over and over(Hence another reason to start this project and continue it is record keeping of failures of Bitcoin + PHP integration).

Well that's the end of my rant.
member
Activity: 182
Merit: 10
I'm saddened by the fact developers on here need RPC calls compiled into a fancy package for them.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Server is back up and for the downtime I've decided to give away "complementary scripts" for each example. The first free script is example one cheers mates!
http://bitcoindevkit.com/examples/example1.php
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
It seems my donated server is down I'm purchasing new servers it should be back up in a bit.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
The video wasn’t that popular (in views) so I'll have to guess that the scripts are more a necessity then videos, but that goes with out saying that videos are helpful complement to scripts.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
The website has been updated and there should be absolutely no broken links and no more "redirects to HTML pages".

Not quite, the logo leads to http://bitcoindevkit.com/index.html not .php (404)

Thanks fixing it Cheesy
hero member
Activity: 524
Merit: 502
The website has been updated and there should be absolutely no broken links and no more "redirects to HTML pages".

Not quite, the logo leads to http://bitcoindevkit.com/index.html not .php (404)
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Getting started with BDK for PHP on Windows 7 (XAMPP)
http://youtu.be/cAA0-95hQzE


These videos are to help me gather research data to provide quality videos for the purchasable packs Cheesy
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
legendary
Activity: 1204
Merit: 1002
RUM AND CARROTS: A PIRATE LIFE FOR ME
I will be watching this!
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
For those whom have been waiting I'm working on the tutorials for Windows 7 + XAMPP + BDK + Bitcoin these tutorials will be available for free online with super low quality video and medium quality sound, if you want to see whats going on you can purchase any "pack" that advertises "Presentation Videos" in the pricing options obviously upon purchase you get the full resolution of videos and the highest of quality of sound. You will receive only presentation videos that correspond to the scripts that are included, meaning if you purchase the "Donor" pack you will receive only the videos that go with the "Simple Example Scripts" that come with it and to give a comparison if you purchased the "Enterprise" pack you will receive all the videos because it comes with the simple & advanced scripts.

I might also note that it won't be just Windows I will be covering, You will also receive both Windows AND Linux video tutorials, as it is recommended to run a Bitcoin website under Linux anyways, but Windows has the perks of learning something new more quickly.

Pre Purchase will be available after the 24th of this month of March.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
https://github.com/Xenland/Bitcoin-Development-Kit/wiki/%5BTutorial%5D-Getting-Started

Helps you mates getting started with programming with the BDK for PHP


Edited Updates:
Removed the file dependencies.tar.gz from the repo.

More Edited Updates:
It is recommended according to the getting started page to run your Bitcoin client with -checklevel=6.

EVEN MORE! UPDATES:
http://www.bitcoindevkit.com/examples.php
Examples are back online with version 0.8.0


Heads updates:
The BDK advanced scripts (purchasable by pre-order) will include examples of BDK + Ajax using Jquery.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I pushed development version v0.0.46_pre2
Send many
has been tested and is working on my end. let me know if you have any problems
https://github.com/Xenland/Bitcoin-Development-Kit/commit/4bc77f638d8838367f81fbf48cc9676fec103712
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
When the BDK for PHP is completed (as in beta) and pre-orders for videos/tutorial/scripts pack is available, upon pre-ordering (and when purchasing is available), when payment is received you will get a Bitcoin digital receipt for your pre-order.
You will tangibly receive a "Message", "signature", and "Bitcoin address" so you have verifiable proof that you have purchased the digital download pack of goodies. This Bitcoin address to verify the signature/message against will be known as the official BDK for php address and thus will be "static"(non-changing). This way if by some means that the "purchase list" in the web site database is lost or destroyed then the customers can give me their signatures/messages and I will verify against the Bitcoin address and then validate the amount of Bitcoins received.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I pushed dev version v0.0.45 which completes the function bitcoin_list_transactions();

https://github.com/Xenland/Bitcoin-Development-Kit/commit/2289a84843c001f33f76ac54e5e70c6c79801178
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
The website has been updated and there should be absolutely no broken links and no more "redirects to HTML pages".

http://BitcoinDevKit.com

Also I purchased http://BitcoinWebKit.com and in the future that BitcoinWebKit.com domain will redirect to the PHP BDK and the Bitcoindevkit.com will redirec to a "centeral" selection website to pick which Bitcoin Dev Kit language you would like (BDK for C++, BDK for Qt, BDK for JS, BDK for Jquery, etc )
Pages:
Jump to: