Skip to content

Cannot echo or json_decode long JSON string

I’m working with a large JSON data file (25 mb) in PHP. Right now, I’m able to get the file and check it’s string length, which I get 24479798 for, although I can’t echo out the string. After the echo strlen(), the rest of the script breaks down and I get no further outputs, including …

print_r() for many objects

For logging purposes, I am looking for something that behaves like print_r() (or similar), but accepts not only one object to be displayed, but many of them. Such as var_dump() is doing. Desired: Any suggestions? Answer Since no one is doing it… Self-answered question, based on @Peter Krebs comment: Nes…

Store multiple fields in JSON column (Nova CMS)

I have a posts table that has a json column “read_more_section”. And I want to store on that column the information regarding some fields on the NOVA CMS (title, description, label and link). Do you know how to properly do that in Nova? To store what is entered in these 4 fields in the json column…

PHP – Tunneling the API

I don’t know what this method called : Reverse Proxy , Tunneling, Bypassing ? Imagine, we have 3 website : 1. I bought the API or Payment Gateway service for example1.com , the website don’t have any content , forms, data. (Just to get the API) 2. Now, I want create tunnel between example2.com | e…

How To Display Number In Post WordPress

I want to display the sequence number in the wordpress loop in the sidebar by category Software but the number in the sequence is not showing, I don’t know how to display it. i want to show number like this this is my code in sidebar.php and this my code in content.php Answer You can pass arguments to g…

decoding email subject in EXIM log

in my EXIM log I have this email subject how can I decode it (human readable) using php ? Answer PHP: Strings A string is series of characters……If the string is enclosed in double-quotes (“), PHP will interpret the following escape sequences for special characters: Escaped characters Note: Unlike the do…