Hello there i have the problem that i always get an 505 http error. this is how the code was in the beginning:
<?php
include("FW\access_check.php");
$redirect = canAccess();
if ($redirect != null) {
echo "hey => $redirect";
} else {
echo "ciao?";
}
?>
there i got this error:
PHP Fatal error: Call to undefined function canaccess() in /var/www/html/index.php in line 3
i was looking for solution and than I tried to add $this like here:
<?php
include("FW\access_check.php");
$this $redirect= canAccess();
if ($redirect != null) {
echo "hey => $this $redirect";
} else {
echo "ciao?";
}
?>
But than i get the Error from the topic in detail:
PHP Parse error: syntax error, unexpected '$redirect' (T_VARIABLE) in /var/www/html/index.php on line 3
Please advise me how i can solve my problem! thank you in advance!