How to test a PHP page written under Ubantu

Source: Internet
Author: User
I am referring to headfirst's php&mysql, but I have written the code, but do not know how to test the code, the Web form can be filled out, but submit a form on chrome, directly download my own written report. php file


Reply to discussion (solution)

PHP configuration problem not recognized PHP file
Add this try AddType application/x-httpd-php. php

PHP environment do you have a match?

Built up. Command PHP info. PHP can display PHP information

Is it possible to change the type of browser?

PHP configuration problem not recognized PHP file
Add this try AddType application/x-httpd-php. php
I should be how to modify the PHP configuration file, I can not find php5.conf

I should be how to modify the PHP configuration file, I can not find php5.conf
Configuration issues are usually under the/etc directory

You need to find the Apache configuration file httpd.conf, plus that line.


I should be how to modify the PHP configuration file, I can not find php5.conf
Configuration issues are usually under the/etc directory

I got it. I browse from the browser with a localhost/web file, but it's OK if I just double-click the Web file, which is why

PHP runs on a Web server and you can't open it naturally from the desktop

PHP phpinfo.php can be displayed because it is running in CLI mode.
You need to have a Web server, such as Apache, to run in a browser.

Ubuntu

Ubuntu apt-get install Apache .... There are several instructions to own Baidu a bit

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