这个错误在PHP中是什么意思 [英] What is this error mean in PHP

查看:80
本文介绍了这个错误在PHP中是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我这个错误在php中意味着什么:





can someone tell me what this error mean in php :


Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in C:\xampp2\htdocs\slimapp\vendor\slim\slim\Slim\App.php:547 Stack trace: #0 C:\xampp2\htdocs\slimapp\vendor\slim\slim\Slim\App.php(339): Slim\App->finalize(Object(Slim\Http\Response)) #1 C:\xampp2\htdocs\slimapp\vendor\slim\slim\Slim\App.php(293): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #2 C:\xampp2\htdocs\slimapp\src\routes\customers.php(14): Slim\App->run() #3 C:\xampp2\htdocs\slimapp\public\index.php(17): require('C:\\xampp2\\htdoc...') #4 {main} thrown in C:\xampp2\htdocs\slimapp\vendor\slim\slim\Slim\App.php on line 547







i遵循本教程:





RESTful API with PHP& MySQL - YouTube [ ^ ]



我尝试过:



使用PHP& ;;的可靠API MySQL - YouTube [ ^ ]

推荐答案

然后询问该视频下的问题 - 我们不知道您的问题是什么以及您正在观看的背景或解决方案。



但是,错误信息说得非常正确,

Then ask the question under that video — we have no idea what your problem is and what the context or solution is that you are watching.

However, the error message tells quite correct,
引用:

致命错误:未捕获RuntimeException:输出缓冲区中的意外数据。也许你在一个开头<?php标签之前有字符?

Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag?



它期待一些其他类型的数据,但你传递了其他东西。再次检查PHP文件,如果需要,创建一个新文件。


it was expecting some other sort of data but you passed something else. Check the PHP file again, create a new one if needed.


这篇关于这个错误在PHP中是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆