Login   Register  
PHP Classes
elePHPant
Icontem

File: dyn_php_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Svetoslav Marinov  >  dyn_php  >  dyn_php_example.php  >  Download  
File: dyn_php_example.php
Role: Example script
Content type: text/plain
Description: example of dyn_php php class
Class: dyn_php
Generate PHP code programmatically
Author: By
Last change:
Date: 2006-02-23 13:06
Size: 394 bytes
 

Contents

Class file image Download
<?php
    
    
require_once("dyn_php.class.php");
    
    
$obj =& new dyn_php();
    
    
$obj->add_scalar("test"'test_value\'" inserting quotes');
    
$obj->add_constant("test"'test_value\'" inserting quotes');
    
$obj->add_constant("const""const_value");
    
$obj->add_array("test", array("var1"));
    
    if (
$obj->code("dyn_php_test.php") ) 
        print 
"Saved...\n";
    else 
        print 
$obj->error();

?>