草庐IT

request_tracking_no

全部标签

php - Windows 更新警告 : Unknown: failed to open stream: No such file or directory in Unknown on line 0

Warning:Unknown:failedtoopenstream:NosuchfileordirectoryinUnknownonline0Fatalerror:Unknown:Failedopeningrequired'C:/School/OneDrive-Noorderpoort/PHP/htdocs/Jaar1/Blok1/Les7/oefening16.php'(include_path='C:\xampp\php\PEAR')inUnknownonline0经过长时间的Windows更新后,当我尝试通过本地主机打开php文件时突然出现此错误。我该如何解决这个问题?

php - 教义 - [语义错误] - 错误 : Class has no field or association

我正在尝试使用Doctrine的DQL运行查询在存储库中,我收到以下错误:QueryExceptioninQueryException.phpline63:[SemanticalError]line0,col100near'test_suite_id':Error:ClassApplication\Model\Entity\Pagehasnofieldorassociationnamedtest_suite_id协会一个User可以有多个TestSuite。一个TestSuite可以有多个Page。因此,我在User和TestSuite以及TestSuite和Page分别。以下是我的实

php - 文件获取内容(): No such host is known error

我正在使用file_get_contents函数将URL转换为字符串:$contents=file_get_contents("http://google.com");但是,我收到以下错误:file_get_contents()[function.file-get-contents]:php_network_getaddresses:getaddrinfofailed:Nosuchhostisknown.如何在我的本地主机上解决这个问题? 最佳答案 您的“本地主机”无法将名称google.com解析为IP地址,这意味着您的机器无法/

php - Dompdf 错误 "No block-level parent found. Not good."

require_once("function/dompdf/dompdf_config.inc.php");$dompdf=newDOMPDF();foreach($modulesas$module){$output="Hello".$module['name'];$dompdf->load_html($output);$dompdf->render();$output_pdf=$dompdf->output();file_put_contents($dir.$name_modulo.".pdf",$output_pdf);}Fatalerror:Uncaughtexception'D

php - "E: Package ' php-soap ' has no installation candidate"on php :7. 0-fpm Docker 镜像。退出代码:100

我想标题说明了一切......我有一个来自php:7.0-fpm图像的容器集。在Dockerfile中,我运行apt-getupdate&&apt-getinstall-yphp-soap。但是,它失败并返回100作为退出代码。此外,还有E:Package'php-soap'hasnoinstallationcandidate。基于此discussion,我需要安装apt-transport-https。我把它安装在Dockerfile中,但仍然是同样的错误。我该怎么办? 最佳答案 FPM镜像源码自带php。当您运行apt-geti

php - 使用 Ajax.Request 将 JSON 从浏览器传递到 PHP 的最佳方式

您好,我有一个JSON对象,它是一个二维数组,我需要使用Ajax.Request将它传递给PHP(我只知道怎么做)。...现在我使用js函数手动序列化我的数组...并以这种格式获取数据:s[]=1&d[]=3&[]=4等....我的问题是:有没有办法更直接/高效地传递JSON对象?...而不是自己序列化它?感谢您的任何建议,安德鲁 最佳答案 你也可以使用Prototype的函数toJSON()将数组转换为JSON对象。通过Ajax调用将其传递给服务器后,只需使用PHP的函数json_decode()解码对象。

php - Vagrant/Puppet --- 确保 : change from present failed: Could not set 'present on ensure: No such file or dir

我正在使用Vagrant和Puppet在Ubuntu上安装Apache和PHP。但是,我在vagrantup期间收到以下错误。我认为模板的路径是正确的,那为什么会出错呢?我正在使用设置here修改以确保apt-getupdate在任何其他操作之前运行错误←[1;35merr:/Stage[main]/Php/File[/etc/php5/apache2/apc.ini]/ensure:从缺席出席失败:无法设置“出席确保:没有这样的文件或目录ectory-/etc/php5/apache2/apc.ini.puppettmp_6187在/tmp/vagrant-puppet/module

php - 授权 header 和 apache_request_headers 函数

我一直在努力获得apache_request_headers()在我的服务器上工作。我已经升级到最新的PHP5.4稳定版,并将我的PHP处理程序更改为FastCGI,因为这允许您运行apache_request_headers()函数。由于权限问题,我不想将PHP作为apache模块运行。我的新设置一切正常,但唯一的问题是apache_request_headers()似乎没有获取我的OAuth2服务器所需的“授权”header。我发送的标题是:Authorization:Bearerxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx但是,如果我发送以下header

php - 谷歌地图 PHP CURL 问题 "Your client has issued a malformed or illegal request. That’ s 我们都知道。”

我有一个使用CURL和GoogleMapsAPI返回地址坐标的函数。代码如下:functionget_coordinates($address_string){$address=urlencode($address_string);$url="https://maps.googleapis.com/maps/api/geocode/json?address=".$address."&key=".$api_key;$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER

php - request::is_ajax() 在 Kohana 中如何工作?

Kohana如何确定请求是否为AJAX请求?referrer字符串有什么不同吗?我是否需要添加GET参数,也许?ajax=true? 最佳答案 它会检查请求是否由XMLHttpRequest发出,因为大多数浏览器在这种情况下会发送一个带有此指示的header:headerHTTP_X_REQUESTED_WITH将设置为XMLHttpRequest。 关于php-request::is_ajax()在Kohana中如何工作?,我们在StackOverflow上找到一个类似的问题: