Posts marked with "PHP" in categories

Finding The Value Of Pi

Everyone must have heard of Pi, the irrational number that never ends. It goes by this :

3.14159265...

I have been learning about Pi since I was in 8th grade. All the time in school, I was curious about to which Pi extends.

Now, I know the extend – Infinity :P. I dedicated my precious Christmas vacation for finding the useless value of Pi.

Why ? Curiosity. Simply, the curiosity made me want to do this. Besides, it’s always fun to do something interesting.

... [READ MORE]

The Anagram Game

As you know, I have made Lobby – The localhost OS. I am in the process of adding more and more apps to it. This post explains how I created the Anagram game and the algorithm used for it.

You can download the app from here or search for “Anagram” in the Lobby Store.

The full source code is available on GitHub.

Anagram Game

Anagram Game

How It Works ?

There is a dictionary file containing many english words. When a user requests for a new puzzle, these happens :

... [READ MORE]

logSys Admin

After the release of logSys in May 2014, many have been asking for an admin panel of logSys. It’s finally here. I’m extremely happy to release logSys Admin as an app of Lobby.

logSys Admin Logo

logSys Admin Logo

You can find the app here on Lobby.

Installation

  1. Download & Install Lobby.
  2. Open Lobby
  3. Open **Lobby Store **and search for “logSys Admin”.
  4. Click Install button.

Usage

  1. Open App from the Lobby Dashboard and click “Go To Admin” button.
  2. Click “Setup logSys Admin” button.
  3. Enter the credentials of your database as well as the table which logSys uses and Save.
  4. Once saved, you can use logSys Admin

The dashboard page has some quick facts about your users :

... [READ MORE]

Lobby

[Lobby Logo][1]
Lobby Logo

Lobby is a new project of mine which was under development for more than a year. I’m proud to release it today with the first version 0.2Lobby is a localhost Operating System like AndroidiOS etc.

What It Is

I’ll explain it to you. There are many OSs in this world. From Ubuntu to Windows to Mac to Android to iOS and so on… Developing an application is tough as you have to port it to different OSs. And the language to develop is also different :

... [READ MORE]

Set Same Time Zone in PHP & MySQL

Time Zones are important if you’re creating a social app which will include chat, social network and others which is interacted with the society.

There are many time zones and you have to choose one to set in your server. I would totally recommend using UTC instead of your time zone in server.

Web Server and Database server are different and they each have their own configuration. This includes the time zone too. In this short post, I’m going to show how you can set the same time zone in both of these servers.

... [READ MORE]

Implement 5 Star Rating System With PHP & JavaScript

User ratings are important for your site if you provide downloads of files or run an E-Commerce shop. It is the ratings of other users that tempt your site’s users to buy/download something. So, it is necessary for a site like this to have a Rating System. If you haven’t implemented it yet or want to replace your existing system with a clean one, you’re at the right place.

I give to you, Francium Star : a new member in our Francium Project series. This PHP & JS combined package will provide your site a complete Rating System and it’s very easy to implement.

... [READ MORE]

Advanced Live Group Chat With WebSocket, PHP & jQuery

WebSocket is one of the awesomest part of the HTML5 and we developers should experiment with it as it will be the future of client to server communication.

In a recent post, I made a tutorial of live chat with WebSockets and PHP. It was the basic step into websockets. But, I have created another chat which is more advanced that has the capability to upload images as well as record audio from microphone of the user. It’s somewhat like WhatsApp or Facebook Messenger.

... [READ MORE]

Free Translate Using Google Without API

Google Translate is one of the best tools on the internet that translates text to another language. Currently it supports 90+ languages. Google has its API for translate, but its not free and you have to go through a lot of procedures. It’s boring, right ? If your app/website needs a translator, this post will help you.

As you know Google Translate is a web app and you can monitor the requests it sends to the server. If you look through the Developer Tools during a translation process, you will get the URL !

... [READ MORE]

Coding Standards

Writing programs should be meaningful and in a long future, if you or anyone looks back at the code, then he/she must understand it. We all write codes, but do we have a standard of writing the code ? If we write codes without any standards and just go for it, then the program would be messy and no other programmer would like to read it.

Here’s what I’m talking about : A guy writes code as he like :

... [READ MORE]

Reproducing Drupal Contact Module Issue

This post contains information regarding the Drupal Core issue. This post will explain how the bug was reproduced and how the test patch was created.

The bug was “Wrong message displayed after contact form mail(s) cannot be sent”.

Requires

  • Drupal 8.0
  • Contact Module

Note that URLs mentioned in this post “http://mydrupalsite.com/" is the URL of your Drupal installation and “/mydrupalsite” is the folder location of Drupal installation.

Reproducing Bug

  1. First of all we need to make a contact form page. Go to the Contact Module configuration page :
http://mydrupalsite.com/admin/structure/contact

Click on “Add Contact Form” button and in the new window that you go to, fill up the form with the asked information. Example :

... [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