in php with the fopen code
<p>I'm trying to create a php page with <code>fopen()</code> this php file will house the passwords and usernames for my clients database info like host adress and stuff like that, but when I try stuff like this:</p>

<pre><code>$filename = "pass.php";
$ourfile = fopen($filename, '&lt;?php session_start(); ?&gt;') or die(mysql_error());
fclose($ourfile);
</code></pre>

<p>It just rejects it and says:</p>

<blockquote>
  <p>Warning: fopen(pass.php) [function.fopen]: failed to open stream: No
  error in C:\wamp\www\forum\installer\checkinstall.php on line 12</p>
</blockquote>

<p>I want to have something like:</p>

<pre><code>&lt;?php
session_start();
$dbhost = "localhost";
$dbname = "hey";
$dbuser = "root";
$dbpass = "";
?&gt;
</code></pre>

<p>but ever time it just wips out that error.</p>
