Hello!
We are running php 4.3.10
Therefore I need to use php_put_contents through
pear.
Thats what my file looks like:
<?php
require_once 'php/Compat/Function/file_put_contents.php';
$i=0;
while ($i <= 5){
$myArray[$i]="element position $i";
print("dollar-i er nå lik $i<br>\n" );
$i= $i + 1;
}
file_put_contents("array.txt", $myArray);
?>
Im not sure this is related to using a pear version or not, but I get a
Warning: file_put_contents() failed to open stream: Permission denied
Greatful to any clues!
Thanks!!