Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of David Barnes  >  PHP Movie Listings  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP Movie Listings
Get list of movie presentations in near theatres
Author: By
Last change:
Date: 7 years ago
Size: 630 bytes
 

Contents

Class file image Download
<?php
// This is a simple example of how to use the movie listing class
// There is also an attached example .css file, customize this to customize the look of the listings
?>
<html>
<head>
<title>phpMovieListings</title>
<link rel="stylesheet" type="text/css" href="example.css">
</head>
<body>
<?php
// Require the class file
require_once('phpMovieListings.php');
//  Create object
$listings = new phpMovieListings('04105','images/'); // Replace 04105 with your zip code, and change images/ to the folder where you will keep the images

// echo the listings
echo $listings->showListings();
?>
</body>
</html>