I tried to add the command <?php session_start(); ?> before the first line of an index.html - file. Aside from that, the file only contains html statements.
When I noticed that the php-code was not getting interpreted, I changed the ending of the file to index.php, which solved that issue.
Now I am wondering whether what I did is an ugly hack or actually an accepted practice? Is it ok to add a php-prefix to a file that is otherwise html?
Also, I am sadly still getting the following error:
session_start() [function.session-start]: Cannot send session cache limiter - headers already sent . In case my above practice is fine, what causes this error?
index.php?<php?-statement. I actually did call the file index.php . I just wonder whether maybe the fact that a simple space can cause an error should be a hint to use a different practice.