Hi,
Thanks for your advice maybl8r03, it seems to be OK now, apart from the problem below:
<?php
$Directory = 4656;
$File = "index.html";
$FilePointer = fopen($Directory/$File, "w");
fwrite($FilePointer, "my data here");
fclose($FilePointer);
?>
When the above is executed, the it produces the errors below:
Warning: Division by zero in /home/user/public_html/php/url/test.php on line 6
Warning: fwrite(): supplied argument is not a valid stream resource in /home/user/public_html/php/url/test.php on line 7
Warning: fclose(): supplied argument is not a valid stream resource in /home/user/public_html/php/url/test.php on line 8
Cant figure out where im going wrong. It may appear that it is a very simple mistake, but as a beginner to PHP, I cant find the problem.
Mike