(Linux)
In the following code all I'm trying to do is open a file but evertime I run this script the fopen function jumps right to the die() function. Any ideas? The file accounts.txt does exist in the same directory, and I also tried refrencing the file via ./accounts.txt .
<?php
$email = $_POST['email'];
$psswd = $_POST['psswd'];
echo "The email address is $email<br>";
echo "The password is $psswd<br>";
$file = fopen("accounts.txt", 'r+') or die("Failed to open file");
?>