Skip to main content

Tiny PHP "standalone” server (or framework) for local debug without Apache/Nginx/Lighttpd/etc



There's manage.py runserver in Django or ruby script/server in Ruby on Rails — those familiar with one of those frameworks should already get the idea what I'm looking for. They run tiny "standalone" web server, which is perfectly enough to debug the application locally, without any need for other software (Apache/Nginx/Lighttpd/etc).





I wonder is there any PHP implementation of such tool, or, maybe, some PHP framework has such feature? Surely, I can pack pre-built pre-configured static nginx executable, but this would not be pretty, and certainly not cross-platform. Having standalone debug webserver written in PHP itself will make the package self-contained.





I.e. I'd like to type something like php tools/runserver.php , point browser to http://localhost:8000/ and see the site up and running, ready to debug.





My Google-fu has failed me, but I strongly suspect that there is such project already.



Source: Tips4all

Comments

  1. Not sure if this is what you're after, though it's actually more like a Tomcat for PHP, and I think (though I'm not sure) it still requires a webserver

    Also, nanoweb is a web server written entirely in PHP

    ReplyDelete
  2. Sorry for reviving an old thread.

    If you just want to debug your application. As of PHP 5.4 there's a Built-in web server.

    http://docs.php.net/manual/en/features.commandline.webserver.php

    ReplyDelete
  3. Found it: QuickPHP!



    Check these out:


    Nanoweb
    phpstack
    MicahServer

    ReplyDelete
  4. May worth mentioning:


    https://github.com/dhotson/kelpie
    https://github.com/indeyets/appserver-in-php (requires C extension)


    There's also an proporsal to have server built-in into PHP CLI binary: http://wiki.php.net/rfc/builtinwebserver

    (Source: http://news.ycombinator.com/item?id=2281724)

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?

CCNA 1 Final Exam 2011 latest (hot hot hot)

  Hi! I have been posted content of ccna1 final exam (latest and only question.) I will post the answer and insert image on sunday. If you care, please subscribe your email an become a first person have full test content. Subcribe now  Some question  have not content because this question have images content. So that can you wait for me? SUNDAY 1. A user sees the command prompt: Router(config-if)# . What task can be performed at this mode? Reload the device. Perform basic tests. Configure individual interfaces. Configure individual terminal lines. 2. Refer to the exhibit. Host A attempts to establish a TCP/IP session with host C. During this attempt, a frame was captured with the source MAC address 0050.7320.D632 and the destination MAC address 0030.8517.44C4. The packet inside the captured frame has an IP source address 192.168.7.5, and the destination IP address is 192.168.219.24. At which point in the network was this packet captured? leaving host A leaving ATL leaving...