no-framework-tutorial/4-http.md

9 lines
577 B
Markdown
Raw Normal View History

2014-09-12 21:21:50 +00:00
[<< previous](3-error-handler.md)
### HTTP
PHP already has a few things built in to make working with HTTP easier. For example there are the [superglobals](http://php.net/manual/en/language.variables.superglobals.php) that contain the request information.
These are good if you just want to get a quick and dirty script runnin. But if you want to write clean, maintanable, [SOLID](http://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29) code, then you will want a class with a nice object oriented interface that you can use in your application.
to be continued...