Posts marked with "Posts" in posts

Group Chat In PHP With Users’ Typing Status

I wrote a post on creating Group Chat in PHP. A comment was posted by Ravi asking if it was possible to include user’s typing status. It was a fascinating and a good idea to add user’s typing status. So, I worked on the code and knew it was possible. I’m going to tell you how to implement the display of users’ typing status on the Group Chat I created earlier.... [READ MORE]

Native JavaScript Equivalents of jQuery

If you want to do some little task on your website, you don’t need jQuery. But if you only did work with jQuery, you won’t know the JavaScript functions that do the same thing. I have ran in to this problem and found the real JavaScript functions in replacement of jQuery functions. I’m going to share it with you. This post will continue to expand when jQuery adds new functions.... [READ MORE]

New Theme : Light, Simple & Fast

As you can see, I changed the theme of this blog with a new theme. If you have visited css-tricks.com, you can see there are similarities to it’s theme and mine. I really liked Chris Coyer’s theme and I contacted him to lend me the theme. But, no response. So, I decided that I should create my own theme. By WordPress Support forum, I found _s site. Underscores provide a starter theme for WordPress.... [READ MORE]

‘return false’ vs ‘e.preventDefault()’ In jQuery

I decided to add some improvements to Open and fix some bugs. While I was adding two submit listeners on a form, it didn’t work. I have tried everything but still the problem came up. So, I removed return false; and used e.preventDefault();. It worked ! So, why didn’t the submit listener called on the element ? The problem was return false will do **e.stopPropagation() **and e.preventDefault(). If e.stopPropagation() is ran, then any other submit event handlers of the element won’t call.... [READ MORE]

GOD Is Open Source

This is just my opinion. Say what you think about this using the comments. There are many many religions in the world and we are all part of a religion (or not). But, whatever the religion we are in, we all have a single GOD. A GOD who created atoms to the biggest mammal in Earth. All religions are just a path to GOD. Every religion points to GOD and whatever religion we choose, we all reach a single place.... [READ MORE]

Download Zip Files Dynamically in PHP

Zip file downloading is used by websites. The most important and popular of them is WordPress. They use Zip files for downloading plugins, themes and even their versions. They do it ofcourse, dynamically. You just provide the location of the file and PHP will download it to the user for you. Actually HTTP headers have the main role in the downloading. Demo We make the headers using header function in PHP and the browser will take care of the rest.... [READ MORE]

Google Hangouts Is Down

Again, one of Google’s service is down. This time it’s Google Hangouts also known before ad Google Talk. Google Sheets are down too. The downtime of these services started from 17 March 9:45 PM IST. I noticed the Internal Server Errors when connecting to Google server by Pidgin messenger. I retried again and again, but the problem still poped up. I went to Twitter and found out, I wasn’t the only one that experienced this problem.... [READ MORE]

Log In With Username / E-Mail in PHP Login System

If your login system have both username and email parameter, then you can allow your users to log in with username or email. This is very easy for users, because if they forget their username, then they can log in with their email address. I will tell you an easy to way to set up log in with both username and email. It’s very easy. Demo A change in your SQL query can make this possible.... [READ MORE]

How To Download & Extract Zip Archives in PHP

If you used WordPress before, you know that when you do plugin installation action, WordPress automatically downloads and extract the plugin zip file. If you’re app needs something like this, you will find this post useful. PHP has the Zip Archive Extension. You can see the php manual for installing ZipArchive Extension. The usage of ZipArchive extension is very easy. Download For downloading, we will use cURL. First we create a blank zip file, download the zip file from server and put it’s contents to the blank zip file we created.... [READ MORE]

Get Absolute Directory Path of Current File in PHP

If your code is including other files, you will encounter problems like “The file is not found”. This is because, PHP doesn’t know the absolute path of file. So, if you are including files on another file, you should mention the absolute path of file. But, If you’re PHP application is being used by other people, then the absolute path which you mentioned in your system won’t be the one of the others’ systems.... [READ MORE]

Follow/Subscribe

Telegram 

Mastodon  Twitter

GitHub GitLab

Subdomains

Demos  Lab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab