Skip to content
Advertisement

Keep XAMPP & Install WAMP

I am using Windows 7 and I have XAMPP installed. In Git Bash when I type php -v I get PHP 5.6.15. I need newer version of PHP because I am using Composer and I am unable to install packages that require PHP 7.1. I know that one way to solve this is to backup projects, uninstall the current XAMPP

How to see full query in New Relic

When I go to APM > Applications > PHP Application > Databases it shows the list of queries and their performance. But the queries are shown like

select. How can I see the full query?…

PHP fclose writing 0x30 0x33 to end of file

I am tring to create a binary file from a hex caractere array, it works as expected on the file but fclose writes unexpected 0x31, 0x30 and 0x33 bytes at the end of the file. This behavior does not …

PHP base64 decode returns garbage characters

I’m decoding a string that was encoded in Python. When using an online simulator for the decoding: https://www.base64decode.org/ The correct value is presented but when I’m decoding it on my end using PHP base64_decode it returns garbage characters: [“(“,”bean_id”,”=��M�MM̋LY �KM X�KNX��KY��X��L؍ ��H� I’m guessing this has something to do with my charset? The encoded string: WyIoIiwiYmVhbl9pZCIsIj0+IiwiMDAxN2E1NzItMWQ2NS00NWJhLTljNzEtZGRmNmFiMzkzYjQ0IiwiKSJd When decoded using the

Iterate array of arrays in reverse and subtract following subarray values from current subarray values

I have a dynamic multidimensional array like this: I need to loop through the subarrays and overwrite the current values of each subarray to represent the difference between the original value and the following value with respect to the subarray keys. This describes the arithmetic desired on each subarray element (the value after the = is the new desired value):

Advertisement