PHP Classes

File: ajax/b.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria  >  PHP Lorem-Ipsum Generator Class  >  ajax/b.php  >  Download  
File: ajax/b.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Lorem-Ipsum Generator Class
Generate fake text to test page presentation
Author: By
Last change: Inversion of the information in the header DocBlock
Better practical for the example to use the Lorem Ipsum class.
Date: 2 months ago
Size: 899 bytes


Class file image Download
 * @category Lorem Ipsum Generator
 * @package String
 * @author Pierre-Henry Soria <>
 * @copyright (c) 2013, Pierre-Henry Soria. All Rights Reserved.
 * @link
 * @license GNU General Public License <>

define('PH', 1);

dirname(dirname(__FILE__)) . '/lib/LoremIpsum.class.php';
dirname(dirname(__FILE__)) . '/lib/misc.fns.php';

$sNumWords = (!empty($_POST['count'])) ? $_POST['count'] : 300;
$sFormat = (!empty($_POST['format'])) ? $_POST['format'] : '';

$iFormat = getLoremIpsumFormat($sFormat);

// Create LoremIpsum object
$oLoremIpsum = new LoremIpsum($sNumWords, $iFormat);

// Output LoremIpsum's contents
echo $oLoremIpsum;
Exception $oE)

For more information send a message to info at phpclasses dot org.