Bitcoin Forum
July 08, 2024, 01:50:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2] 3 »
21  Other / Off-topic / $100 Google Adwords on: February 27, 2013, 02:57:07 AM
i dont know if i can post this here.... sorry in advance if im not allowed...


Im trying to sell a $100.00 google adwords promo code.... 2BTC
If you have questions you can post here... Thanks!
22  Bitcoin / Development & Technical Discussion / Re: formatting listtransactions bitcoind PHP on: February 24, 2013, 07:55:40 AM
everything else using bitcoind on the site works fine.... connects like it should.... like listing transactions for accounts and balances....
23  Bitcoin / Development & Technical Discussion / Re: formatting listtransactions bitcoind PHP on: February 24, 2013, 07:37:50 AM
now its working with the variable but it is giving error now... idk why hmmm here is my code....


Code:
<?php
$password 
xxxx;
require_once 
'jsonRPCClient.php';
    
$bitcoin = new jsonRPCClient('http://xxx:xxx@xxx:8332/');
  
print_r($bitcoin->walletpassphrase($password3));
 
?>

<?php
require_once 'jsonRPCClient.php';
    
$bitcoin = new jsonRPCClient('http://xxx:xxx@xxxx:8332/');
  
print_r($bitcoin->settxfee(0.0005));
 
?>

<?php


$address3 
$_POST['user_name'];
$to $_POST['fax'];
$amount floatval($_POST['web']);


  require_once 
'jsonRPCClient.php';
  
$bitcoin = new jsonRPCClient('http://xxx:xxx@xxxx:8332/');
  
print_r($bitcoin->sendfrom($address3$to$amount1commentcomment));

 
?>


and i get an error
Code:
Warning: fopen(http://...@xxxx:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /opt/lampp/htdocs/login1/jsonRPCClient.php on line 132

Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://xxx:xxx@xxx:8332/' in /xxx/xxxxx/xxxxxxx/xxx/jsonRPCClient.php:140 Stack trace: #0 /opt/lampp/htdocs/login1/cashout2.php(25): jsonRPCClient->__call('sendfrom', Array) #1 /xxx/xxxx/xxxx/xxxx/xxxxx.php(25): jsonRPCClient->sendfrom('admin', '18rkzRh7VwArgoL...', 0.017, 1, 'comment', 'comment') #2 {main} thrown in /opt/lampp/htdocs/login1/jsonRPCClient.php on line 140

Alls i did was change the code.... hmmmm tip for you if this gets solved  Huh  Wink
24  Bitcoin / Development & Technical Discussion / Re: formatting listtransactions bitcoind PHP on: February 24, 2013, 06:49:28 AM
when i use a variable like $address for the sendfrom it doesnt work.

if i put just an account name there instead of using a variable it works....
hmmmmm... is there something i should be doing when i input the variable??


 Huh

Error msg shows that its null when i use a variable.....

Working code

Code:
<?php
$address 
$_POST['account'];
$to $_POST['toaddress'];
$amount floatval($_POST['amount']);


  require_once 
'jsonRPCClient.php';
   
$bitcoin = new jsonRPCClient('http://xxxx:xxxx@xxxx:8332/');
  
print_r($bitcoin->sendfrom(account$to$amount1commentcomment));

?>

Not working code

Code:
<?php
$address 
$_POST['account'];
$to $_POST['toaddress'];
$amount floatval($_POST['amount']);


  require_once 
'jsonRPCClient.php';
   
$bitcoin = new jsonRPCClient('http://xxxx:xxxx@xxxx:8332/');
  
print_r($bitcoin->sendfrom($address$to$amount1commentcomment));

?>
25  Bitcoin / Development & Technical Discussion / Re: formatting listtransactions bitcoind PHP on: February 24, 2013, 06:04:56 AM
you sure...

i just tested it and it didnt work....  Huh Angry
26  Bitcoin / Development & Technical Discussion / Re: formatting listtransactions bitcoind PHP on: February 24, 2013, 05:36:07 AM
so if i was to want to send coins to an address i would use code like this?

Code:
<?php


  
require_once 'jsonRPCClient.php';
    
$bitcoin = new jsonRPCClient('http://xxxx:xxxx@10.0.0.2:8332/');
  
print_r($bitcoin->walletpassphrase(password3));

?>

<?php


  
require_once 'jsonRPCClient.php';
    
$bitcoin = new jsonRPCClient('http://xxx:xxx@XXXXXX:8332/');
  
print_r($bitcoin->settxfee(0.0005));

?>

<?php
$address 
$_POST['account'];
$to $_POST['toaddress'];
$amount $_POST['amount'];


  require_once 
'jsonRPCClient.php';
   
$bitcoin = new jsonRPCClient('http://xxxx:xxxx@xxxx:8332/');
  
print_r($bitcoin->sendfrom($address$to$amount1commentcomment));

?>

I have a feeling i have this all wrong  Huh  Huh
27  Bitcoin / Development & Technical Discussion / Re: formatting listtransactions bitcoind PHP on: February 23, 2013, 05:29:58 PM
i got it lol there wasnt an issue with the code you posted. i was trying to do something like this.....


Code:
<?php
$address 
$_SESSION['user_name'];
  require_once 
'jsonRPCClient.php';
    
$bitcoin = new jsonRPCClient('http://XXXX:XXXX@XXXX:8332/');
  
$json=$bitcoin->listtransactions($address)
?>


<?php 
for($i=count($json)-1$i>=0$i--){
echo 
$json[$i]['address']."\n";
echo 
$json[$i]['category']."\n";
echo 
$json[$i]['amount']."\n";
echo 
$json[$i]['confirmations']."\n";
echo 
$json[$i]['txid']."\n";
}
?>
$_SESSION['user_name'];  is the account name .... just had a typo...

thank you so much!!
28  Bitcoin / Development & Technical Discussion / Re: formatting listtransactions bitcoind PHP on: February 23, 2013, 07:26:06 AM
code doesnt seem to work Sad
29  Bitcoin / Development & Technical Discussion / formatting listtransactions bitcoind PHP on: February 23, 2013, 06:58:56 AM
im trying to show transactions for a specific account in bitcoind. But with

 
Code:
<?php




  
require_once 'jsonRPCClient.php';
    
$bitcoin = new jsonRPCClient('http://xxxx:xxxx@xx.x.x.x:8332/');
  
print_r($bitcoin->listtransactions(account));
?>

It appears all garbled on the webpage.


Is there any way to fix that?
30  Bitcoin / Development & Technical Discussion / Re: Bitcoin RPC Commands Sent from my website?? on: February 21, 2013, 09:37:17 PM
is there a webhost that would accept bitcoin that would allow me to do this?

what would my bitcoin.conf look like? Thanks!
31  Bitcoin / Development & Technical Discussion / Re: Bitcoin RPC Commands Sent from my website?? on: February 21, 2013, 09:28:59 PM
would it be -listen in bitcoin.conf??
32  Bitcoin / Development & Technical Discussion / Bitcoin RPC Commands Sent from my website?? on: February 21, 2013, 09:11:20 PM
Is there a way to enable this using the bitcoin.conf i have the server running and i made a script in php to send rpc commands to bitcoind. It was a success in that nature locally. Now when i upload it to my webhost it doesnt work. i forwarded all my ports and everything. can someone please help?
33  Bitcoin / Development & Technical Discussion / Re: Buying Bitcoins PHP Script on: January 27, 2013, 03:43:38 PM
i see what you are saying...

34  Bitcoin / Development & Technical Discussion / Re: Buying Bitcoins PHP Script on: January 27, 2013, 03:28:29 PM
im sorry if you think i was spamming. i wasnt trying to do that. im seriously trying to find info on any scripts so i can do what they do myself....
35  Bitcoin / Project Development / Re: Bitcoin SCI [PHP]: process transactions yourself! (addresses gen, IPN, QR Codes) on: January 27, 2013, 12:41:02 AM
is there a tutorial for how to set this up???
36  Bitcoin / Development & Technical Discussion / Re: Buying Bitcoins PHP Script on: January 27, 2013, 12:14:37 AM
http://coin2pal.info Does this. just FYI
37  Bitcoin / Development & Technical Discussion / Buying Bitcoins PHP Script on: January 27, 2013, 12:12:41 AM
Im looking to buy bitcoins and i was wondering if their was a script around that i can use to harvest information like

1.PayPal email

2.i need it to show a new bitcoin address each time for members to make a deposit.

Im looking for something in PHP. i know i can do the first part myself. im just not familiar with any APIs
38  Bitcoin / Project Development / MiningFarm issues on: January 12, 2013, 01:36:27 AM
I have been working to get MiningFarm to work and i have only a few issues....
 
 I get these errors

Notice: Undefined index: miningfarm in /opt/lampp/htdocs/MiningFarm/index.php on line 18

Notice: Undefined variable: threshhold in /opt/lampp/htdocs/MiningFarm/req/functions.php on line 301

Fatal error: Uncaught BitcoinClientException:
  • : Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) thrown in on line 0

I have everything setup correct in terms of pushpool and Bitcoind i just need to resolve these issues.

also do i point mining farm to the same Database as pushpool?

im running on Ubuntu 12.04 in vmware.

any suggestions?
39  Bitcoin / Project Development / Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm ) on: January 12, 2013, 01:35:01 AM
I have been working to get MiningFarm to work and i have only a few issues....
 
 I get these errors

Notice: Undefined index: miningfarm in /opt/lampp/htdocs/MiningFarm/index.php on line 18

Notice: Undefined variable: threshhold in /opt/lampp/htdocs/MiningFarm/req/functions.php on line 301

Fatal error: Uncaught BitcoinClientException:
  • : Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) thrown in on line 0

I have everything setup correct in terms of pushpool and Bitcoind i just need to resolve these issues.

also do i point mining farm to the same Database as pushpool?

im running on Ubuntu 12.04 in vmware.

any suggestions?
40  Bitcoin / Mining support / poolserverj-0.3.1.01 401 error need help on: January 06, 2013, 05:56:22 PM
        at org.eclipse.jetty.client.HttpDestination.close(HttpDestinati
11)
        at org.eclipse.jetty.client.HttpClient.doStop(HttpClient.java:4
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(Abst
ycle.java:83)
        at com.shadworld.poolserver.source.WorkFetcherThread.shutdown(W
rThread.java:292)
        at com.shadworld.poolserver.source.WorkSource.shutdown(WorkSour
65)
        at com.shadworld.poolserver.WorkProxy.shutdown(WorkProxy.java:9
        at com.shadworld.poolserver.PoolServer.shutdown(PoolServer.java
        at com.shadworld.poolserver.PoolServer$1.run(PoolServer.java:23
Exchange Exception from: com.shadworld.poolserver.source.SingleWorkExch
java.io.EOFException: local close
        at org.eclipse.jetty.client.HttpConnection.close(HttpConnection
)
        at org.eclipse.jetty.client.HttpDestination.close(HttpDestinati
11)
        at org.eclipse.jetty.client.HttpClient.doStop(HttpClient.java:4
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(Abst
ycle.java:83)
        at com.shadworld.poolserver.source.WorkFetcherThread.shutdown(W
rThread.java:292)
        at com.shadworld.poolserver.source.WorkSource.shutdown(WorkSour
65)
        at com.shadworld.poolserver.WorkProxy.shutdown(WorkProxy.java:9
        at com.shadworld.poolserver.PoolServer.shutdown(PoolServer.java
        at com.shadworld.poolserver.PoolServer$1.run(PoolServer.java:23
Exchange Exception from: com.shadworld.poolserver.source.SingleWorkExch
java.io.EOFException: local close
        at org.eclipse.jetty.client.HttpConnection.close(HttpConnection
)
        at org.eclipse.jetty.client.HttpDestination.close(HttpDestinati
11)
        at org.eclipse.jetty.client.HttpClient.doStop(HttpClient.java:4
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(Abst
ycle.java:83)
        at com.shadworld.poolserver.source.WorkFetcherThread.shutdown(W
rThread.java:292)
        at com.shadworld.poolserver.source.WorkSource.shutdown(WorkSour
65)
        at com.shadworld.poolserver.WorkProxy.shutdown(WorkProxy.java:9
        at com.shadworld.poolserver.PoolServer.shutdown(PoolServer.java
        at com.shadworld.poolserver.PoolServer$1.run(PoolServer.java:23
Exchange Exception from: com.shadworld.poolserver.source.SingleWorkExch
java.io.EOFException: local close
        at org.eclipse.jetty.client.HttpConnection.close(HttpConnection
)
        at org.eclipse.jetty.client.HttpDestination.close(HttpDestinati
11)
        at org.eclipse.jetty.client.HttpClient.doStop(HttpClient.java:4
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(Abst
ycle.java:83)
        at com.shadworld.poolserver.source.WorkFetcherThread.shutdown(W
rThread.java:292)
        at com.shadworld.poolserver.source.WorkSource.shutdown(WorkSour
65)
        at com.shadworld.poolserver.WorkProxy.shutdown(WorkProxy.java:9
        at com.shadworld.poolserver.PoolServer.shutdown(PoolServer.java
        at com.shadworld.poolserver.PoolServer$1.run(PoolServer.java:23
Exchange Exception from: com.shadworld.poolserver.source.SingleWorkExch
java.io.EOFException: local close
        at org.eclipse.jetty.client.HttpConnection.close(HttpConnection
)
        at org.eclipse.jetty.client.HttpDestination.close(HttpDestinati
11)
        at org.eclipse.jetty.client.HttpClient.doStop(HttpClient.java:4
        at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(Abst
ycle.java:83)
        at com.shadworld.poolserver.source.WorkFetcherThread.shutdown(W
rThread.java:292)
        at com.shadworld.poolserver.source.WorkSource.shutdown(WorkSour
65)
        at com.shadworld.poolserver.WorkProxy.shutdown(WorkProxy.java:9
        at com.shadworld.poolserver.PoolServer.shutdown(PoolServer.java
        at com.shadworld.poolserver.PoolServer$1.run(PoolServer.java:23
Dumping workmap to file: C:\Documents and Settings\BitSec\Desktop\pools
3.1.01\tmp\workmap-8999.bin
Shutting down Web Server...
Closed 0 longpoll connections in 0ms
6344 [Thread-0] INFO org.eclipse.jetty.util.log - stopped o.e.j.s.Servl
Handler{/,null}
6485 [shutdown] INFO org.eclipse.jetty.util.log - stopped o.e.j.s.Servl
Handler{/,null}
Shutdown complete...
---------------------------------------------------------------
RETRY
RETRY
RETRY
getblocknumber respon
<!DOCTYPE HTML PUBLIC
"http://www.w3.org/TR
<HTML>
<HEAD>
<TITLE>Error</TITLE>
<META HTTP-EQUIV='Con
</HEAD>
<BODY><H1>401 Unautho
</HTML>

Shutting down poolser
6204 [Thread-0] INFO
lConnector@0.0.0.0:89
Flushing cached share
Flush shares cache co
Waiting to complete u
Finished upstream sub
Flushing final shares
All share submits flu
Waiting for threads t
Submit Throttling on:
6219 [Thread-0] INFO
letContextHandler{/,n
Dumping workmap to fi
3.1.01\tmp\workmap-89
Shutting down Web Ser
Closed 0 longpoll con
RETRY
RETRY
RETRY
InvalidJsonResponse
org.json.JSONExceptio
        at org.json.J
        at org.json.J
        at org.json.J
        at com.shadwo
ct.java:27)
        at com.shadwo
        at com.shadwo
ect.java:21)
        at com.shadwo

        at com.shadwo
se(WorkFetcherThread.
        at com.shadwo
(SingleWorkExchange.j
        at org.eclips
pExchange.java:920)
        at org.eclips
HttpEventListenerWrap
        at org.eclips
(SecurityListener.jav
        at org.eclips
)
        at org.eclips
onnection.java:622)
        at org.eclips
        at org.eclips

        at org.eclips
9)
        at org.eclips
dPoint.java:515)
        at org.eclips
Point.java:40)
        at org.eclips
.java:529)
        at java.lang.
11282 [Thread-0] INFO
tHandler{/,null}
11422 [shutdown] INFO
tHandler{/,null}
Shutdown complete...









I would like to try to figure out why this is happening seems it connects to the mysql database just fine but has other issues.... im running this on winxp and idk where to start. nothing connects. thanks in advance
Pages: « 1 [2] 3 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!