Invoke call_user_func_array error: expected to be a reference, value given
IssueUse the call_user_func_array method to call a callback, and pass parameters by reference. The c...
Get file name without file extension in PHP
This article introduces two ways to get file name without file extension in PHP.1. Using regular exp...
Get text between <tag> and </tag> with PREG in PHP
When we make a simple web crawler in PHP, we often need to extract HTML tags. We can use some third ...
PHP 7.4 configure: error: The pkg-config script could not be found or is too old
IssueIn Linux and Mac Os, I compile the source code of PHP 7.4.9. Run the following commands.$ ./con...
PHP 5 Configure error in Mac: Undefined symbols for architecture x86_64: "_libiconv", referenced
IssueIn Mac OS, I compile the source code of PHP 5, include 5.4.45/5.5.38/5.6.40. Run the following ...
Handle large file downloads in PHP
In order to handle file download, we need to response several HTTP headers and write a file to the o...
Support download with resume in PHP
RequirementIn web application, we often need to provide file downloads. For small files, there is no...
Insert string at specified position with PHP
Use PHP's substr_replace() method to insert a string into an existing string. Refer to substr_repla...
Generator random string with PHP
Two ways to generate random strings using PHP.1. With rand methodfunction generateRandomString($leng...
Include OpenSSL support of php 5 in Mac OS
IssueUsing the openssl_encrypt() method in Mac OS, something went wrong.Call to undefined function o...
Topics
Hot Articles