this is kinda stupid but I don't know if this is possible, if it is, could someone tell me how to
Iframes are a client side invention. To PHP files are files and nothing else. So any PHP statements inside a file which gets referenced in an Iframe will get parsed just as if it was called by itself.