Home  >  Article  >  Backend Development  >  简单的PHP程序有关问题

简单的PHP程序有关问题

WBOY
WBOYOriginal
2016-06-13 10:05:33725browse

简单的PHP程序问题
front.php
***************************************************************


news




 
 
 
 
 
 
 



*****************************************************************
head.php
******************************************************************


news

title map



********************************************************
当我运行front.php时,为何结果一片空白。两个php文件我都放在同一工程目录下。在第二个程序head.php中我那个图片没法显示。

------解决方案--------------------
一般来说,一片空白表示你的语法出错了.
------解决方案--------------------
先看一下空白时源码是什么,也许从中可以找到原因。不行的话把这段代码变成html文件,再显示看能不能正常
------解决方案--------------------
你看你能运行head.php么
分开运行下,看看 improtant.php,internal.ph,poverseas.php都能否运行
这样好找错误
------解决方案--------------------
 

两个标记不能同时存在的。改成下面的
HTML code
  <title> news </title>  <frameset rows="20%,*"> <frame src="head.php" scrolling="no">               <frameset cols="30%,*" border="1">               <frame src="improtant.php" name="improtant" scrolling="no">                                   <frameset rows="50%,*" border="1">                                   <frame src="internal.php" name="internal" scrolling="no">                                   <frame src="overseas.php" name="overseas" scrolling="no">                                   </frameset>               </frameset> </frameset> <br><font color="#e78608">------解决方案--------------------</font><br><br><br>放在<br>  <br>  <br><title> news </title><br>frameset   rows="20%,*">  <br><frame src="head.php" scrolling="no">  <br>             <frameset cols="30%,*" border="1">  <br>             <frame src="improtant.php" name="improtant" scrolling="no">  <br>                                 <frameset rows="50%,*" border="1">  <br>                                 <frame src="internal.php" name="internal" scrolling="no">  <br>                                 <frame src="overseas.php" name="overseas" scrolling="no">  <br>                                 </frameset>  <br>             </frameset>  <br>
 




------解决方案--------------------
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn