我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

从HTTP请求运行PHP程序时如何打印到终端?

If I run startIRsend.php from the comamnd line, it works. If I try to start it from my HTML button the PHP code prints nothing in the terminal.

home.html:

<html>
<head>
</head>
<body>
<form action="startIRsend.php" method="post">
 <input type="submit" value="Run me now!">
</form>
</body>
</html>

startIRsend.php

<?php
echo "hi";
?>

近期文章

  • 未定义的索引:附加[重复]
  • http请求在php中失败
  • 客户端授权
  • 如何在数据库中保存图像?
  • PHP内置Web服务器是否支持使用flush()刷新输出缓冲区?
  • Profilegrid登录/重置密码和错误
  • Laravel的分页是如何工作的?
  • PHP session_set_cookie_params()是否在用户计算机上创建可操作的cookie?
  • 根据复选框输入和文本输入自动添加SQL查询 - 尝试构建搜索过滤系统
  • 无法连接到mysql - 在InMotion托管上使用PHP 7.1设置Laravel 5.8时出错。 多个PHP版本
  • Symfony:一个'输入'中的两个'值'
  • Wordpress wp_update_plugins运行每个请求
  • 更新实体对象时,无法在foreach循环外调用entityManager-> flush()
  • 如何在循环中POST变量?
  • 使用php的time()时不允许序列化'Closure'
  • 如何从url使用php cURL下载pdf?
  • 如何在srmklive laravel包中使用paypal API凭证
  • CakePHP 3.6:速度优化(包含或loadModel)
  • 使用.htaccess将URL映射到被认为是不良做法的处理程序?
  • 使用union()和with()使用Model中的关系进行查询

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华