Jump to content

[SOLVED] fwrite new line


maxudaskin

Recommended Posts

This is what I got so far...

 

$my_t=getdate(date("U"));
						echo '<span class="fpln">';
						echo 'OOM'.$_SESSION["username"].' '.$_POST['dept'].'-'.$_POST['dest'].' '.$my_t[mday].'.'.$my_t[month].'.'.$my_t[year].'/'.$my_t[hours].''.$my_t[minutes];
						echo '<br />';
						echo '</span>';
$text = $_SESSION["username"].' '.$_POST['dept'].'/'.$_POST['dest'].' '.$my_t[mday].'.'.$my_t[month].'.'.$my_t[year].'_'.$my_t[hours].''.$my_t[minutes].' \n Line 2';
$filename = 'OOM'.$_SESSION["username"].'_'.$_POST['dept'].'-'.$_POST['dest'].'_'.$my_t[mday].' '.$my_t[month].' '.$my_t[year].'_'.$my_t[hours].''.$my_t[minutes].' '.$my_t[minutes].'.txt';
$file = fopen("../ops/fplns/".$filename,"w");
echo fwrite($file,$text);
fclose($file);
echo '<a href="fplns/'.$filename.'">Download Flight Plan</a>';

 

It shows the information then inserts it into the txt file...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.