Click here to Skip to main content
13,147,383 members (29,231 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
QuestionAbout to get an android phone and coming from Blackberry... how to sync e-mail? Pin
Joan Murt24-May-14 8:54
professionalJoan Murt24-May-14 8:54 
AnswerRe: About to get an android phone and coming from Blackberry... how to sync e-mail? Pin
Ravi Bhavnani24-May-14 10:54
professionalRavi Bhavnani24-May-14 10:54 
GeneralRe: About to get an android phone and coming from Blackberry... how to sync e-mail? Pin
Joan Murt24-May-14 22:25
professionalJoan Murt24-May-14 22:25 
GeneralRe: About to get an android phone and coming from Blackberry... how to sync e-mail? Pin
Joan Murt8-Jun-14 4:07
professionalJoan Murt8-Jun-14 4:07 
GeneralRe: About to get an android phone and coming from Blackberry... how to sync e-mail? Pin
Ravi Bhavnani8-Jun-14 4:21
professionalRavi Bhavnani8-Jun-14 4:21 
JokeIt has to be a great movie. Pin
SoMad24-May-14 8:08
professionalSoMad24-May-14 8:08 
GeneralRe: It has to be a great movie. Pin
DaveAuld24-May-14 8:15
protectorDaveAuld24-May-14 8:15 
GeneralRe: It has to be a great movie. Pin
SoMad24-May-14 8:26
professionalSoMad24-May-14 8:26 
GeneralRe: It has to be a great movie. Pin
Mike Hankey24-May-14 9:36
memberMike Hankey24-May-14 9:36 
GeneralSPOILER ALERT! Pin
S u n s h i n e24-May-14 13:28
memberS u n s h i n e24-May-14 13:28 
GeneralHow to set about creating a Joomla extension. Pin
Brady Kelly24-May-14 5:23
memberBrady Kelly24-May-14 5:23 
GeneralRe: How to set about creating a Joomla extension. Pin
Marc Clifton24-May-14 7:25
protectorMarc Clifton24-May-14 7:25 
GeneralRe: How to set about creating a Joomla extension. Pin
Brady Kelly24-May-14 7:29
memberBrady Kelly24-May-14 7:29 
GeneralHelp with PHP API Code Pin
Jonas Chokun24-May-14 4:36
memberJonas Chokun24-May-14 4:36 
I'm running this bitcoin API code retriving the data from MtGox but it's not working any longer because they site is not up anymore. Goal is to now pull the info from blockchain.info/ticker or bitstamp.net/api/ticker/ or both tickers APIs. If you want to see an example you can go to bitcoinvalues.net. It's supposed to show on top of the site but there is not data.

1.<?php
 2.          //first fetch the current rate from MtGox
 3.          $ch = curl_init('https://mtgox.com/api/0/data/ticker.php');
 4.                  curl_setopt($ch, CURLOPT_REFERER, 'Mozilla/5.0 (compatible; MtGox PHP client; '.php_uname('s').'; PHP/'.phpversion().')');
 5.                  curl_setopt($ch, CURLOPT_USERAGENT, "CakeScript/0.1");
 6.                  curl_setopt($ch, CURLOPT_HEADER, 0);
 7.                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 8.                  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
 9.                  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 10.                  $mtgoxjson = curl_exec($ch);
 11.                  curl_close($ch);
 12. 
 13.          //decode from an object to array
 14.                  $output_mtgox = json_decode($mtgoxjson);
 15.                  $output_mtgox_1 = get_object_vars($output_mtgox);
 16.                  $mtgox_array = get_object_vars($output_mtgox_1['ticker']);
 17. 
 18.  ?>
 19.  <br/>
 20.  <br/>
 21.  Last: <?php echo $mtgox_array['last'];   ?><br/>
 22.  High: <?php echo $mtgox_array['high'];   ?><br/>
 23.  Low:  <?php echo $mtgox_array['low'];   ?><br/>
 24.  Avg:   <?php echo $mtgox_array['avg'];   ?><br/>
 25.  Vol:   <?php echo $mtgox_array['vol'];   ?><br/>

http://www.bitcoinvalues.net

GeneralRe: Help with PHP API Code Pin
OriginalGriff24-May-14 4:44
protectorOriginalGriff24-May-14 4:44 
GeneralRe: Help with PHP API Code Pin
Jörgen Andersson24-May-14 5:05
professionalJörgen Andersson24-May-14 5:05 
GeneralRe: Help with PHP API Code Pin
OriginalGriff24-May-14 5:14
protectorOriginalGriff24-May-14 5:14 
GeneralThe Clutch Saga Pin
Brady Kelly24-May-14 3:19
memberBrady Kelly24-May-14 3:19 
GeneralRe: The Clutch Saga Pin
OriginalGriff24-May-14 3:50
protectorOriginalGriff24-May-14 3:50 
GeneralRe: The Clutch Saga Pin
Brady Kelly24-May-14 4:23
memberBrady Kelly24-May-14 4:23 
GeneralRe: The Clutch Saga Pin
Member 419459324-May-14 4:29
memberMember 419459324-May-14 4:29 
GeneralRe: The Clutch Saga Pin
Keith Barrow24-May-14 4:23
mentorKeith Barrow24-May-14 4:23 
GeneralRe: The Clutch Saga Pin
Brady Kelly24-May-14 5:49
memberBrady Kelly24-May-14 5:49 
GeneralRe: The Clutch Saga Pin
Keith Barrow25-May-14 2:08
mentorKeith Barrow25-May-14 2:08 
GeneralRe: The Clutch Saga Pin
Brady Kelly25-May-14 4:09
memberBrady Kelly25-May-14 4:09 
GeneralRe: The Clutch Saga Pin
DaveAuld24-May-14 7:43
protectorDaveAuld24-May-14 7:43 
GeneralRe: The Clutch Saga Pin
Brady Kelly24-May-14 9:13
memberBrady Kelly24-May-14 9:13 
GeneralRe: The Clutch Saga Pin
mngerhold27-May-14 1:50
membermngerhold27-May-14 1:50 
GeneralRe: The Clutch Saga Pin
Brady Kelly27-May-14 2:13
memberBrady Kelly27-May-14 2:13 
GeneralNot mentioning the war Pin
Garth J Lancaster24-May-14 3:13
memberGarth J Lancaster24-May-14 3:13 
GeneralRe: Not mentioning the war Pin
JimmyRopes24-May-14 3:56
memberJimmyRopes24-May-14 3:56 
GeneralRe: Not mentioning the war Pin
Kenneth Haugland24-May-14 4:05
professionalKenneth Haugland24-May-14 4:05 
GeneralRe: Not mentioning the war Pin
tgrt24-May-14 5:57
membertgrt24-May-14 5:57 
GeneralRe: Not mentioning the war Pin
CPallini24-May-14 9:37
mvpCPallini24-May-14 9:37 
GeneralRe: Not mentioning the war Pin
Garth J Lancaster25-May-14 19:35
memberGarth J Lancaster25-May-14 19:35 
GeneralRe: Not mentioning the war Pin
CPallini25-May-14 21:14
mvpCPallini25-May-14 21:14 
GeneralRe: Not mentioning the war Pin
Garth J Lancaster26-May-14 6:59
memberGarth J Lancaster26-May-14 6:59 
GeneralRe: Not mentioning the war Pin
CPallini26-May-14 7:56
mvpCPallini26-May-14 7:56 
GeneralBack from trip Pin
Mike Hankey24-May-14 2:12
memberMike Hankey24-May-14 2:12 
GeneralRe: Back from trip Pin
Jörgen Andersson24-May-14 2:32
professionalJörgen Andersson24-May-14 2:32 
GeneralRe: Back from trip Pin
Mike Hankey24-May-14 2:40
memberMike Hankey24-May-14 2:40 
GeneralRe: Back from trip Pin
Marc Clifton24-May-14 7:20
protectorMarc Clifton24-May-14 7:20 
GeneralRe: Back from trip Pin
Mike Hankey24-May-14 7:36
memberMike Hankey24-May-14 7:36 
GeneralMVC 5 Download Pin
John Simmons / outlaw programmer24-May-14 1:40
memberJohn Simmons / outlaw programmer24-May-14 1:40 
GeneralRe: MVC 5 Download Pin
OriginalGriff24-May-14 1:45
protectorOriginalGriff24-May-14 1:45 
GeneralRe: MVC 5 Download Pin
BillWoodruff24-May-14 3:05
memberBillWoodruff24-May-14 3:05 
GeneralRe: MVC 5 Download Pin
DaveX8624-May-14 3:10
memberDaveX8624-May-14 3:10 
GeneralRe: MVC 5 Download Pin
John Simmons / outlaw programmer24-May-14 3:26
memberJohn Simmons / outlaw programmer24-May-14 3:26 
GeneralRe: MVC 5 Download Pin
DaveX8624-May-14 3:31
memberDaveX8624-May-14 3:31 
GeneralRe: MVC 5 Download Pin
BillWoodruff24-May-14 4:39
memberBillWoodruff24-May-14 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 24 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid