AbyssalLord
Member
I am trying to use the fopen() function to create a file, but I keep getting this error:
That part of the code looks like this:
The post info is "test.php".
Any idea why I'm getting that error and how I can fix it? Thanks in advance for the help.
Warning: fopen(test.php) [function.fopen]: failed to open stream: Permission denied in /home/a3150657/public_html/admin.php on line 87
That part of the code looks like this:
Code:
<?php
$name = $_POST['name'];
$file = fopen($name,'x');
?>
The post info is "test.php".
Any idea why I'm getting that error and how I can fix it? Thanks in advance for the help.