title: How you use fopen/fwrite on a js file?
body: <p>I am trying to do this </p>
  
  <pre><code>$fp = fopen('all.js', 'w');
  fwrite($fp, 'sddddddddddddddddddddd');
  echo "&lt;script src=\"/inc/all.js\" type=\"text/javascript\"&gt;&lt;/script&gt;";
  </code></pre>
  
  <p>but the file is always empty...can you use fwrite on a js file and write to it...i checked permissions and all is good there...any ideas?</p>