PHP Classes

HTTP Server: HTTP server written in pure PHP

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (48)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 1,306 All time: 2,956 This week: 135Up
Version License PHP version Categories
astahttpd 0.1GNU General Publi...5.2.0Networking, HTTP, PHP 5
Description 

Author

This package implements a Modular HTTP server written in pure PHP. It supports:

- Add-On Modules
- GET, POST, and HEAD methods
- Alias for URI that are mapped to given directories
- Execute external programs to handle CGI requests (mod_cgi & mod_cgi_header)
- Virtual hosts based on IP or host name (mod_vhost)
- Basic & Digest Authentication (mod_auth_basic & mod_auth_digest)
- URL rewriting (mod_rewrite)
- Decompress requests and compress responses with gzip or deflate methods (mod_encoding)
- Bandwidth Limiter (mod_bandwidth)
- Live Server Status (mod_status)

Picture of Rio Astamal
Name: Rio Astamal <contact>
Classes: 1 package by
Country: Indonesia Indonesia
Age: 36
All time rank: 201128 in Indonesia Indonesia
Week rank: 314 Up3 in Indonesia Indonesia Up

Details

astahttpd v0.1 beta3 README file -------------------------------- What is astahttpd? ------------------ astahttpd is free and open source web server written using 100% pure PHP. Currently astahttpd v0.1-beta3 support these following features: - GET, POST, and HEAD methods - Alias directories - Modular Architecture * - CGI Processing (mod_cgi & mod_cgi_header) - Virtual Host (mod_vhost) - URL Rewrite (mod_rewrite) - Basic Authentication (mod_auth_basic) * - Digest Authentication (mod_auth_digest) * - Log written to file (Access & Rewrite) - Bandwidth Limit (mod_bandwidth) * - Live server status (mod_status) * - Content encoding using gzip or deflate (mod_encoding) Note: * new in this release You need at least PHP 5.2.3 to run astahttpd since it implements OOP style that only available on PHP5. astahttpd should not be used in production use due many performance and security issue that has not been fixed yet. The Idea -------- The idea behind the making of astahttpd is simple, I just need simple web server for astasms (an sms server written also in pure PHP, I will released soon :) ). Since astasms front-end is web based, so it needs a web server. I don't want to use Apache or other mainstream web server player, because i think it's too bloated if used only for supporting front-end. After tried few simple httpd server written by somebody else, but most of them just make me more frustating. Many of them is really hard to install and configure and the worst, i even cannot compile them :( . So I started to make my own web server using my favorite language PHP. The first thnik I need to decide is whether to use PHP4 or PHP5. I think OOP in PHP5 is very good and make software maintanance more easy. So I decided to use PHP5. Current Version --------------- Current version that shipped with this distribution is astahttpd v0.1-beta3 Latest Release -------------- You can obtain astahttpd latest release on project homepage at http://astahttpd.sourceforge.net/ Installation ----------- Please see file called INSTALL License ------- astahttpd is licensed under GNU GPL 3, for more information see file called LICENSE ------------------------------------------------------------------------------- Rio Astamal (c0kr3x@gmail.com) -------------------------------------------------------------------------------

Screenshots  
  • default-testpage.png
  • 404-notfound.png
  • env-on-astahttpd.png
  • a-401.png
  • a-installer.png
  • ab2-rewrite.php
  • astahttpd-browsedir.png
  Files folder image Files  
File Role Description
Files folder imagelib (11 files)
Files folder imagebin (1 file)
Files folder imageconf (1 file)
Files folder imagehtdocs (7 files)
Files folder imageicons (8 files)
Files folder imagelogs (2 files)
Files folder imagemodules (11 files)
Plain text file COPYRIGHT Data Copyright file
Plain text file INSTALL Doc. Installation Instruction
Plain text file install.sh Data Auto installer
Plain text file LICENSE Lic. GNU GPLv3
Plain text file NEWS Data News and ChangeLog
Plain text file README Doc. Readme file
Plain text file TODO Data To do lists

  Files folder image Files  /  lib  
File Role Description
  Plain text file class.httpserver.php Class Class for creating HTTP daemon
  Plain text file class.urlrewrite.php Class This class provide simple URL Rewriting
  Plain text file class.socket.php Class This class provide basic TCP Socket object
  Plain text file class.serverdir.php Class Class for manipulating server directory
  Plain text file class.logger.php Class Class for writing log to a file
  Plain text file class.httpheaderparser.php Class Class for parsing HTTP header request
  Plain text file class.httpheadermaker.php Class Class for creating HTTP response header
  Plain text file class.httpexception.php Class Custom exception class to catch HTTP error
  Plain text file class.htmlpage.php Class Class to build an HTML page
  Plain text file class.cgiparser.php Class Class for parsing CGI script based on extension name or first line header
  Plain text file class.compressor.php Class Class for compressing data using gzip(internal/external) or deflate

  Files folder image Files  /  bin  
File Role Description
  Plain text file aws Appl. Executor file

  Files folder image Files  /  conf  
File Role Description
  Plain text file aws.conf.php Conf. Configuration file for the web server

  Files folder image Files  /  htdocs  
File Role Description
  HTML file index.html Data Server default test page
  Plain text file info.php Aux. PHP Environment variables test
  Plain text file printenv Data Perl Environment variables test
  Plain text file pyenv.py Data Python Environment variables test
  Plain text file readmanual.php Aux. Web server Manual/API
  Plain text file rewrite.php Aux. Server URL Rewriting example
  Plain text file secret.txt Data Basic Auth example

  Files folder image Files  /  icons  
File Role Description
  Image file archive.png Icon sample icons for directory listing
  Image file folder.png Icon sample icons for directory listing
  Image file html.png Icon sample icons for directory listing
  Image file image.png Icon sample icons for directory listing
  Image file kompozer.png Icon kompozer logo
  Image file parent.png Icon sample icons for directory listing
  Image file text.png Icon sample icons for directory listing
  Image file unknown.png Icon sample icons for directory listing

  Files folder image Files  /  logs  
File Role Description
  Plain text file access_log Data access log file
  Plain text file rewrite_log Data URL rewrite log file

  Files folder image Files  /  modules  
File Role Description
  Plain text file module.php Class Abstract class module/Parent off all modules
  Plain text file mod_auth_basic.php Class Basic Authentication Module
  Plain text file mod_auth_digest.php Class Digest AUthentication Module
  Plain text file mod_bandwidth.php Class Bandwidth Limiter Module
  Plain text file mod_cgi.php Class CGI Processing Module
  Plain text file mod_cgi_header.php Class CGI Header Handler Module
  Plain text file mod_encoding.php Class Gzip/Deflate Encoding Module
  Plain text file mod_rewrite.php Class Simple URL rewrite module
  Plain text file mod_status.php Class Live server status module
  Plain text file mod_test.php Class Demo module
  Plain text file mod_vhost.php Class Virtual Host Module

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,306
This week:0
All time:2,956
This week:135Up
 User Ratings  
 
 All time
Utility:85%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:80%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1402