今天拿PHPstoem 写了个PHP的表单插入数据,然后直接在里面一运行,就一直提示什么未定义,其实是因为$_PSOT[] 取不到值。

phpstorm php $post数据为空的原因

 

后面发现原来是直接用phpstorm 运行PHP的话,他会自带端口,只要把localhost前面的端口去掉就行了。

然后上面找到了一种解决这个的办法,就是把路径设置成不带端口的。

phpstorm php $post数据为空的原因

phpstorm php $post数据为空的原因

 

相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2021-08-17
  • 2022-02-17
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2021-08-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
相关资源
相似解决方案