Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gerbrand van DIeijen  >  PHPQuote for Quote.com  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Sample usage
Class: PHPQuote for Quote.com
Retrieve stock quote information from quote.com
Author: By
Last change: Change of filename.
Date: 8 years ago
Size: 326 bytes
 

Contents

Class file image Download
<?

/*
This file will demonstrate the usage of phplycosquote.inc.php
*/
require_once "phpquote_com.inc.php";

$q=new php_lycosquote();

$ticker="CME:NQ06M";
$q->get_single_quote($ticker);

if (! 
$q) {
    die(
"Error while retrieving $ticker");
}
$last=$q->Last;
                        
?>

Koers van <? echo $q->Symbol ?> is <?echo $q->Last?>.