Skip to content

PHP – html_entity_decode to entire array

I am fetching JSON data for use in my website and I need to echo it, like this: <?php $json = file_get_contents("/lang/translator.php"); // uses preg_replace to remove whitespace/newlines from …

php://memory IO stream and fgetcsv()

I want to parse csv-like string so I can emulate csv and assert it into a test case. But it won’t parse into arrays. This is the output: Answer Remove the rn, not needed Your moving the pointer twice per loop, change to $parsed[] = $data

WordPress: how to hide toolbar in post editor?

I have a Custom Post Type (Products) in my WordPress web site. This is a WooCommerce Product, if it’s necessary to know. I need to hide toolbar (1) into wp-editor on Add Product page. Also I need to hide “Add media” button (2) and “Visual/Text” tabs (3). How do I hide them? Maybe…

Paypal express checkout : systematic 10486 error

i use paypal express checkout to sell simple benefit on my website. When i am with sandbox, it works fine. But as soon as i change for live mode with real password and signature, i get systematically this error : My buyer account is good and no problems to buy on other websites. I asked friends to try with th…