[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnunet] Re: [bug-GNUnet] private gnunet networking
From: |
Krasko Oleksandr |
Subject: |
[Help-gnunet] Re: [bug-GNUnet] private gnunet networking |
Date: |
Mon, 17 Apr 2006 21:07:02 +0300 |
hi once again today
> >> * Webserver with CGI
> > what vebserver and interpritator do you utillize in this case ??
> Any webserver with CGI support: Apache, IIS, maybe thttpd, maybe fnord, ...
> ...
> I don't understand.
forget foolishness
I made an attempt create a php (laziness to me install and configure
interpritator for sh for Apache) script in place of hostlist.cgi wrote
something such (run in localhost, apache ):
=======
<?php
header("Content-Type: application/octet-stream\r\n\r\n");
$extmas = array('6','8','12','17','23','25');
$path = 'D:\Program Files\GNU\GNUnet\var\lib\GNUnet\data\hosts';
if ($d = opendir($path)) {
} else {
'Can\'t open dir'."\n";
}
$mas = array();
while ($fname = readdir($d)) {
if (is_file($path.'/'.$fname)) {
$n = strpos($fname, '.');
$len = strlen($fname);
if (in_array(substr($fname, -1*($len-$n-1)), $extmas)) {
$mas[] = array(intval(substr($fname,
-1*($len-$n-1))),$fname);
}
}
}
sort($mas);
foreach ($mas as $val) {
echo file_get_contents($path.'/'.$val[1]);
}
?>
======
on localhost I not get errors,on removehost I get next error:"Failure
of at connect.c:492." :(
before tim as run nods (gnunetd -d) on machines I copy all of hostkey
on removehost and localhost in the proper directories(data\hosts).
Appropriate code that did I write? how can he be improved? and is it needed?
- [Help-gnunet] private gnunet networking, Krasko Oleksandr, 2006/04/12
- [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, N. Durner, 2006/04/13
- [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, Krasko Oleksandr, 2006/04/17
- [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, Krasko Oleksandr, 2006/04/17
- [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, N. Durner, 2006/04/17
- [Help-gnunet] Re: [bug-GNUnet] private gnunet networking,
Krasko Oleksandr <=
- Re: [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, N. Durner, 2006/04/17
- Re: [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, Krasko Oleksandr, 2006/04/18
- Re: [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, N. Durner, 2006/04/18
- Re: [Help-gnunet] Re: [bug-GNUnet] private gnunet networking, Christian Grothoff, 2006/04/22