For php web pages written and tested under ubantu, I am referring to Headfirst's PHP & MYSQL, but I have compiled the code, but I do not know how to test the code. the webpage form can be filled in, however, I submitted a form on chrome and directly downloaded my own report. php file
Reply to discussion (solution)
Php configuration problems cannot identify php files
Try addtype application/x-httpd-php. php
Are you using the php environment?
Built. Command php info. Php displays php information
Can I change the browser type?
Php configuration problems cannot identify php files
Try addtype application/x-httpd-php. php
How can I modify the php configuration file? I cannot find php5.conf.
How can I modify the php configuration file? I cannot find php5.conf.
Configuration problems are generally found in the/etc directory.
You need to find the apache configuration file httpd. conf and add that line.
How can I modify the php configuration file? I cannot find php5.conf.
Configuration problems are generally found in the/etc directory.
I have done it. I can browse the localhost/web file from the browser, but it won't work if I double-click it to open the web file. why?
Php runs on a web server. you cannot open it from the desktop.
Php phpinfo. php can be displayed because it runs in cli mode.
You need a web server, such as apache, to run in a browser.
Ubuntu
Ubuntu apt-get install apache... there are several instructions for Baidu.