Is it correct and valid to use something like this:
<noscript>
<?php require_once 'somefile.php'; ?>
</noscript>
I've been searching for this answer a lot but unfortunately not much luck. Here is a quote from one of the answers by @SLaks on this page.
"If you put PHP code inside a tag, it will always execute, whether Javascript is enabled or not. However, the code's output will only be visible if Javascript is disabled."
However I am not very clear if it is valid to use php within a <noscript> tag.
Javascriptisdisabled.<noscript>is a very binary approach to dealing with the possibility of JavaScript failing, generally speaking, you should avoid it and follow the principles of Progressive Enhancement and Unobtrusive JavaScript instead.