Why can't I open it using www.myphp?
A-庆装饰设计
A-庆装饰设计 2018-02-11 20:37:58
0
4
1209

header('content-type:text/html;charset=utf-8');
//The user enters a number, whether it is an odd or even number
//Judge the user Whether the entered number is a leap year
//The user inputs 3 numbers and outputs the maximum value

$number=$_POST['number'];
// echo $number;
// if($number%2==1){
// echo $number,'is the base
';
// }
//
// if ($number%2==0){
// echo $number,'is an even number
';
// }
if($number%2==0){
echo $number.' is an even number
';
}else{
echo $number.' is an odd number
';
}

A-庆装饰设计
A-庆装饰设计

reply all (2)
代

host inside

127.0.0.1 www.myphp.com

  • reply It’s bound, what else is needed?
    A-庆装饰设计 author 2018-02-13 08:20:41
  • reply I don’t know what development tools you use. For example, modify httpd-vhost.conf in Apache. The code in, for example, I put it in the thinkphp directory under the www directory. # <VirtualHost *:80> ServerName test.com ServerAliastest.com DocumentRoot e:/wamp/www/thinkphp/public <Directory "e:/wamp/www/thinkphp/public/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> #
    heloo author 2018-02-13 19:51:23
lge

Hosts Binded

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!