When building a project on Windows using CMake, I got this error:   Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) Call Stack (most recent call first): C:/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/CMake/share/cmake-3.25/Modules/FindProtobuf.cmake:650 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) […]

When I built a project with CMake, I got this error:  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Call Stack (most recent call first): C:/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/CMake/share/cmake-3.25/Modules/FindCURL.cmake:182 (find_package_handle_standard_args) cmake/libcurl.cmake:5 (find_package) […]

Download and install software required to build Qt6 with VS To build Qt6 on Windows using Visual Studio, you need to install several software: cmake perl python3 ninja Visual Studio […]

We’ve talked about how to build openssl with msys2 and Mingw. Today, I will talk about how to build openssl with Visual Studio 2017 and NASM. step1: download/install required software […]

How to debug php on remote server?

I’ve talked about debugging php using netbeans. Debugging php locally is relatively easy. You only need to install apache server such as xampp/wampp on your PC, and put your website […]

If you want php file_get_contents to use proxy, you can use the following code: $options = array( ‘http’ => array( ‘proxy’ => ‘tcp://localhost:3128’, ‘request_fulluri’ => true, ), ); $cx = […]

The default include path in php is “.:/usr/share/pear:/usr/share/php”(3 directories). You can change the include path by the include_path=”” option in php.ini. Note that the directories are  separated by colon  in […]

Two modifiers are involved in php multiline regex expression: m and s. Specifically, the m modifier has influence on the interpretation of  the ^ and $ symbols while the s […]