Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Jond2

Members
  • Joined

  • Last visited

Everything posted by Jond2

  1. Hey, I'm trying to do the same, My thread: viewtopic.php?f=45&t=784299 If it helps, Heres my code so far (I'm also having problems, with grabbing the price, and displaying it): <?php $ch = curl_init(); $id = "9004"; curl_setopt($ch, CURLOPT_URL, "http://itemdb-rs.runescape.com/viewitem.ws?obj=".$id); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); $string = $output; if(preg_match("/price+(?=:)/", $string, $match)) { print_r($match); echo $match[0]; }else{ echo 'No match found'; } ?>
  2. Ok, so I'm developing an application which needs to be able to grab prices from the Grand Exchange. Much like the Tip.it Item's database currently does. Here is my code so far: <?php $ch = curl_init(); $id = "9004"; curl_setopt($ch, CURLOPT_URL, "http://itemdb-rs.runescape.com/viewitem.ws?obj=".$id); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); $string = $output; if(preg_match("/price+(?=:)/", $string, $match)) { print_r($match); }else{ echo 'No match found'; } ?> My problem is that it displays the $match as an array. I'm not really a PHP wizard so I need to know how I would 'Fetch' the infomation from the Array. Any help would be much appreciated. Thanks, Jon.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.