PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Vivek moyal   PHP Google Image Sitemap Generator   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Main file to call the function
Class: PHP Google Image Sitemap Generator
Create sitemap for images from MySQL records
Author: By
Last change:
Date: 9 years ago
Size: 543 bytes
 

Contents

Class file image Download
<?php
/**
 * Description of imageSitemap
 *
 * @author Vivek
 */

// Please do not change the limit more than 1000 in a single file as it will not be considered by the google.
//There is a limit of 1000 URL's in a image sitemap
// tutorial Demo Link - http://www.vivekmoyal.in/create-google-image-sitemap-using-mysql-and-php-dom/

//$name = this is your sitemap file name
//$tablename = this is your database table name
include_once './imageSitemap.php';
$sitemap=new imageSitemap();
$sitemap->createSitemap($name, $tablename);