I am trying to generate new address for each wallet using blockchain API using the following code:
<?php
$guid = "7c74bb77-4e25-4eea-a9d3-df1cf6a9d218";
$main_password = "******";
$label = "firsttym";
$json_url = "http://localhost:3000/merchant/$guid/new_address?
password = $main_password & label = $label";
$json_data = file_get_contents($json_url);
$json_feed = json_decode($json_data ,true);
$message = $json_feed->message;
$txid = $json_feed->tx_hash;
?>
I get the following error:
Warning: file_get_contents(localhost:3000/merchant/7c74bb77-4e25-4eea??-a9d3-df1cf6a9d218/…??) [function.file-get-contents]: failed to open stream:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
in C:\wamp\www\block\first.php on line 8
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\block\first.php on line 8
How to solve this?