Location: PHPKode > scripts > PHP Movie Listings > php-movie-listings/example.php
<?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>
Return current item: PHP Movie Listings