InimistTech Blogs

Web & Mobile App Tech Weblog

  • Home
  • Laravel
  • React
  • Javascript
  • Linux
  • PHP
  • git
  • WordPress
  • Hindi to Unicode

Tag: PHP

How to know the location of a function defined in PHP

Arvind KumarPHPLeave a Comment on How to know the location of a function defined in PHP
A simple way to debug a php application in production mode

Sometimes you want to know the location of a function defined in your php application. For example you are debugging a large online web application or website. To continue debug you want to enter into a function to debug. You…

Read More→

PHP – Fix apostrophe(‘) converting to entity &#039 in csv export

Arvind KumarPHPLeave a Comment on PHP – Fix apostrophe(‘) converting to entity &#039 in csv export

1) If you read a .csv file for download: use \xEF\xBB\xBF after headers and just before you echo file data. For example: echo “\xEF\xBB\xBF”; // UTF-8 BOM readfile($file); 2) If you echo per line use htmlspecialchars_decode to covert single and…

Read More→

How to get file extension using PHP

Arvind KumarPHPLeave a Comment on How to get file extension using PHP
A simple way to debug a php application in production mode

A simple yet powerful approach to get file extension using PHP. We usually need to extract file extension from file name while uploading file so that we could generate new name and rename file to our convenience. We could create…

Read More→

Useful php debug function to output data with line number

Arvind KumarPHP1 Comment on Useful php debug function to output data with line number
A simple way to debug a php application in production mode

A very useful php debug function i like to use to print debug output to browser window. In some cases where i may not output the debug to browser window i use the same php debug function to receive debug…

Read More→

Covert PHP config size values to bytes

Arvind KumarPHP1 Comment on Covert PHP config size values to bytes

Convert PHP config value (2M, 8M, 200K…) to bytes. Use full when converting values received, for an example, through ini_get(‘memory_limit’).

Ideal way to define directory separator in PHP

Arvind KumarPHPLeave a Comment on Ideal way to define directory separator in PHP

Ideal way to define directory separator in PHP // Directory separator if(!defined(‘DIRECTORY_SEPARATOR’)) { define(‘DIRECTORY_SEPARATOR’, strtoupper(substr(PHP_OS, 0, 3) == ‘WIN’) ? ‘\\’ : ‘/’); } // if

Creating and Parsing JSON data with PHP

Arvind KumarPHPLeave a Comment on Creating and Parsing JSON data with PHP

What is JSON? JSON is ultra-weight data interchange data format used over the internet for transferring the data. While XML is a dominant data interchange format over the internet but JSON is less complex and light-weight data.

Caching large menus or header/footer links in WordPress

Arvind KumarPHP, WordPressLeave a Comment on Caching large menus or header/footer links in WordPress

Even if you are not using some robust caching plugin or tool in wordpress you can cache small chunks of data using basic caching techniques of PHP. In my example i had been creating a few dozens of links in…

Read More→

Creating a random string in PHP

Arvind KumarPHPLeave a Comment on Creating a random string in PHP

Here’s a very useful function to generate a random string in php. I use this function quite often especially while working in core php projects.

How to debug a php application in production/live mode

Arvind KumarPHP, ToolsLeave a Comment on How to debug a php application in production/live mode

How to debug a live website built in php? Here’s a basic, simple and custom method i usually use to debug live or production web applications (web sites). First of all i place the following lines of code in a…

Read More→

Posts navigation

Previous 1 2 3 4 Next
  • Useful Linux Commands
  • Enlighter Example - CSS
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • React Context API vs. Redux: Which One Should You Use?
  • Build Reusable Components in React
  • Introduction to Node.js for Beginners
  • Getting Started with the MERN Stack: A Beginner’s Guide
  • Introduction to Node.js for Beginners

About Arvind

Arvind Thakur is a Full Stack Web Developer. He founded and runs a Software Development company by the name Inimist Technologies in Chandigarh, India. >> know more
Copyright © All rights reserved.
Blog Kit by WP Charms
Facebook
fb-share-icon
LinkedIn
Share
WhatsApp
Follow by Email
Twitter
Post on X
Reddit
Pinterest
Instagram
RSS
Telegram