我的为什么用www.myphp无法打开
A-庆装饰设计
A-庆装饰设计 2018-02-11 20:37:58
0
4
1161

<?php
header('content-type:text/html;charset=utf-8');
//用户输入一个数字,是奇数还是偶数
//判断用户输入的数字是否是闰年
//用户输入3个数字,输出其最大值

$number=$_POST['number'];
// echo $number;
// if($number%2==1){
//   echo $number,'是基数<br/>';
// }
//
// if($number%2==0){
//   echo $number,'是偶数<br/>';
// }
if($number%2==0){
 echo $number.'是偶数<br/>';
}else{
 echo $number.'是奇数<br/>';
}

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

répondre à tous(2)
代

host 里

127.0.0.1 www.myphp.com

  • répondre 绑定了,还有哪需要
    A-庆装饰设计 auteur 2018-02-13 08:20:41
  • répondre 不知道你用的开发工具,举个例子吧修改比如Apache里的httpd-vhost.conf 里的代码,例如我是放在了www目录下的thinkphp目录 # &lt;VirtualHost *:80&gt; ServerName test.com ServerAlias test.com DocumentRoot e:/wamp/www/thinkphp/public &lt;Directory &quot;e:/wamp/www/thinkphp/public/&quot;&gt; Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local &lt;/Directory&gt; &lt;/VirtualHost&gt; #
    heloo auteur 2018-02-13 19:51:23
lge

hosts里绑定了嘛

  • répondre 怎么绑定?
    A-庆装饰设计 auteur 2018-02-12 10:49:20
  • répondre PHPstudy
    A-庆装饰设计 auteur 2018-02-13 08:20:00
  • répondre 你是用的PHPstudy还是PHP工具箱
    韦小宝 auteur 2018-02-12 10:50:08
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!