Php 在iFrame而不是URL中加载服务器端
是否有可能从服务器中选择源文件而不是URL,这意味着Php 在iFrame而不是URL中加载服务器端,php,iframe,server-side,public-html,Php,Iframe,Server Side,Public Html,是否有可能从服务器中选择源文件而不是URL,这意味着 ---> Instead of <iframe width='100%' height='100%' src='http://example.com/file.php' allowTransparency='yes' frameborder='no' scrolling='no' id='adminheader' > </iframe> ---> Load Server Side File
---> Instead of
<iframe width='100%' height='100%' src='http://example.com/file.php' allowTransparency='yes' frameborder='no' scrolling='no' id='adminheader' > </iframe>
---> Load Server Side File
<iframe width='100%' height='100%' src='/home/username/public_html/header.php' allowTransparency='yes' frameborder='no' scrolling='no' id='adminheader' > </iframe>
-->而不是
--->加载服务器端文件
其目的是仅按原样加载标题,如果可能,通过应用某些样式和脚本间接访问标题。否,因为iFrame是在客户端呈现的。但我不明白为什么你不能用URL加载它们
<iframe src='http://example.com/header.php'>