Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts

    Nanoweb webserver

    I'm looking for a web server written in PHP, and as first result i found Nanoweb. Did anyone here work with that web server, or any other one written in PHP.

    What could be advantages and disadvantages of using a web server that is not Apache?

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    I'm not sure about the disadvantages. I have LightTPD on my laptop. Its intsalled as a CGI (FastCGI) and not a module. No real reason, other than they had a link on the Ruby on Rails site when I was reading up on it about 2 years ago.

    www.lighttpd.net
    http://trac.lighttpd.net/trac/wiki/T...LighttpdAndPHP
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    The main disadvantage is that it's not as popular as apache, and so won't have been through the same kind of testing and variety of use-cases that apache has. From the looks of that site, it's not a particularly active project, with releases being once a year- not really something I'd really want to be relying on.
    It's not to say it would be bad to use it, but there are a lot of risks, and when apache and (even more so) lighttpd are so easy to setup I don't really see the point.
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com

  • #4
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by GJay View Post
    It's not to say it would be bad to use it, but there are a lot of risks, and when apache and (even more so) lighttpd are so easy to setup I don't really see the point.
    I just liked the idea that there is a webserver fully written in PHP, and asked for opinions since this is popular forum, there was hope people will have experience with that server.

    Also since it's OSource, and PHP (language i understand the most), and since it's much simpler than Apache i thought of looking up inside to see what needs to be done when building a web server. Probably the same techniques are used in any languages to use this famous http protocol, and idea of having a program which communicates by http protocol is fun to me...

  • #5
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,095
    Thanks
    11
    Thanked 101 Times in 99 Posts
    nanoweb is cool... but it will never reach the speed(reliably) of apache , I am all for using PHP where possible... but in production its use would be detrimental to overall performance, as noted there is nothing wrong with several existing webservers with proven trackrecords.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #6
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by firepages View Post
    as noted there is nothing wrong with several existing webservers with proven trackrecords.
    hey, i didn't say it's wrong. i just stated that it might be good for learning how to make webserver, for the people who only use PHP.
    i saw a page about python, and how to create web server with it.. it's like 50 lines of code , looks easy.

    i'm sure gonna stick to apache, but it's always good to learn new things. maybe someone didn't even know that web server fully written in PHP egzists i surely didn't


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •