InimistTech Blogs

Web & Mobile App Tech Weblog

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

Category: PHP

Ideal way to perform email validation in php

Arvind KumarPHPLeave a Comment on Ideal way to perform email validation in php
A simple way to debug a php application in production mode

I found this email validation function while working in ActiveCollab. By default, this function uses PHP’s inbuilt filter_var function to validate email, which is supported in PHP 5 (> 5.2.0). If version of PHP is older (is less than 5.2.0)…

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 a module in ActiveCollab3

Arvind KumarPHP, ToolsLeave a Comment on Creating a module in ActiveCollab3

One page guide on creating a new modules to create home screen widget in ActiveCollab3 application. First we need to create a directory for our module. We are going to create it under a /path/to/activecollab/custom/modules directory (where /path/to/activecollab is full…

Read More→

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→

Installing PHPUnit in wamp in Windows7

Arvind KumarCakePHP, PHP, WindowsLeave a Comment on Installing PHPUnit in wamp in Windows7

Installing PEAR package manager Add php directory to your Windows’ Environment Variables PATH, if it is not already added. My wamp php path is “C:\wamp\bin\php\php5.3.13”. Check Adding to Environment Variables Path if you are not sure how to add a…

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.

Creating a new php functionality page in iLister, the business classifieds system

Arvind KumarPHPLeave a Comment on Creating a new php functionality page in iLister, the business classifieds system

Here’s the step by step guide to create a new functionality page in iLister. Let’s say we wanted to create a new small enquiry form at the http://www.yoursite.com/contact_us. For this to make happen we will create a new ContactUs handler…

Read More→

To check in a smarty template if it was the last page of the page results

Arvind KumarPHPLeave a Comment on To check in a smarty template if it was the last page of the page results

Here’s a method to check in a smarty template if it was the last page of page results. {if $listings.current_page gte ($listings.total / $results_per_page)|ceil} True {else} False {/if} where $listings.current_page is the current page user is on, $listings.total is the…

Read More→

Posts navigation

Previous 1 … 5 6 7 8 Next
  • Useful Linux Commands
  • Enlighter Example - CSS
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • 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
  • How to Modify WooCommerce Templates

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