php solutions dynamic web design made easy phần 2

Tham khảo tài liệu 'php solutions dynamic web design made easy phần 2', công nghệ thông tin, quản trị mạng phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | GETTING READY TO WORK WITH PHP Because this is where all your web files will be stored it s not a good idea to keep them in the same place as your program files. Whenever I set up a new computer I always create a dedicated folder called htdocs at the top level of my C drive and I put all my websites in subfolders of htdocs. I chose that name because it s the traditional name used by Apache for the server root folder. Change both lines to indicate the same location like this DocumentRoot C htdocs Omitted section Directory C htdocs 4. Scroll down a bit further until you come to the following command around line 214 DirectoryIndex This setting tells web servers what to display by default if a URL doesn t end with a filename but contains only a folder name or the domain name for instance . Apache will choose the first available page from a space-separated list. The purpose of this book is to work with PHP so add . DirectoryIndex In Apache this command is around line 323 and includes . Just add at the end of the line as above. 5. Close to the end of you ll find a section that includes several commands that begin with AddType. Add the following line in that section on a line of its own as shown in Apache this section is around line 760 AddType application x-httpd-php .php 2 Addlype application x-compress . z Addlype application x-gzip . gz .tgz 386 I 187 AddType application x-httpd-php .php 388 6. Save and close . 7. You now need to restart your computer so that the changes made to the Windows PATH and startup procedure can take effect. Apache should start automatically unless you selected the manual option earlier. If everything starts normally skip ahead to the section titled Testing PHP on Windows. If you see an error message read on. 8. If there are any mistakes in Apache will refuse to start. Depending on the version you have installed you .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.