ok thanks lopardo i'll take a look at that.
I've come across antoher problem. When writeing php code to a file with php code how do you write the $varibles without them not being written.
like this:
code:
$file5 = fopen("sdata/$hits/$hits.php","w");
fwrite($file5,"<?php
$filenamesong50 = 'sdata/$hits/$hits.rev';
$html50 = '<table border='1' width='100%' id='table1' bordercolor='#000000' style='border-collapse: collapse'>
<tr>
<td>$rate /10</td>
</tr>
<tr>
<td>$name</td>
</tr>
<tr>
<td>$review</td>
</tr>
</table>
<hr color='#000000'>\n';
$fp50 = fopen($filenamesong50, 'w');
fputs($fp50, $html50) or die('Could not open file!');
fclose($fp50);
?>");
fclose($file5);