im using wamp5 as local server on my computer,
my problem is that when im trying to upload the site files
to outher hosting the fopen() function dosent work =.
i made the attribute "777" even thught i think that 644 good as well.
this is that i get " unable to read file".
the code
$content=fopen(".../intro/welcome.php","r+") or exit("unable to read file");;
echo '<textarea wrap=ON rows="20" cols="50" id ="content" name="content" >';
$lines = file('.../intro/welcome.php');
foreach ($lines as $line_num => $line)
{
$linesnum = $line_num;
}
$lines = file('.../intro/welcome.php');
foreach ($lines as $line_num => $line)
{
if($line_num < $linesnum-1){
echo $line;
}
}
echo '</textarea><br><br>';
?>
<input type="submit" name="Pview" value="תצוגה מקדימה">
<input type="submit" name="submit" value="שנה">