PHP - ftptree

 
Vista:

ftptree

Publicado por joni (1 intervención) el 24/10/2012 13:43:19
Hola a todos.
Estoy empezando en esto del php y he intentado hacer una prueba que encontré en esta web:
http://www.braxtondiggs.com/tutorial/file_tree#

El caso es que he modificado mi fichero jqueryFileTree.php con los datos de mi servidor ftp y conecta, pero al ejecutar el index.php me da error 404 - object not found. El error parece que se refiera al contenido de body pero no veo qué esta mal.

Pego el contenido de index.php por si alguien me pudiera ayudar.

Muchas gracias por anticipado.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>jQuery File Tree Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
BODY,
HTML {
padding: 0px;
margin: 0px;
}
BODY {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
background: #EEE;
padding: 15px;
}

H1 {
font-family: Georgia, serif;
font-size: 20px;
font-weight: normal;
}

H2 {
font-family: Georgia, serif;
font-size: 16px;
font-weight: normal;
margin: 0px 0px 10px 0px;
}

.example {
float: left;
margin: 15px;
}

.demo {
width: 200px;
height: 400px;
border-top: solid 1px #BBB;
border-left: solid 1px #BBB;
border-bottom: solid 1px #FFF;
border-right: solid 1px #FFF;
background: #FFF;
overflow: scroll;
padding: 5px;
}

P.note {
color: #999;
clear: both;
}
</style>
<link href="jqueryFileTree.css" rel="stylesheet" type="text/css" media="screen" />
<script src="jquery.js" type="text/javascript"></script>
<script src="jqueryFileTree.js" type="text/javascript"></script>
<script src="jquery.easing.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready( function() {
$('#fileTreeDemo_1').fileTree({
root: '/', script: 'jqueryFileTree.php' }, function(file) {
alert(file);
});
});
</script>

</head>

<body>
<div class="example">
<div id="fileTreeDemo_1" class="demo"></div>
</div>

</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder