Hosting your own web site - Configuration In this chapter, we discuss the many

Configuration In this chapter, we discuss the many configuration options availablewith PHP, particularly the Unix Apache module version, in somedetail. The goal is for you to better understand the tradeoffs of eachcapability you may enable or disable and how they may affect eachother. We also touch on ways you can measure and improve the per- formance of your PHP scripts. Viewing Environment VariablesTo see any of the settings discussed in the following section, youhave only to use the phpinfo()function in a valid PHP script. Thisfunction begins with a quick recap of the PHP version, your platform, date of build, and compile-time options; it then moves methodicallythrough your PHP settings. You will also see some information aboutyour Web server settings and environment variables. The output of the phpinfo()function is a potential bonanza forcrackers, so you shouldn t leave it sitting around on a productionserver. Understanding PHP ConfigurationLike most of the best open source software packages, PHP is highlyconfigurable. It s left up to you, the individual PHP user, to find yourown balance among the competing virtues of power, flexibility, safety, and ease of use. Configuration is difficult to describe fully because there are so manypossible combinations of options about 25 factorial combinations, as a matter of fact. In some cases, there is an obvious conflict betweentwo configuration directives you simply have to choose one or theother, end of story. In other cases, you can have both but may needto remember some workarounds. We try to point out as many ofthese implications as we can, but no one can honestly claim to havetested every possible combination. Since the launch of PHP4, the development group has made a trulyHerculean effort to bring the Windows build up to the same level offunctionality as Unix users have always enjoyed. The Windows ver- sion of PHP now ships with the most popular extensions (for exam- ple, MySQL) compiled in and a startling number of shared libraries(.dlls) bundled with PHP itself. Many of these libraries have to bebuilt from Unix source, so this effort represents a truly amazingamount of unremunerated, thankless work from the PHP build team. 3030CHAPTER …In This ChapterViewing environmentvariablesUnderstanding PHPconfigurationImproving PHPperformance …
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision professional web hosting services

Leave a Reply