Hi all i am running a php scrip on my local IIS server but whenever i run it i get the following erros . coud any one help me fix them.Thanks
Errors:
Code:
<?
//collect all the form variables
$str_hostname = trim($HTTP_POST_VARS["hostname"]);
$str_user = trim($HTTP_POST_VARS["user"]);
$str_pass = trim($HTTP_POST_VARS["pass"]);
$str_db = trim($HTTP_POST_VARS["db"]);
$str_rootdir = trim($HTTP_POST_VARS["rootdir"]);
$str_audiodir = trim($HTTP_POST_VARS["audiodir"]);
$str_url = trim($HTTP_POST_VARS["url"]);
$str_email = trim($HTTP_POST_VARS["email"]);
$str_avatardir = trim($HTTP_POST_VARS["avatardir"]);
$str_pgtitle = trim($HTTP_POST_VARS["pgtitle"]);
$setting = 1;
if($HTTP_GET_VARS["install"] == 1)
{
$fp = fopen('../sources/configure.php', 'w');
}
header("location:success_configure.php");
?>
Errors:
Code:
Warning: fopen(../sources/configure.php): failed to open stream: Permission denied in c:\inetpub\[URL unfurl="true"]wwwroot\Music\install\install.php[/URL] on line 20
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\[URL unfurl="true"]wwwroot\Music\install\install.php:20)[/URL] in c:\inetpub\[URL unfurl="true"]wwwroot\Music\install\install.php[/URL] on line 23