Embedding PHP in HTML has no effect

I try to do something as simple as\[code\]<?php print "something"; print_r ($_SESSION); ?>\[/code\]inside a .html file, but it doesn't work, and I don't understand why. Simply nothing is printedEDIT: Here is another question\[code\]<?phpsession_start();print "AAAA";print_r ($_SESSION);?>\[/code\]When I comment out session_start(), the print_r statement prints, nothing, and when it is left, as shown, I get an error like this: \[code\] Cannot send session cache limiter - headers already sent (output started at\[/code\]So what is the solution to this?
 
Back
Top