Shinya Takeuchi’s Website
ローカル環境で、ハローワールドを動かすために、色々とやりました。
I’ve done something to run “Hello World” program on my local computer environment.
自分用のメモに近いですが、PHPでプログラミングをしていましたが、php.iniか何かを書き換えたためか、
HTMLから呼び出したPHPファイルが、XAMPPを動かした、ローカルホスト上で上手く表示されなくなりました。
It’s kind of a memo for myself, but I’ve been programming with PHP and the PHP file calling from the HTML file hasn’t been able to indicate by XAMPP on localhost,
because of I’ve overwritten something on php.ini or anything else.
この際、丁度良いと思い、次の事をしました。
I thought it’s a nice time to do the next thing.
php.iniの設定は、次のリンク先を参考にしました。
About the php.ini settings, I reffered to the next website.
https://www.adminweb.jp/xampp/php/index2.html
ちなみに、php.iniの場所は、次の通りです。
By the way, php.ini ‘s place is like the following ones.
その通りにやって、XAMPPを動かしても、次の事をやっても、
ローカルホスト上の、HTMLに埋め込まれたPHPの部分と、HTMLから呼び出したPHPの部分が、真っ白になっていました。
Doing the things above and run XAMPP, the part of the PHP embedded on the HTML and the part of the PHP called from the PHP on localhost, has white out.
1. 適当に、htdocsのdashboard配下にフォルダーを作成
1. Make a proper folder in the “htdocs” under the “dashboard”.
C:\xampp\htdocs\dashboard\test
ちなみに、動かしたプログラムは、次の通りです。
By the way, the run program is on the next.
hello.html
<html>
<head>
<title>Hello</title>
</head>
<body>
<?php print ‘Hello World’; ?>
</body>
</html>
hello2.html
<html>
<head>
<title>Hello</title>
</head>
<body>
<?php include (“hello.php”); ?>
</body>
</html>
hello.php
なので、次のリンクのhttpd.confの設定を試したら、キチンと表示できました。
So, I’ve tried to change the “httpd.conf” settings below, it worked.
https://qiita.com/non0311/items/1114f080603d9007b1c4
httpd.confの場所は、次のリンクを参照しました。
I’ve reffered the next website in the next about the place of “httpd.conf”
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalise your experience. You can manage your preferences, but blocking some cookies may impact site performance and services.
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
Google reCAPTCHA helps protect websites from spam and abuse by verifying user interactions through challenges.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
A video-sharing platform for users to upload, view, and share videos across various genres and topics.
Service URL: www.youtube.com (opens in a new window)
You can find more information in our Cookie Policy and プライバシーポリシー.