IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    不依赖于web服务器的php测试环境

    istrone发表于 2015-02-08 21:17:19
    love 0
     $_POST['author'],
                                          'text'    => $_POST['text']];
    
                    $comments = json_encode($commentsDecoded, JSON_PRETTY_PRINT);
                    file_put_contents('_comments.json', $comments);
                }
                header('Content-Type: application/json');
                echo $comments;
                break;
            default:
                return false;
        }
    }
    
    
    Maybe you like these:
    PHP改变当前工作路径
    一段求相对路径的PHP代码
    用PHP写Shell
    PHP经典代码
    PHP数组小结
    无觅


沪ICP备19023445号-2号
友情链接