1 Replies - 1344 Views - Last Post: 06 April 2001 - 02:12 PM Rate Topic: -----

#1 Paradox  Icon User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 432
  • Joined: 03-March 01

more php

Posted 05 April 2001 - 05:33 PM

$updateinfo = array($title,$description);
$updateimploded = "<?
$title = "";
$updateimploded .= implode(""
$var = "",$updateinfo);
$updateimploded .= ""
?>"
$update = fopen("quizdata.php","w+");
fwrite($update, $updateimploded);
fclose($update);

i'm trying to dynamically create a php file that looks like a more complex version of this:

<?
$title = "title here";
$description = "description here";
?>


Is This A Good Question/Topic? 0
  • +

Replies To: more php

#2 Paradox  Icon User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 432
  • Joined: 03-March 01

Re: more php

Posted 06 April 2001 - 02:12 PM

i figured it out. hee hee hee...

$updateinfo = array(1=>$title, 2=>$description, 3=>$rowcolor, 4=>$font, 5=>$tablebg, 6=>$textcolor, 7=>$bgcolor, 8=>$maxscore);
$updateinfo2 = array(1=>$title2, 2=>$description2, 3=>$rowcolor2, 4=>$font2, 5=>$tablebg2, 6=>$textcolor2, 7=>$bgcolor2, 8=>$maxscore2);
$updateimploded = "<?
$title = "$title";
for($i=2;$i<9;$i++){ $updateimploded .= "";
$$updateinfo2[$i] = "$updateinfo[$i]"; }
$updateimploded .= "";
$score = 0;
?>";
$update = fopen("quizdata.php","w+");
fwrite($update, $updateimploded);
fclose($update);

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1