php-curl

PHP 7.2 CURLFile Gives “Invalid Filename” Warning

╄→尐↘猪︶ㄣ 提交于 2019-12-02 09:55:16
I am having an issue using the CURLFile object ( curl_file_create ). I have tried a number of approaches, but no matter what I try, I end up getting a PHP Warning in the log files and the file is omitted from my cURL call. First, some information: PHP 7.2 Files have been confirmed that they exist and are readable by PHP/Apache php-curl and related php libraries are up-to-date This is a snippet from within an object, thus the references to $this . All variables are loading correctly. This is a continuation of another question I started that, when narrowed, seems to be unrelated to the primary

Android push Notification through firebase (server side)

无人久伴 提交于 2019-12-02 09:21:40
问题 I am trying to send push notification to my android device from server using firebase cloud messaging system. I was able to successfully register my device and token for my device was generated as well. I am having trouble sending notification to my device using the below script <?php function send_notification($token1,$message) { $url = 'https://fcm.googleapis.com/fcm/send'; $fields = array('registration_ids'=>$token1,'data'=>$message); $header = array('Authorization:key = <my key here>',

PHP 7.2 CURLFile Gives “Invalid Filename” Warning

巧了我就是萌 提交于 2019-12-02 06:07:47
问题 I am having an issue using the CURLFile object ( curl_file_create ). I have tried a number of approaches, but no matter what I try, I end up getting a PHP Warning in the log files and the file is omitted from my cURL call. First, some information: PHP 7.2 Files have been confirmed that they exist and are readable by PHP/Apache php-curl and related php libraries are up-to-date This is a snippet from within an object, thus the references to $this . All variables are loading correctly. This is a

Android push Notification through firebase (server side)

为君一笑 提交于 2019-12-02 05:48:43
I am trying to send push notification to my android device from server using firebase cloud messaging system. I was able to successfully register my device and token for my device was generated as well. I am having trouble sending notification to my device using the below script <?php function send_notification($token1,$message) { $url = 'https://fcm.googleapis.com/fcm/send'; $fields = array('registration_ids'=>$token1,'data'=>$message); $header = array('Authorization:key = <my key here>','Content-Type: application/json'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch

PHP 7.2 CURLFile Gives “Invalid Filename” Warning

雨燕双飞 提交于 2019-12-02 01:19:24
I am having an issue using the CURLFile object ( curl_file_create ). I have tried a number of approaches, but no matter what I try, I end up getting a PHP Warning in the log files and the file is omitted from my cURL call. First, some information: PHP 7.2 Files have been confirmed that they exist and are readable by PHP/Apache php-curl and related php libraries are up-to-date This is a snippet from within an object, thus the references to $this . All variables are loading correctly. This is a continuation of another question I started that, when narrowed, seems to be unrelated to the primary

php curl headers do not return from website?

為{幸葍}努か 提交于 2019-12-01 09:33:15
I use this command to get headers back from this specific page. curl -I https://www.gearbest.com/mobile-phones/pp_1686789.html?wid=1817324 i run the above command from terminal and i get these results... HTTP/2 200 content-type: text/html; charset=UTF-8 pragma: public last-modified: Fri, 02 Nov 2018 18:15:13 GMT gbcdnlang: en access-control-allow-origin: * access-control-allow-methods: GET, POST ng-cache: HIT x-edgeconnect-midmile-rtt: 36 x-edgeconnect-origin-mex-latency: 137 cache-control: public, max-age=60 expires: Fri, 02 Nov 2018 23:39:15 GMT date: Fri, 02 Nov 2018 23:38:15 GMT set-cookie

Apache 2.4.23 PHP7.x Windows 10 x64 php_curl not working

↘锁芯ラ 提交于 2019-12-01 01:04:30
I was trying to upgrade my server to latest Apache 2.4.23 and PHP 7.1 but it fail to load php_curl library, don't know why. PHP Warning: PHP Startup: Unable to load dynamic library 'ext\\php_curl.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 I have tried followings Change extension path to full path like d:\webserver\php\ext Copy php_curl.dll, libssh2.dll, libeay32.dll, ssleay32.dll to System32 , php/ext , apache/bin , php Added php path system variable Have tried both PHP7 and PHP7.1 All of these are x64 and all other extension loaded successfully and server

Call to undefined function curl_init() error

放肆的年华 提交于 2019-11-30 15:23:21
I am on a Win 64 bit OS, php 5.6.8 using Eclipse PDT to develop PHP. I have come across this Call to undefined function curl_init() error. I removed the ; preceeding extension=php_curl.dll in php.ini .Restarted the Apache server but still getting the same error. Any hint where I am going wrong? nico I had the same issue and after hours, I found a message here : http://php.net/manual/curl.installation.php which says, "Upgrading to php 5.6.9 on Windows 7 x64 cURL no longer is recognized. No errors on server start package just not available and didn't show in phpinfo.php . deplister.exe was ok I

Call to undefined function curl_init() error

亡梦爱人 提交于 2019-11-29 23:19:17
问题 I am on a Win 64 bit OS, php 5.6.8 using Eclipse PDT to develop PHP. I have come across this Call to undefined function curl_init() error. I removed the ; preceeding extension=php_curl.dll in php.ini .Restarted the Apache server but still getting the same error. Any hint where I am going wrong? 回答1: I had the same issue and after hours, I found a message here : http://php.net/manual/curl.installation.php which says, "Upgrading to php 5.6.9 on Windows 7 x64 cURL no longer is recognized. No

Scraping a dynamically loading website with php curl

强颜欢笑 提交于 2019-11-28 02:26:15
I am new to scraping and have scrapped two websites formally. But the problem appeared to me when I tried to scrape dynamic loading websites. When the website is rendered with JavaScript, I am unable to scrape the contents of the website then. Is there any way I can scrape the contents of that website using php curl or any other client related to PHP ? This is what I have done so far : $link = "https://www.glassdoor.com/Job/jobs.htm?suggestCount=0&suggestChosen=false&clickSource=searchBtn&typedKeyword=android+developer&sc.keyword=android+developer&locT=N&locId=192&jobType="; $ch = curl_init();