草庐IT

curl_error

全部标签

php - fatal error : Call to undefined function validation_errors() using codeIgniter

fatalerror:使用codeIgniter调用未定义函数validation_errors()这是我的comments.phpViewNameEmailComment这是我的news_model.phpload->database();}//setcommentpublicfunctionset_comment(){$this->load->helper('url');$this->load->helper('date');$data_c=array('comment_name'=>$this->input->post('comment_name'),'comment_email

php - Magento : Fatal error: Class 'Mage_Giftcards_Helper_Data' not found in . ..../app/Mage.php 第 546 行

我安装了一个模块扩展,它在管理员中抛出一个fatalerror“fatalerror:类‘Mage_Giftcards_Helper_Data’在..../app/Mage.php中找不到,第546行”。我已提交此链接https://stackoverflow.com/a/9191286/2919940还有这个链接https://magento.stackexchange.com/a/7133/3693但是我有Webtex_Giftcards_Helper在我的config.xml中,我有这个类classWebtex_Giftcards_Helper_DataextendsMage_C

PHP curl 放 500 错误

我有一个curlput请求,在我的本地主机上运行良好,但在实时服务器上它会返回500错误。这是我的代码:publicstaticfunctionsend($xml){$xml=str_replace("\n","",$xml);//Writetotemporaryfile$put_data=tmpfile();fwrite($put_data,$xml);fseek($put_data,0);$options=array(CURLOPT_URL=>'http://*****************/cgi-bin/commctrl.pl?SessionId='.Xml_helper::

php - cURL 正在从 Pirate Bay 检索编码的 HTML

我正在创建一个脚本来抓取网站www.piratebay.se。脚本在两三天前工作正常,但现在我遇到了问题。这是我的代码:$URL='http://thepiratebay.se';$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$URL);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0(Windows;U;WindowsNT5.1

php - CURL 无法运行 URL 并返回 302

我正在尝试通过CURL运行一个URL(具有注销功能)。但它返回302http代码。当我运行POSTMAN(GoogleChrome插件)或POSTER(Firefox插件)时使用相同的url,然后返回正确的结果({"status":"success"})。任何帮助将不胜感激。URL(JAVA应用程序URL):http://website.mywebsite.com:8083/VideoBook/signout.action我的代码://Openlogfile$logfh=fopen("GeoserverPHP.log",'w')ordie("can'topenlogfile");//I

php - 如何将额外数据存储到多 curl 信息处理程序中?

我无法在多curl场景中找到有关特定curl句柄的更多信息。这是代码。$job_count=5;while($eachPr=$prList->fetch()){for($job_number=1;$job_numbergetURL($eachPr["name"],$eachPr["category"]);$this->log($url);$curl_handle=curl_init();curl_setopt($curl_handle,CURLOPT_USERAGENT,$userAgent);curl_setopt($curl_handle,CURLOPT_URL,$url);cur

php - Eloquent fatal error : argument passed not the right instance

我正在使用Slim和Eloquent在PHP中构建端点系统,如概述here.在我的本地开发人员中运行它时,下面的代码失败并出现基于方法预期的fatalerror//LoadEloquent$connFactory=new\Illuminate\Database\Connectors\ConnectionFactory();$conn=$connFactory->make($settings);$resolver=new\Illuminate\Database\ConnectionResolver();$resolver->addConnection('default',$conn);$

php - fatal error : Class 'Stripe' not found in C:\wamp\www\

我收到一个找不到类的错误,但我清楚地知道它所在位置的正确路径:我遇到的每篇文章都声称问题出在(不包括正确的路径)require_one、include或require。(我已经尝试了所有3个)。但仍然没有运气。我的数据库调用遵循相同的格式,我的WAMP服务器在创建我的数据库类时没有问题。这是直接从我的文件explore复制过来的(复制粘贴)网站\stripe-php-2.1.0\stripe\lib\Stripe.php我用来尝试访问Stripe的php文件与“网站”位于同一位置。PHP版本5.5.12教程引用:http://www.larryullman.com/2013/01/09

php - fatal error : Unknown: Failed opening required Error in Laravel 5. 2 授权

我刚刚在我的应用程序中安装了laravel身份验证,并在URLhttp://localhost:8000/启动了我的服务器phpartisanserve我得到了以下错误。我正在使用Xampp和Windows10。Xampp安装在D根目录中。Warning:Unknown:failedtoopenstream:NosuchfileordirectoryinUnknownonline0Fatalerror:Unknown:Failedopeningrequired'D:\xampp\htdocs\ecom/server.php'(include_path='.;D:\xampp\php\p

php - 如何将 POSTMAN 中的数据转换为 PHP Curl 请求?

我在postman中有一个API。我想创建一个CURL请求并获得正确的响应。这是我的POSTMANAPI。我成功地得到了这个回应。"{\"Request\":{\"state\":\"Manama\",\"address\":\"406FalconTower\",\"address2\":\"DiplomaticArea\",\"city\":\"Manama\",\"country\":\"BH\",\"fullname\":\"DawarKhan\",\"postal\":\"317\"},\"Response\":{\"status\":\"Success\",\"code\":