Bitcoin Forum
December 18, 2017, 11:18:19 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Simple php miner for scrypt (is it even possible?)  (Read 1549 times)
cakepie
Newbie
*
Offline Offline

Activity: 11


View Profile
November 04, 2015, 11:08:27 PM
 #1

Is it possible to create a simple php miner for scrypt, embedded into a single php file for windows/linux - without having to install anything ?

I don't care about performance at all. All I care about is simplicity. The possibility of running php miner.php (with the pools & users hard coded into the scrypt or as arguments) and have it work on most machines.

As far as I have noticed, most miners out there require a lot of libraries or other things to install.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513595899
Hero Member
*
Offline Offline

Posts: 1513595899

View Profile Personal Message (Offline)

Ignore
1513595899
Reply with quote  #2

1513595899
Report to moderator
smiletyson
Hero Member
*****
Offline Offline

Activity: 493


MGF Presale starts on 15th of November


View Profile
November 04, 2015, 11:39:25 PM
 #2

Dude, do you want to mine scrypt coins on server?
PHP runs on server not client.

If you mean on client, then yes there are JavaScript Miners.

                      ▄█████▄
                ▄████████▀
            ▄████████▀      ▄███▄
        ▄████████▀      ▄███████▄
    ▄████████▀      ▄███▀▀▀▀████▄
  ████████▀      ▄███▀            ▀████
███████▀      ▄███▀      ▄▄▄      ▀████
█████▀      ▄███▀      ▄█████      ▀███
████      ▄███▀      ▄█▀        ██      ███
███      ▄█  ▀      ▄████        ██      ███
███      ██        ████▀      ▄  █▀      ███
███      ██        ▄█▀      ▄███▀      ████
███▄      █████▀      ▄███▀      ▄█████
████▄      ▀▀▀      ▄███▀      ▄███████
  ████▄            ▄███▀      ▄████████
    ▀████▄▄▄▄███▀      ▄████████▀
        ▀███████▀      ▄████████▀
            ▀███▀      ▄████████▀
                        ▄████████▀
                        ▀█████▀

                                       ███████████             ███
                                       ███████████             ███
                                       ███             ▄▄▄▄    ███
                                       ███             █████▄  ███
███     ▄███  ███▄██████▄     ▄██████  ███                ███  ████████▄
███     ███▀  ████▀▀▀▀████   ███▀▀▀▀   █████████   ▄█████████  ███▀▀▀████
███     ███   ███      ███  ███        ███████▀   ████▀▀▀████  ███    ▀███
███     ███   ███      ███  ███        ███        ███     ███  ███     ███
████▄▄▄████   ███      ███  ███        ███        ███     ███  ███    ▄███
▀██████████   ███      ███   ███▄▄▄▄   ███        ████▄▄▄████  ███▄▄▄████
  ▀▀▀▀▀ ███   ███      ███    ▀██████  ███         ▀████████▀  ████████▀
       ▄███
      ████▀


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██
cakepie
Newbie
*
Offline Offline

Activity: 11


View Profile
November 04, 2015, 11:50:55 PM
 #3

Dude, do you want to mine scrypt coins on server?
PHP runs on server not client.

If you mean on client, then yes there are JavaScript Miners.

What do you even *mean* when you say server and client?
I'm a programmer who wants to know the technical aspects of writing a bitcoin miner in PHP.

I asked for a php miner and not a JavaScript miner.
smiletyson
Hero Member
*****
Offline Offline

Activity: 493


MGF Presale starts on 15th of November


View Profile
November 08, 2015, 07:13:42 PM
 #4

Dude, do you want to mine scrypt coins on server?
PHP runs on server not client.

If you mean on client, then yes there are JavaScript Miners.

What do you even *mean* when you say server and client?
I'm a programmer who wants to know the technical aspects of writing a bitcoin miner in PHP.

I asked for a php miner and not a JavaScript miner.
You're trying to make something really inefficient. If you know PHP then you can easily understand C/C++.
Check this out: https://github.com/pooler/cpuminer

                      ▄█████▄
                ▄████████▀
            ▄████████▀      ▄███▄
        ▄████████▀      ▄███████▄
    ▄████████▀      ▄███▀▀▀▀████▄
  ████████▀      ▄███▀            ▀████
███████▀      ▄███▀      ▄▄▄      ▀████
█████▀      ▄███▀      ▄█████      ▀███
████      ▄███▀      ▄█▀        ██      ███
███      ▄█  ▀      ▄████        ██      ███
███      ██        ████▀      ▄  █▀      ███
███      ██        ▄█▀      ▄███▀      ████
███▄      █████▀      ▄███▀      ▄█████
████▄      ▀▀▀      ▄███▀      ▄███████
  ████▄            ▄███▀      ▄████████
    ▀████▄▄▄▄███▀      ▄████████▀
        ▀███████▀      ▄████████▀
            ▀███▀      ▄████████▀
                        ▄████████▀
                        ▀█████▀

                                       ███████████             ███
                                       ███████████             ███
                                       ███             ▄▄▄▄    ███
                                       ███             █████▄  ███
███     ▄███  ███▄██████▄     ▄██████  ███                ███  ████████▄
███     ███▀  ████▀▀▀▀████   ███▀▀▀▀   █████████   ▄█████████  ███▀▀▀████
███     ███   ███      ███  ███        ███████▀   ████▀▀▀████  ███    ▀███
███     ███   ███      ███  ███        ███        ███     ███  ███     ███
████▄▄▄████   ███      ███  ███        ███        ███     ███  ███    ▄███
▀██████████   ███      ███   ███▄▄▄▄   ███        ████▄▄▄████  ███▄▄▄████
  ▀▀▀▀▀ ███   ███      ███    ▀██████  ███         ▀████████▀  ████████▀
       ▄███
      ████▀


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██


    ██  █
    ██  █
    ██
█  ██  █
█  ██  █
█  ██  █
█  ██  █
█  ██  █
    ██
█  ██
█  ██
joblo
Legendary
*
Offline Offline

Activity: 966


View Profile
November 08, 2015, 07:51:52 PM
 #5

Dude, do you want to mine scrypt coins on server?
PHP runs on server not client.

If you mean on client, then yes there are JavaScript Miners.

What do you even *mean* when you say server and client?
I'm a programmer who wants to know the technical aspects of writing a bitcoin miner in PHP.

I asked for a php miner and not a JavaScript miner.

I don't know what your trying to do but it fails on all levels. If you want to learn PHP don't pick a
crypto miner application, choose something more appropriate like a web client.

If you want to learn cryptography choose a language strong in computation like c++, PHP is not.
Also pick an algorithm where CPU mining is still viable, scrypt is not.

If you just want to mine scrypt coins forget about using a CPU or even a GPU, scrypt is dominated
by ASICS. Or choose another algorithm and use one of the many fine miners that already exist.

Principal developer of cpuminer-opt, the optimized multi-algo CPU miner.
BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT
https://bitcointalk.org/index.php?topic=1326803.0
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!