lampbabu
02-14-2006, 09:43 AM
i got a problem when i am creating the file through PHP Program in LINUX O/S Machine..the code is as shown below..
<?php
$phpfile="demo_php.php";
$phpfile=$_SERVER['DOCUMENT_ROOT'].$phpfile;
$content="ABCDEF";
$handle=fopen($phpfile,"w")
/*
assume phpfile not exist ,the create the file and open that file in the write mode.
*/
fwrite($handle,$content);
?>
error is : No Permission to create the file....
i set the permissions 0777 to that folder
<?php
$phpfile="demo_php.php";
$phpfile=$_SERVER['DOCUMENT_ROOT'].$phpfile;
$content="ABCDEF";
$handle=fopen($phpfile,"w")
/*
assume phpfile not exist ,the create the file and open that file in the write mode.
*/
fwrite($handle,$content);
?>
error is : No Permission to create the file....
i set the permissions 0777 to that folder