I want to include a PHP file in an SHTML file and store the result in a SHTML variable and include different things depending on the result.
Example:
Assume the PHP script would echo 0/1 in plain text (depending on something like time or something). And then in the SHTML, I'd like to store the output of that PHP file in a SHTML variable. Then if the value stored in that variable is 1, include fileA.html, else include fileB.html.
The answer seems to be NO.
NOTE: It should probably be implemented solely using PHP and a server directive to treat .shtml files as PHP.