Danh mục

PHP & MySQL for Dummies- P2

Số trang: 50      Loại file: pdf      Dung lượng: 0.00 B      Lượt xem: 12      Lượt tải: 0    
10.10.2023

Hỗ trợ phí lưu trữ khi tải xuống: 6,000 VND Tải xuống file đầy đủ (50 trang) 0
Xem trước 5 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Tham khảo tài liệu php & mysql for dummies- p2, công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
PHP & MySQL for Dummies- P2 Chapter 2: Setting Up Your Work Environment 31 On your Web host, you can create a subdirectory (folder) in your Web host- ing account where you can develop your Web page files. You don’t need to install any extra software, because PHP and MySQL are already installed. However, you do need to protect the subdirectory from public view. You can do this by adding a directive to an .htaccess file. I explain how to do this later in this chapter. On your company Web site, IT needs to set up a separate location, which is not available to the public, where you can develop your Web page files. You need to talk to IT about setting up such a location for you and allowing file transfer between that location and your Web site location. Setting Up Your Web Site After you decide where to publish your Web site, your next step is to set up your Web site. The following sections tell you what you need to know. With a Web hosting company You set up an account with a Web hosting company on its Web site. Most of them offer more than one type of account, with varying resources, for vary- ing prices. You obtain an account by filling out a form on the Web site and providing a credit card number. The Web host provides you with the infor- mation you need to use your new account, usually by sending you an e-mail. If you have trouble with the procedure for obtaining an account, you should be able to contact Technical Support at the Web hosting company. Some pro- vide a phone number, some an e-mail address, and some provide support via instant messaging. Some provide all three. If they are unable to answer your questions or take a long time to answer, perhaps this is not the best Web host for you. When you have your new account, it may take a day or two for the URL to connect to your Web site. When the URL points to your Web site, your Web site is public. Anything you put there can be seen by the entire world. Your new account provides a control panel that you use to manage your account. Many Web hosts provide a control panel called cPanel. Others pro- vide other control panels, such as a control panel specific to the Web host, but the control panels have similar functionality, such as setting up e-mail accounts. You use the control panel to access software that allows you to create new MySQL databases and add/change MySQL accounts and pass- words. You also have access to phpMyAdmin for managing your MySQL data- bases. Managing your MySQL accounts and databases is discussed in detail in Chapters 4 and 5.Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 32 Part I: Developing a Web Database Application Using PHP and MySQL As discussed previously, the Web page files stored on your Web hosting account can be seen by the world. Therefore, you want to develop and perfect the files on your development site and then move them to this Web site. The preferred arrangement for most developers is to use software on your local computer to edit and upload your Web site files. On your local computer, you can install software that assists you with organizing and transferring your files. I discuss this software in the section, “Setting Up Your Development Environment.” If, for some reason, you can’t upload from your development environment, you can upload your files from the control panel provided by your Web host. For example, to upload a file using cPanel, find the section labeled Files and click the File Manager icon. The page that opens allows you to manage your files, including upload and download files and backup your files. If you click the upload link, you can browse to the file on your local computer that you want to upload. The file manager page also provides the option for you to edit your ...

Tài liệu được xem nhiều: