+
1 2 2
  1. #1
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    3,996
    10
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  2. #2
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    3,996
    10

    : cURL multi / guzzle to fix 100% CPU high usage

    Requirements

    • PHP 7.2.5
    • To use the PHP stream handler, allow_url_fopen must be enabled in your system's php.ini.
    • To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled with OpenSSL and zlib.

    Note
    Guzzle no longer requires cURL in order to send HTTP requests. Guzzle will use the PHP stream wrapper to send HTTP requests if cURL is not installed. Alternatively, you can provide your own HTTP handler used to send requests. Keep in mind that cURL is still required for sending concurrent requests.


    Installation

    The recommended way to install Guzzle is with Composer. Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project.
    # Install Composer

    curl -sS https://getcomposer.org/installer | php


    You can add Guzzle as a dependency using Composer:
    composer require guzzlehttp/guzzle:^7.0
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  1. : 6
    : 01-05-2020, 06:53
  2. : 0
    : 18-09-2019, 09:45
  3. : 0
    : 29-08-2019, 01:13
  4. : 0
    : 29-06-2019, 21:21
  5. Eng Amr Adel
    : 0
    : 07-12-2009, 14:17