课程: Linux for PHP Developers

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Configuring PHP for development

Configuring PHP for development

- [Instructor] Finally, we're getting to the PHP in a PHP course. It only took four chapters. So here's the thing. PHP is already installed but it hasn't been configured or optimized for development. To test out the development server, copy the exercise files from the Sandbox subfolder. The two we're going to be using in this video are phpinfo.php, which just displays information about PHP's configuration. The second is errors.php, which intentionally causes three PHP errors, a notice, warning, and fatal error. Let's see the errors in action. From a browser, go to sandbox.dev:8080/errors.php. Well, that's underwhelming. It's just showing the names of errors. Why is that? Let's take a look at the PHP configuration. In a new tab, I'm going to go to sandbox.dev:8080/phpinfo.php. PHP Version 7.0.15 and everything you wanted to know about the configuration, but we're afraid to ask. If you search for display_errors, you'll see that it's turned off. Well, there's your problem. So how do we…

内容