doesnt work after purchasing with new system

142 views
Skip to first unread message

Mohammed Al Sarraf

unread,
Oct 16, 2011, 3:48:29 AM10/16/11
to dgcsc-xml-...@googlegroups.com
hi
i used to have the gold price retrieved to my website automaticly, but now after purchasing the with the new system, the price is not showing up, could you please fix my code.
 
<?php
$xml = new SimpleXMLElement('http://xml.dgcsc.org/xml.cfm?password=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&action=GoldB',null,true);
$names = $xml->xpath("/GoldPrice/Price[@currencycode = 'USD']/*");
$dollar = 3.67;
$namestwentyfoure= bcmul($names[0], 1,2);
$kg= bcmul($names[0], 995,2);
$ounce= bcmul($names[0], 31.1034768,2);
$totalkg= bcmul($kg, $dollar,2);
$tentola= bcmul($ounce, 13.775,2);
$tentolausd= bcmul($ounce, 3.75340599,2);
$totalounce= bcmul($ounce, $dollar,2);
$totaltwentyfore= bcmul($names[0], $dollar,2);
$twentytwo= bcmul($names[0], 0.917,2);
$totaltwentytwo= bcmul($twentytwo, $dollar,2);
$twentyone= bcmul($names[0], 0.880,2);
$totaltwentyone= bcmul($twentyone, $dollar,2);
$eighteen= bcmul($names[0], 0.75,2);
$totaleighteen= bcmul($eighteen, $dollar,2);
echo
"
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>Al Sarraf Jewellery</title>
</head>
<div align=\"center\">
<table border=\"0\" width=\"100%\">
 <tr>
  <td>
  <p align=\"center\"><font size=\"7\">
  <span style=\"font-weight: 400; font-style:italic\">
     <b>Al Sarraf Jewellery LLC</b></span></font></td>
 </tr>
</table>
<hr>
<table border=\"0\" width=\"59%\">
 <tr>
  <td align=\"center\">
  <address align=\"center\">
   <span style=\"font-style: normal; font-weight: 700\"><font size=\"4\">
   This page will refresh automatically every 1 minute.</font></span></address>
  </td>
 </tr>
</table>
<table border=\"3\" width=\"59%\">
 <tr>
  <td width=\"101\"><b>Currency</b></td>
  <td width=\"101\" align=\"center\">1KG .995</td>
  <td width=\"101\" align=\"center\">10 Tola</td>
  <td width=\"101\" align=\"center\">Ounce</td>
  <td width=\"101\" align=\"center\">24K</td>
  <td width=\"101\" align=\"center\">22K</td>
  <td width=\"101\" align=\"center\">21K</td>
  <td width=\"101\" align=\"center\">18K</td>
 </tr>
 <tr>
  <td width=\"101\"><b>USD</b></td>
  <td width=\"101\" align=\"center\">$kg</td>
  <td width=\"101\" align=\"center\">$tentolausd</td>
  <td width=\"101\" align=\"center\">$ounce</td>
  <td width=\"101\" align=\"center\">$namestwentyfoure</td>
  <td width=\"101\" align=\"center\">$twentytwo</td>
  <td width=\"101\" align=\"center\">$twentyone</td>
  <td width=\"101\" align=\"center\">$eighteen</td>
 </tr>
 <tr>
  <td width=\"101\"><b>AED</b></td>
  <td width=\"101\" align=\"center\">$totalkg</td>
  <td width=\"101\" align=\"center\">$tentola</td>
  <td width=\"101\" align=\"center\">$totalounce</td>
  <td width=\"101\" align=\"center\">$totaltwentyfore</td>
  <td width=\"101\" align=\"center\">$totaltwentytwo</td>
  <td width=\"101\" align=\"center\">$totaltwentyone</td>
  <td width=\"101\" align=\"center\">$totaleighteen</td>
 </tr>
</table>
</div>
<div align=\"center\">
 &nbsp;<table border=\"0\" width=\"34%\">
  <tr>
   <td align=\"center\">
   <address>
    XXXXXXXXXXX</address>
   <address>
    XXXXXXXXX</address>
   <address>
    XXXXXXXXX</address>
   <address>
    XXXXXXXXXXXXx</address>
   </td>
   <td align=\"center\" dir=\"rtl\">
   <address>
    <span lang=\"ar-iq\">&#1575;&#1604;&#1587;&#1608;&#1602; &#1575;&#1604;&#1605;&#1585;&#1603;&#1586;&#1610;</span></address>
   <address>
    <span lang=\"ar-iq\">&#1605;&#1581;&#1604; &#1585;&#1602;&#1605; 23, &#1576;&#1604;&#1608;&#1603; &#1585;&#1602;&#1605; 8</span></address>
   <address>
    <span lang=\"ar-iq\">&#1589;.&#1576;: 3425, &#1575;&#1604;&#1588;&#1575;&#1585;&#1602;&#1607;</span></address>
   <address>
    <span lang=\"ar-iq\">&#1575;&#1604;&#1571;&#1605;&#1575;&#1585;&#1575;&#1578; &#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1607; &#1575;&#1604;&#1605;&#1578;&#1581;&#1583;&#1577;</span></address>
   </td>
  </tr>
  <tr>
   <td align=\"center\" colspan=\"2\">
   <address>
    Tel: XXXXXXXXXX</address>
   <address>
    Fax: XXXXXXXXX</address>
   </td>
   </tr>
 </table>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <table border=\"0\" width=\"100%\">
   <td align=\"center\">Copyright 2011
   <a href=\"http://alsarrafjewellery.com\">alsarrafjewellery.com</a>.
   <a href=\"mailto:XXXXXXXXXXXXXX\">Web Master\n";
?>

DGCSC XML Price Service

unread,
Oct 16, 2011, 4:12:25 AM10/16/11
to dgcsc-xml-...@googlegroups.com

cheryl leack

unread,
Oct 19, 2011, 4:12:27 AM10/19/11
to dgcsc-xml-...@googlegroups.com
Hi Mohammed, when we purchased the gold feed we had to make sure we opened up the firewall to accept feeds from this site. We've not had to change any code at all for it to continue working.
Reply all
Reply to author
Forward
0 new messages