note 56617 added to function.apache-request-headers

From: Date: Fri, 09 Sep 2005 11:00:35 +0000
Subject: note 56617 added to function.apache-request-headers
Groups: php.notes 
Request: Send a blank email to php-notes+get-94958@lists.php.net to get a copy of this message
Surly this could be rewritten as function list_dirs($path, $target) { $list = scandir($path); $url = $_SERVER['HTTP_HOST']; foreach ($list as $number => $filename) { if ( $filename !== '.' && $filename !== '..' && !is_file($filename) ) { if ($target == '') { // Print Dirs with link print ("<a href=\"http://$url/$filename\">$filename</a> <br>\n"); } else { // Print Dirs with link print ("<a href=\"http://$url/$filename\" target=\"$target\">$filename</a> <br>\n"); } } } } which would then not require apache. I havent tested this but looks to do exactly the same. ---- Manual Page -- http://www.php.net/manual/en/function.apache-request-headers.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56617 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56617&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56617&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56617&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56617&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56617&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56617&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56617&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94958) next »