[Beginner php] how to upload the localhost/php file name? what should I do?
Source: Internet
Author: User
[Beginner php] How does one enter the localhost/php file name to download the file? How can this problem be solved? I started to learn php and watched the php100 video. After configuring apache, I added a. a to the apache htdocs file in the video. php file, and then edit the php file. in the video, enter localhost/. php will show the prompt "how to download the file" after entering the localhost/php file name "for" beginner php? How can this problem be solved?
I started to learn php and watched the php100 video. After configuring apache, I added a. a to the apache htdocs file in the video. php file, and then edit the php file. in the video, enter localhost/. php can display the relevant file information. how can I download the information when I do so?
Please help me. I have a poor foundation ~
------ Solution --------------------
Php is not parsed !!!
------ Solution --------------------
Discussion
Reference:
AddType application/x-httpd-php. php. phtml
I have added this sentence, but it does not work ~
------ Solution --------------------
As mentioned above, the php module is not successfully installed. Add AddType application/x-httpd-php. php in the conf/httpd. conf file.
The premise is that your php module has been installed on your computer. it is generally normal to configure it strictly according to the tutorial.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service