RE: [PHP] got the code
| From: | Rick Emery | Date: | Mon, 18 Feb 2002 17:29:25 +0000 |
| Subject: | RE: [PHP] got the code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85232@lists.php.net to get a copy of this message | ||
First, where is $inst set prior to being echoed and tested?
second, please stop changing the subject. It makes following the thread
very difficult.
-----Original Message-----
From: John Gurley [mailto:john_g83@hotmail.com]
Sent: Monday, February 18, 2002 11:25 AM
To: php-general@lists.php.net
Subject: [PHP] got the code
here is a larger chunk of the code:
<html>
<body background = "backgrnd.gif" text = ff8c00 link = ffffff vlink =
ffff00 >
</body>
</html>
<?
$f=fopen("/home/jgurley/www/test.txt","w");
?>
<html>
<center>
<h1>WEB BASED MUSIC COMPOSITION</h1>
<hr>
<font size ="6"> Enjoy the Tune </font>
<hr>
<br>
<font size = "4">Tone Row:</font>
</center>
</html>
<?
fwrite($f,"2\n");
fwrite($f,"$tune\n");
fwrite($f,"$tempo\n");
fwrite($f,"$form\n");
fwrite($f,"$tonerow\n");
fwrite($f,"1\n");
fwrite($f,"tune.sco\n");
fwrite($f,"3\n");
fclose($f);
echo($inst);
if($inst == '2');
{
$fp = fopen("xtune.sco","r");
$txtarr = array();
$linenum = 1;
$linetext = " ";
while (!feof($fp))
{
$ch = fgetc($fp);
$linetext .= $ch;
if ($ch =="\n")
{
$txtarr[$linenum] = $linetext;
$linenum++;
$linetext = " ";
}
}
$txtarr[2] = "f1 0 512 10 1 .9 .9 .8 .7 .33\n";
$remove = "rm xtune.sco";
$remove;
$change = fopen("xtune.sco","w");
$line = $linenum;
$n=0;
print_r($txtarr);
while ($n <= $line)
{
fwrite($change,$txtarr[$n]);
$n++;
}
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php