am I running into this wall of:
Warning: fopen("fprice04.asc", "r+") - Permission denied in /home/.fadei/usawares/usawares.net/test/test.php on line 88
Any time I try to open a file outside of the normal "r" it spits out the above error ie "r+" "w".... Does anyone know what is going on with this type of error?? very strange...
anyone know about this one??
Here is the code:
$handle1 = fopen("fprice03.asc", "r");
$i=0;
while (!feof ($handle1))
{
$buffer = fgets($handle1, 4096);
$arr2[$i] = str_split1($buffer,56);
$i =$i++;
}
fclose ($handle1);
$handle2 = fopen("fprice04.asc", "r+");///this is where the error is
for($j=0;$j>$_SESSION['arr1Len'];$j++)
{
fwrite($handle2,$arr2[$i]).'\n';
}
fclose ($handle2);