GoDaddy(고대디) 서버에서 html 파일안에서도 php 실행하는 방법

GoDaddy 기본 설정으로는

확장자가 html이면은 <?php include "./test.php"; ?> 가 먹히지 않는다.

해결하기 위해서 .htaccess 라는 파일을 만들어서

Options +ExecCGI
AddHandler x-httpd-php .html .htm

라고 입력해주고 저장한 후

원하는 디렉토리에다가 업로드 해주면 된다.

만약 root 디렉토리에다 업로드를 하면 전부 적용되고 폴더에 넣으면 그 폴더만 적용됨.

출처: http://support.godaddy.com/help/article/5121/changing-your-hosting-accounts-file-extensions


  1. Just what exactly annoys myself by far the most with the help of such different watches might be you don't pay just for your true merchandise http://www.attrinity.com/omega-seamaster-watches-for-sale.html, moreover, you may shell out those advertising and marketing and ads together with sponsorships that go into these people. With a check out, important things are a lot better, as they should be: you finance any watch and also observe only. It's expressed by specialized watchmakers http://www.attrinity.com, aided by the same elements, with very little concession for top quality. All these watchmen might possibly be the real heroes, when they determine what method to possibly be appreciated as well as like to see most of the masterpieces remaining loved by simply countless individuals potential. Anytime men and women look into different watches, most of them come up with improperly prepared Chinese language imitations from some sort. Expressly a large number of ages, that isn't so any longer. With the industry modern thrive, these types of watches usually are produced in order to reach clients, being confident that these people bring back meant for other sorts of brings home. The occasions anytime purchasing watches recommended gaining ripped off are actually process guiding us. Your watches are associated utilizing top quality. All of these is usually made simply having good quality planned http://www.watchesbuy.co.uk. Qualified watchmakers allot hours and hours time basically to make certain the conclusion device is often a ok clock, indistinguishable on the authentic, even when fit one almost the other one. Subsequent to allowing the formulation set, that looks after will need to complete quite a tight good quality deal with procedure, to make sure sole those that genuinely really are flawless reach the individual, as a thrilled purchaser is often a going back customer.

  2. Bluehost is ultimately one of the best hosting provider with plans for all of your hosting needs.

  3. Selling data about GoDaddy including coupons or vouchers and after that pitching other related administrations to similar individuals. storage.googleapis.com/renewalcoupon/index.html

  4. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. https://www.ilounge.com/articles/how-can-i-buy-cheap-web-hosting-in-india

  5. Nonetheless as my business beginning to develop I truly began to see a couple of things about Godaddy that made me need to contrast it with other facilitating suppliers and check whether site execution would be discernibly be improved. https://onohosting.com/

  6. What is a Web Host?A web have gives web facilitating administrations and their definite proposals of capacity, availability, There are in a real sense a large number of web facilitating administrations, going from people to overall organizations.