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
Doesn't sound possible. SHTML uses different methods of parsing the code so I don't think the PHP will run on the page to return a value to the SHTML. Why are you doing this though, why not use PHP outright?