News for hackers. Stuff that matters.
Re:PHP Built-in web server by mariuz on Monday September 10, 2012 @03:35PM (#4501743)
You don't need a full server like apache or nginx to start developing in you home all you need is php

I like it is like in the rails/django world

Re:PHP Built-in web server by pablasso on Monday September 10, 2012 @03:48PM (#4501821)
"I like it is like in the ruby/python world"
Re:PHP Built-in web server by menacingly on Monday September 10, 2012 @04:00PM (#4501899)
I think in this instance, "ruby" is more accurate. they didn't say "it is an exclusive property of rails", just that Rails has it, which is true. It's more true than saying Ruby has it.

edit: removed completely presumptuous gender pronouns

Re:PHP Built-in web server by radius on Monday September 10, 2012 @03:59PM (#4501888)
Yeah, but setting up a rails or django server/hosting environment for development is a lot more difficult than a comparable php setup; tools like MAMP, XAMP, et al make it fairly trivial to get going quickly.
Re:PHP Built-in web server by Joeboy on Monday September 10, 2012 @04:23PM (#4502024)
> pip install django

> django-admin.py startproject myproject

Is that really so hard?

Re:PHP Built-in web server by ceejayoz on Monday September 10, 2012 @05:24PM (#4502342)
You need pip first, especially if you're on Windows, which I'd imagine is a little more difficult than just installing XAMPP with an .exe.
Re:PHP Built-in web server by wilmoore on Monday September 10, 2012 @06:06PM (#4502535)
XAMPP/MAMP and others like it seem like they make life easier until you hit a point where you realize that they are seriously leaky implementations. I wish I had time to write in detail about this (because I also hate when people make claims like this without showing examples); however, I have a feeling that the people that would benefit the most won't care anyway.

Don't these distros still put php.ini in c:\windows?

Re:PHP Built-in web server by est on Monday September 10, 2012 @08:37PM (#4503093)
nope.avi

You need mysql-python, which depends on some header from mysql-client-dev, which requires some compiling or package, then there's PIL, virtualenv, uwsgi and shit.

Oh wait, you don't have pip on most distros by default. You need to apt-get or wget that.

Re:PHP Built-in web server by encoderer on Monday September 10, 2012 @10:52PM (#4503509)
If you follow defaults you'll be using SQLite in Django and won't have any of the MySQL headache.

But you're right about needing PIP.

Re:PHP Built-in web server by est on Monday September 10, 2012 @10:58PM (#4503526)
If you are working on a serious project you are likely to write some db specific code, sqlite3 is only suitable for general ORM-only tasks.
Re:PHP Built-in web server by dougbarrett on Monday September 10, 2012 @04:05PM (#4501923)
For smaller projects, sure, this is great. The moment you need to test your site with the the Apache rewrite_module or another web servers flavor of it is the moment this becomes useless.
Re:PHP Built-in web server by indiecore on Monday September 10, 2012 @05:31PM (#4502371)
Yeah but if you need that functionality you can take the hour to set up a localhost install of apache with whatever stuff you need. This is for rapid debugging and people just learning.
Re:PHP Built-in web server by mayanksinghal on Monday September 10, 2012 @07:13PM (#4502821)
I am a huge fan of XAMPP/LAMP for exactly this reason!
Re:PHP Built-in web server by indiecore on Tuesday September 11, 2012 @10:06AM (#4505468)
Exactly, and I like built in servers because it's easy to start messing with stuff until I find I need something bigger (and I often don't until it's time to actually think about deploying stuff). I can't even think of the number of times I had an idea, started installing a server to work on and stopped halfway through.