search

Home  >  Q&A  >  body text

Why can't I open it using www.myphp?

<?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-庆装饰设计2485 days ago1281

reply all(4)I'll reply

  • heloo

    heloo2018-02-12 22:20:56

    host inside

    127.0.0.1 www.myphp.com

    reply
    0
  • A-庆装饰设计

    It’s bound, what else is needed?

    A-庆装饰设计 · 2018-02-13 08:20:41
    heloo

    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 · 2018-02-13 19:51:23
  • 韦小宝

    韦小宝2018-02-12 09:23:35

    Hosts Binded

    reply
    0
  • A-庆装饰设计

    How to bind?

    A-庆装饰设计 · 2018-02-12 10:49:20
    A-庆装饰设计

    PHPstudy

    A-庆装饰设计 · 2018-02-13 08:20:00
    韦小宝

    Are you using PHPstudy or PHP Toolbox?

    韦小宝 · 2018-02-12 10:50:08
  • Cancelreply