How to make a directory then write file to that directory using variables
<pre><code>mkdir("Business_Pages/".$username);
$fp = fopen("Business_Pages/$username".$username".html", "w");

fwrite($fp, "&lt;html&gt; &lt;head&gt; &lt;link rel='stylesheet' href='index.css'&gt;  &lt;/head &lt;/html&gt;");

fclose($fp);
</code></pre>

<p>Im trying to make a directory in Business_Pages that works but im also creating a file in that newly created directory named what ever the name of the html input is. Im basically trying to the the variable $username at the end of the pathname but that doesnt work</p>
