[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 localhostphp 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. enter localhosta in the video. php can display the relevant file information. how can I download the information when I do so? [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 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 --------------------
AddType application/x-httpd-php. php. phtml
Change
Addtype application/x-httpd-php. php. phtml

Try

------ 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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.