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

<?php
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<br/>';
// }
//
// if ($number%2==0){
// echo $number,'is an even number<br/>';
// }
if($number%2==0){
echo $number.' is an even number<br/>';
}else{
echo $number.' is an odd number<br/>';
}

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. # &lt;VirtualHost *:80&gt; ServerName test.com ServerAliastest.com DocumentRoot e:/wamp/www/thinkphp/public &lt;Directory "e:/wamp/www/thinkphp/public/"&gt; Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local &lt;/Directory&gt; &lt;/VirtualHost&gt; #
    heloo author 2018-02-13 19:51:23
lge

Hosts Binded

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template