mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-18 03:21:18 +02:00
Moving to Post structure.
Lots of changes breaking out subsections into posts and programmatically generating ToC, main page content, and Back to Top links.
This commit is contained in:
@@ -1,39 +1,2 @@
|
||||
# Getting Started
|
||||
|
||||
## Use the Current Stable Version (5.4)
|
||||
|
||||
If you are just getting started with PHP make sure to start with the current stable release of [PHP 5.4][php-release]. PHP has made great strides adding powerful [new features](#language_highlights) over the last few years. Don't let the minor version number difference between 5.2 and 5.4 fool you, it represents _major_ improvements.
|
||||
|
||||
## Built-in web server
|
||||
|
||||
You can start learning PHP without the hassle of installing and configuring a full-fledged web server (PHP 5.4 required). To start the server, run the following from your terminal in your project's web root:
|
||||
|
||||
> php -S localhost:8000
|
||||
|
||||
* [Learn about the built-in, command line web server][cli-server]
|
||||
|
||||
[php-release]: http://www.php.net/downloads.php
|
||||
[cli-server]: http://www.php.net/manual/en/features.commandline.webserver.php
|
||||
|
||||
## Mac Setup
|
||||
|
||||
OS X comes prepackaged with PHP. As of Mountain Lion, it is _not_ the current stable version of PHP, though. You can get the PHP executable through a number of Mac [package managers][mac-package-managers] or [compile it yourself][mac-compile] (if compiling, be sure to have Xcode installed, or Apple's substitute ["Command Line Tools for Xcode" downloadable from Apple's Mac Developer Center][apple-developer]). For a complete Apache, MySQL, and PHP installation check out [MAMP2][mamp-downloads].
|
||||
|
||||
[mac-package-managers]: http://www.php.net/manual/en/install.macosx.packages.php
|
||||
[mac-compile]: http://www.php.net/manual/en/install.macosx.compile.php
|
||||
[xcode-gcc-substitution]: https://github.com/kennethreitz/osx-gcc-installer
|
||||
[apple-developer]: https://developer.apple.com/downloads
|
||||
[mamp-downloads]: http://www.mamp.info/en/downloads/index.html
|
||||
|
||||
## Windows Setup
|
||||
|
||||
You can install PHP on windows from an install executable found on the official [PHP Downloads][php-downloads] page. For a complete Apache, MySQL, and PHP installation check out [WAMP][wamp-installer].
|
||||
|
||||
* [Read more about the official PHP Windows Installer][windows-installer]
|
||||
|
||||
[php-downloads]: http://www.php.net/downloads.php
|
||||
[windows-installer]: http://www.php.net/manual/en/install.windows.installer.msi.php
|
||||
[wamp-installer]: http://www.wampserver.com/
|
||||
|
||||
|
||||
[Back to Top](#top){.top}
|
||||
|
Reference in New Issue
Block a user