View Single Post
  #2 (permalink)  
Old Nov 13th, 2007, 16:08
alexgeek's Avatar
alexgeek alexgeek is online now
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,803
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: dynamically create php script

Have you tried something like this? I don't know whether it will work or not.
PHP: Select all

include 'connectdb_techs.php';
  include 
'input_check.php';
  
$area sql_quote($_POST['state']);
  if (
$area == '') { $area sql_quote($_GET['state']); }
  
$cat sql_quote($_POST['cat']);
  if (
$cat == '') { $cat sql_quote($_GET['cat']); } 
in a file called script.php (or a more suitable name) then use:
PHP: Select all

$stringData file_get_contents('script.php'); 

Reply With Quote