English 中文(简体)
我的购买力平价为什么没有,显示一个空白页?
原标题:Why does my PHP do nothing, show a blank page?
  • 时间:2012-04-27 14:29:51
  •  标签:
  • php
  • html

Why did my PHP just stop working?

几个方面 我曾一度这样做了:

  1. Put jquery in without the jquery script included, but with jquery within javascript tags.
  2. Created a stylesheet (which was working, but then I added a :before style and jquery and the php stopped working).
  3. Changed white space within PHP code.
  4. Put <!DOCTYPE HTML> at top, but then removed it and no change.

I expect a list of every folder and subfolder, but get a page with just the title, and Chrome shows me the php tags are within HTML comments (not sure if normal, never had php just not work).

www.un.org/spanish/ecosoc 议题是:档案类型不是ANSI。

PHP:

<?php

function listFolderFiles($dir){
    $ffs = scandir($dir);
    echo  <ol> ;
    foreach($ffs as $ff){
        if($ff !=  .  && $ff !=  .. ){
            echo  <li> .$ff;
            if(is_dir($dir. / .$ff)) listFolderFiles($dir. / .$ff);
            echo  </li> ;
        }
    }
    echo  </ol> ;
}


?>

传真:

<html>
<head>
<title>
</title>

<?php include("find.php"); ?>

</head>
<body>

<h2>Folders</h2>

<?php listFolderFiles( ../ );?>


</body>
</html>
最佳回答

I believe your file is saved other than ANSI, because PHP cannot run on an UNICODE file. try to open your file with your favorite editor and when you save ... make sure you save it as ANSI.

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签