May I am wrong, but i think this codei posted below should work. Any of the PHP-Code won’t be executed from line 1 – 10 and 100 – 106. I already tested it on my XAMPP and on my online FTP via a public webhoster. Every other file executed from the FTP or localclient is normally working with PHP (for example the database connection).
And do not wonder the lines 6,7,8 and 100 – 106 are only testlines to see if PHP works properly, which is not the case in my opinion.
Main Goal:
If session is active and the variable ‘access’ is set then redirect directly to the userview.php.
I would be glad if someone could help.
Try to replace the
<? ?>tags with<?php ?>, or check yourshort_open_tagdirective in php.ini file.