Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Thomas Björk  >  Evaluate  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: A simple exampl
Class: Evaluate
Extend the eval function to allow non-php content
Author: By
Last change: Improved the example
Date: 11 years ago
Size: 291 bytes
 

Contents

Class file image Download
<?php
include("evaluate.php");

$eval = new evaluate();
$output $eval->mixeval("<B><?php include(\"obi.php\"); ?></B> <I><? echo \"Hello\";?></I> <U>there</U>");
// Handle output here
echo $output;

$output $eval->mixevalfile("obi.php");
// Handle output here
echo $output;
?>