Hello everyone,
Hereis my code :
<?php
if(!isset($_SESSION['user_id'])){
session_start();
}
$user_id = $_SESSION['user_id'];
echo "user_id: ".$user_id."<br/>";
echo 'uploads/'.$user_id.'DetailedStatement.html<br/>';
//Insert statement into a string
$homepage = file_get_contents('uploads/'.$user_id.'DetailedStatement.html' , 'r+') or die("Unable to open file!");;
Here is a screenshot of my uploads directory:
And here is the error message screenshot :
What is wrong here ?
How can it be resolved ?