Why did my PHP just stop working?
几个方面 我曾一度这样做了:
- Put jquery in without the jquery script included, but with jquery within javascript tags.
- Created a stylesheet (which was working, but then I added a :before style and jquery and the php stopped working).
- Changed white space within PHP code.
- 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>