Bitcoin Forum
May 04, 2024, 06:11:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mining with PHP (for educational purposes)  (Read 901 times)
Jakesy (OP)
Member
**
Offline Offline

Activity: 82
Merit: 10


View Profile
May 15, 2015, 01:58:34 PM
 #1

Does anybody know of a project experiment for mining with PHP?  I know it's not efficient, nor will it make me any BTC, but I'm interested for educational purposes.

I would actually like to see the nonce increment, added transactions, and the resulting hash.  It'd be easier if you could control hash rate (i.e. 1 hash per second, etc...).

Does a project like this already exist?  Possible?
1714803071
Hero Member
*
Offline Offline

Posts: 1714803071

View Profile Personal Message (Offline)

Ignore
1714803071
Reply with quote  #2

1714803071
Report to moderator
1714803071
Hero Member
*
Offline Offline

Posts: 1714803071

View Profile Personal Message (Offline)

Ignore
1714803071
Reply with quote  #2

1714803071
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Kyraishi
Hero Member
*****
Offline Offline

Activity: 952
Merit: 513



View Profile
May 15, 2015, 02:17:14 PM
 #2

Does anybody know of a project experiment for mining with PHP?  I know it's not efficient, nor will it make me any BTC, but I'm interested for educational purposes.

I would actually like to see the nonce increment, added transactions, and the resulting hash.  It'd be easier if you could control hash rate (i.e. 1 hash per second, etc...).

Does a project like this already exist?  Possible?

You mean something like this: https://github.com/codler/Bitcoin-phpMiner
What is the real reason you want it for?

Nevermind I don't wanna know....

Jakesy (OP)
Member
**
Offline Offline

Activity: 82
Merit: 10


View Profile
May 15, 2015, 03:11:44 PM
 #3

Does anybody know of a project experiment for mining with PHP?  I know it's not efficient, nor will it make me any BTC, but I'm interested for educational purposes.

I would actually like to see the nonce increment, added transactions, and the resulting hash.  It'd be easier if you could control hash rate (i.e. 1 hash per second, etc...).

Does a project like this already exist?  Possible?

You mean something like this: https://github.com/codler/Bitcoin-phpMiner
What is the real reason you want it for?

Nevermind I don't wanna know....

I want to help my dad/family understand it.  I want to create a "live view" of the blockchain.  An animated view of the previous block with transactions, nonce, hashes, etc...  while showing the current block being mined (i.e. iterating nonce + transactions + prev hash).

Some people are visual, others can imagine what the code does in their mind.   I want to try to bring these two together... for educational purposes.  I know this will never mine a block, but I do want to show what's going on.
Kyraishi
Hero Member
*****
Offline Offline

Activity: 952
Merit: 513



View Profile
May 15, 2015, 03:15:46 PM
 #4

Does anybody know of a project experiment for mining with PHP?  I know it's not efficient, nor will it make me any BTC, but I'm interested for educational purposes.

I would actually like to see the nonce increment, added transactions, and the resulting hash.  It'd be easier if you could control hash rate (i.e. 1 hash per second, etc...).

Does a project like this already exist?  Possible?

You mean something like this: https://github.com/codler/Bitcoin-phpMiner
What is the real reason you want it for?

Nevermind I don't wanna know....

I want to help my dad/family understand it.  I want to create a "live view" of the blockchain.  An animated view of the previous block with transactions, nonce, hashes, etc...  while showing the current block being mined (i.e. iterating nonce + transactions + prev hash).

Some people are visual, others can imagine what the code does in their mind.   I want to try to bring these two together... for educational purposes.  I know this will never mine a block, but I do want to show what's going on.

Gotcha!
It would be nice if you published it on the web so that other newcomers can visualize what is happening under the hood  Wink
I am sure many members in the forums would help promote the site, of which you can add some adverts and monetize it  Wink

SpanishSoldier
Sr. Member
****
Offline Offline

Activity: 686
Merit: 255


View Profile
May 15, 2015, 03:17:49 PM
 #5

Does anybody know of a project experiment for mining with PHP?  I know it's not efficient, nor will it make me any BTC, but I'm interested for educational purposes.

I would actually like to see the nonce increment, added transactions, and the resulting hash.  It'd be easier if you could control hash rate (i.e. 1 hash per second, etc...).

Does a project like this already exist?  Possible?

You mean something like this: https://github.com/codler/Bitcoin-phpMiner
What is the real reason you want it for?

Nevermind I don't wanna know....

I want to help my dad/family understand it.  I want to create a "live view" of the blockchain.  An animated view of the previous block with transactions, nonce, hashes, etc...  while showing the current block being mined (i.e. iterating nonce + transactions + prev hash).

Some people are visual, others can imagine what the code does in their mind.   I want to try to bring these two together... for educational purposes.  I know this will never mine a block, but I do want to show what's going on.

That would be a great project to incept. Publish in online and you'll be flooded with traffic. Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!