Login   Register  
PHP Classes
elePHPant
Icontem

File: update.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Artur Barseghyan  >  PHP TLD Domain Name  >  update.php  >  Download  
File: update.php
Role: Application script
Content type: text/plain
Description: Update script to be used from command line
Class: PHP TLD Domain Name
Determine the Top Level Domain from a given URL
Author: By
Last change: License update
Date: 1 year ago
Size: 408 bytes
 

Contents

Class file image Download
<?php
/**
 * @package Tld
 * @author Artur Barseghyan (artur.barseghyan@gmail.com)
 * @version 0.1
 * @license MPL 1.1/GPL 2.0/LGPL 2.1
 * @link http://bitbucket.org/barseghyanartur/php-tld
 *
 * Commands for updating the TLD names file from command line.
 */

require 'utils.php';

Tld::updateTldNames();
echo 
sprintf("File %s has been successfully updated!" PHP_EOLTld::NAMES_LOCAL_PATH);