Download
Blog
Wiki
Forum
Store
Contact
Home
Products
Web Server
Load Balancer
LiteSpeed SAPI
Solutions
Web Hosting
Online Gaming
PHP Application
Rails Hosting
Case Studies
Resources
Documentation
White Papers
Benchmarks
Testimonials
FAQ
HOW-TOs
Support
Services
Wiki
Forum
Company
About
News
Blog
Management
Partners
Careers
Support
Services
Wiki
Forum
User Name
Password
Remember Me?
Register
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
LiteSpeed Support Forums
>
LiteSpeed Web Server
>
Install/Configuration
>
listing of the files instead of opening indexfile
Thread Tools
Display Modes
#
1
02-26-2004, 07:20 AM
_harri_
Member
Join Date: Feb 2004
Posts: 11
listing of the files instead of opening indexfile
hi!
again i have a question =)
is it possible to configure lsws in a way, that the files are listed up in the webbrowser ?
*thx*
_harri_
_harri_
View Public Profile
Send a private message to _harri_
Find all posts by _harri_
#
2
02-26-2004, 10:15 AM
harrinp1
Member
Join Date: Jul 2003
Location: Chester, UK
Posts: 12
Re: listing of the files instead of opening indexfile
Quote:
Originally Posted by
_harri_
hi!
again i have a question =)
is it possible to configure lsws in a way, that the files are listed up in the webbrowser ?
*thx*
_harri_
You can use a simple script like this saved as index.php to do the job:-
<?
$dir_handle=opendir(".");
while ( $current_file=readdir($dir_handle) ) {
if (ereg("^\.",$current_file)) continue; # skip dot files
print "
<A HREF=$current_file>$current_file</A>";
if ( is_file($current_file) )
$files[]=$current_file;
if ( is_dir($current_file) )
$dirs[]=$current_file;
}
closedir($dir_handle);
?>
Cheers
Paul
harrinp1
View Public Profile
Send a private message to harrinp1
Visit harrinp1's homepage!
Find all posts by harrinp1
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General
News
Use Cases
LiteSpeed Web Server
General
Install/Configuration
LiteSpeed Cache
Feedback/Feature Requests
Bug Reports
LSWS 4.1 Release
LiteSpeed Load Balancer
General
LiteSpeed Anti-DDoS
Proxy Service
Popular web applications
Word Press
vBulletin Forum
Joomla
Magento
External Applications
Apache Migration/Compatibility
Ruby/Rails
PHP
CGI/Perl/Python
Java JSP/Servlet
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
lsz files
jrmarino
General
1
07-24-2007
11:00 AM
Forbid access to PHP files
BobbyEasland
Install/Configuration
3
05-08-2007
08:53 AM
Blocking files by extension
Marcus
Install/Configuration
2
02-28-2007
03:09 PM
Deletion of /tmp/lshhtpd swap & other lsws files
athanasius
Install/Configuration
1
02-23-2006
05:25 PM
gzip for static files with no write permissions
IO
Bug Reports
2
09-24-2005
08:26 AM
All times are GMT -7. The time now is
12:30 PM
.
-
Archive
-
Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved.
Privacy Policy
.