B
ben
Guest
Ok, so I want use the PHP command fwrite to write stuff in a file...(duh)..and I want it to write this...
<?php
include("top.php");
include("databaseinfo.php");
echo "<embed src="Asteroids_IV.swf" width="15" height="15" allowscriptaccess="always" allowfullscreen="true" flashvars="file=playlist.xml&autostart=true" />";
include("end.php");
?>
Here is the code that I use for that...
$Data = "<?php
include(\"top.php\");
include(\"databaseinfo.php\");
echo \"<embed src=\"$mainfilename\" width=\"$width\" height=\"$height\" allowscriptaccess=\"always\" allowfullscreen=\"true\" flashvars=\"file=playlist.xml&autostart=true\" />\";
include(\"end.php\");
?>";
fwrite($Handle, $Data);
fclose($Handle);
BUT it writes it like this...
<?phpinclude("top.php");include("databaseinfo.php");echo "<embed src="Asteroids_IV.swf" width="15" height="15" allowscriptaccess="always" allowfullscreen="true" flashvars="file=playlist.xml&autostart=true" />";include("end.php");?>
How do I make it write the break a line while writing the file...??
Thanks!
<?php
include("top.php");
include("databaseinfo.php");
echo "<embed src="Asteroids_IV.swf" width="15" height="15" allowscriptaccess="always" allowfullscreen="true" flashvars="file=playlist.xml&autostart=true" />";
include("end.php");
?>
Here is the code that I use for that...
$Data = "<?php
include(\"top.php\");
include(\"databaseinfo.php\");
echo \"<embed src=\"$mainfilename\" width=\"$width\" height=\"$height\" allowscriptaccess=\"always\" allowfullscreen=\"true\" flashvars=\"file=playlist.xml&autostart=true\" />\";
include(\"end.php\");
?>";
fwrite($Handle, $Data);
fclose($Handle);
BUT it writes it like this...
<?phpinclude("top.php");include("databaseinfo.php");echo "<embed src="Asteroids_IV.swf" width="15" height="15" allowscriptaccess="always" allowfullscreen="true" flashvars="file=playlist.xml&autostart=true" />";include("end.php");?>
How do I make it write the break a line while writing the file...??
Thanks!