Les dejo el codigo:
Código PHP:
<?php
$archivo = ($_POST['ncap']).'.php';
$fp = fopen($archivo, "w");
$string = stripslashes("
<title>Anime ~ Capitulo ",$_POST['ncap'],"</title>
<script type=\"text/javascript\" src=\"player/flowplayer-3.2.10.min.js\"></script>
<a href=\"",$_POST['link'],"\" style=\"display:block;width:790px;height:421px;\" id=\"player\"></a>
<script>flowplayer(\"player\", \"player/flowplayer-3.2.11.swf\");</script>
");
$write = fputs($fp, $string);
fclose($fp);
?>
Solucion:
Código PHP:
<?php
$cap = $_POST['ncap'];
$link = $_POST['link'];
$archivo = ($cap).'.php';
$fp = fopen($archivo, "w");
$string = stripslashes("
<title>Anime ~ Capitulo $cap</title>
<script type=\"text/javascript\" src=\"player/flowplayer-3.2.10.min.js\"></script>
<a href=\"$link\" style=\"display:block;width:790px;height:421px;\" id=\"player\"></a>
<script>flowplayer(\"player\", \"player/flowplayer-3.2.11.swf\");</script>
");
$write = fputs($fp, $string);
fclose($fp);
?>