Jump to content

CrazyPig83

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

CrazyPig83's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi dcro2, Ya...i think its actually server issue if you guys can get it to work. Thanks for helping out guys...i will check with my server provider. Thanks, Victor
  2. Hi Sasa, Thanks for testing it for me....strangely im still getting no value in return. Do you happen to know what could be the cause ? Thank you, Victor
  3. Hi jskarr1982, I'm working on a website which is very similar with you. I just need the silver spot price but i cant seem to get the codes correct. Anyone can help me out abit here ? im losing hair fast >.< <?php $file = file_get_contents("http://www.apmex.com/Category/503/Silver.aspx"); $do = preg_match('/<span id="ctl10_ctl00_MetalInfo1_lblAsk">(.*)<\/span>/', $file, $matches); if ($do) { $no_dollar = $matches; $dollar = $no_dollar['1']; echo $dollar; } else { echo "No Price"; } ?> <?php echo $dollar; ?> I'm get No Price output but i had double check the span id and the url and the source code...its all correct =( Thanks, Victor
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.