Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在iFrame而不是URL中加载服务器端_Php_Iframe_Server Side_Public Html - Fatal编程技术网

Php 在iFrame而不是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

是否有可能从服务器中选择源文件而不是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
    
    <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'>