c***g 发帖数: 224 | 1 i have installed php and apache and apache is running ok. but when i tried to
run some php script. the web browser prompted me to save or open the file.
Does that mean php is not installed correctly? Do I still need MVC++ to build
php file? |
t*****g 发帖数: 6 | 2 Your PHPserver i snot install correctly
write a new .php file, and put in:
info();
?>
if you see the server specification, (a long page), then u are ok. Otherwise
ur server is not working.
【在 c***g 的大作中提到】 : i have installed php and apache and apache is running ok. but when i tried to : run some php script. the web browser prompted me to save or open the file. : Does that mean php is not installed correctly? Do I still need MVC++ to build : php file?
|
m*******e 发帖数: 119 | 3 Do you have this line in your apache configuration file?
AddType application/x-httpd-php .php
You need to tell apache to treat your file as a php file, not a unknown file
format. For example, if you file has extension as index.phtml, that you should
tell apache:
AddType application/x-httpd-php .phtml
to
build
【在 c***g 的大作中提到】 : i have installed php and apache and apache is running ok. but when i tried to : run some php script. the web browser prompted me to save or open the file. : Does that mean php is not installed correctly? Do I still need MVC++ to build : php file?
|
c***g 发帖数: 224 | 4
should
tried
file.
【在 m*******e 的大作中提到】 : Do you have this line in your apache configuration file? : AddType application/x-httpd-php .php : You need to tell apache to treat your file as a php file, not a unknown file : format. For example, if you file has extension as index.phtml, that you should : tell apache: : AddType application/x-httpd-php .phtml : : to : build
|