News for hackers. Stuff that matters.
Re:Can you use PHP without frameworks nowadays? by zdw on Friday February 18, 2011 @10:23AM (#2235706)
One of the attractions of PHP is that you can use it as much or as little as you need.

Have a static site that needs one page with dynamic content? Just make that one page PHP, and do whatever you need.

Need a basic caching/templating engine? Smarty.

Need a basic linear blog? Hack something with Wordpress.

Need a more complex site with categories and plugins, that fits into a wide community? Drupal.

Need to have full control over how the thing works? Use something like CodeIgniter or Cake.

Lots of options out there, and PHP is stupidly simple to deploy compared to most other technologies.

Re:Can you use PHP without frameworks nowadays? by stdbrouw on Friday February 18, 2011 @10:57AM (#2235877)
"PHP is stupidly simple to deploy compared to most other technologies" That's true, but it stops mattering for more complex sites where you want easy rollbacks to previous versions if a deploy went awry, separate static media serving (because it's faster), load balancing and the like.

Nobody will dispute that PHP has by far the best deployment story if you need to quickstart something (see http://blog.ianbicking.org/2008/01/12/what-php-deployment-ge...). But for an application of any complexity, really, you'll have more important stuff to worry about.

Re:Can you use PHP without frameworks nowadays? by randall on Friday February 18, 2011 @11:07AM (#2235936)
For the noobs, can you add the word "like" and some descriptive stuff to that last sentence?
Re:Can you use PHP without frameworks nowadays? by danielh on Friday February 18, 2011 @11:52AM (#2236158)
He already did:

easy rollbacks to previous versions if a deploy went awry, separate static media serving (because it's faster), load balancing and the like

Other things that come to mind are database migrations, running tests before deployment, pushing code to multiple servers etc.

It is probably a good idea to automate all these tasks.

Yes, with an application server you might have to reload the code, but it doesn't really matter, because thats just one step of your automated deployment.

And if you use an opcode cache you probably have to restart the server with PHP anyway.