Author Archives: Silver Moon

About Silver Moon

A Tech Enthusiast, Blogger, Linux Fan and a Software Developer. Writes about Computer hardware, Linux and Open Source software and coding in Python, Php and Javascript. He can be reached at [email protected].

Java socket programming Tutorial – How to code Client and Server

By | August 5, 2020

Socket programming in Java This is a quick guide/tutorial to learning socket programming in Java. The Socket class is documented at http://docs.oracle.com/javase/1.4.2/docs/api/java/net/Socket.html To summarise the basics, sockets are the fundamental “things” behind any kind of network communications done by your computer. For example when you type www.google.com in your web browser, it opens a socket… Read More »

Best php ide and web development tools on ubuntu

By | May 10, 2020

There are a lot of IDEs for ubuntu for doing php related web development. Lets see a few. Aptana Studio Supports PHP, Ruby, Python and more. Autosuggest dropdowns available, Integrated preview available. Project website http://www.aptana.com/ Install on ubuntu Download from http://www.aptana.com/ Quanta Quanta is the Dreamweaver of Linux. However it is not developed anymore. As… Read More »

3 ways to serialize variables in php

By | July 14, 2012

The idea behind serializing a variable is to create a storable string format of it, such that the same variable can be recreated later when required using the string. 1. serialize and unserialize These are the traditional functions to serialize and unserialize data in PHP. $a = array('a' => 'Apple' ,'b' => 'banana' , 'c'… Read More »

PHP : Add Login with Github to your website

By | May 9, 2020

Github Login Github has become a very popular social login on websites related to programming and development. Github itself is a big storehouse of opensource projects and community of developers. Github oAuth documentation can be found at http://developer.github.com/v3/oauth/. Register website with Github oAuth The first thing to do would be to register your website with… Read More »

Add Login with Yahoo to your php website

By | July 12, 2012

Yahoo OpenId In the previous article, we learned how to integrate . Its good to know that Yahoo is also an openid provider and “Login with Yahoo” can be added to a website in a very similar manner. Yahoo’s openid discovery url is http://me.yahoo.com/. The rest of the code is very simple. Code <?php /*… Read More »

Php code for login with google using openid

By | July 10, 2012

OpenId A very popular login method now a days is to allow users to login through their google, openid etc accounts. One popular protocol being used is the OpenId. According to wikipedia : OpenID is an open standard that describes how users can be authenticated in a decentralized manner, eliminating the need for services to… Read More »

Use clientside ssl certificate with curl and php

By | June 13, 2012

Clientside certificates are often used in soap webservices. For example the wsdl file link might require a clientside certificate. The server throws an error like this : HTTP Error 403.7 – Forbidden: SSL client certificate is required. Curl Command To use clientside certificate with curl , test the following command curl –cert certificate_file.pem https://www.example.com/some_protected_page or… Read More »

Fix Bsnl broadband frequent disconnection problem

By | November 7, 2012

Bsnl has plenty of high speed (4 MPBS) plans as mentioned here : http://bsnl.co.in/opencms/bsnl/BSNL/services/broadband/new_BB_postpaid.html . These are on the NIB – II Network. Ip addresses begin with 117. One known problem with the high speed internet is that it gets disconnected frequently. So like Yahoo Messenger or Pidgin or Skype could go offline every 5… Read More »

Login into phpmyadmin without username and password

By | June 25, 2013

Phpmyadmin auto login Phpmyadmin is a popular web based mysql database administration tool/frontend. It is used widely by php/mysql developers to manage database locally and remotely. When logging in to phpmyadmin, the user has to provide the mysql login credentials. However when working or developing on localhost , its better to make phpmyadmin login automatically… Read More »

10+ tips to localise your php application

By | April 14, 2012

Localisation Localisation involves changing various parts of application output like display of dates , time , numbers , language etc according to the standards of the geographical region of a user. Localisation is an important feature of applications that targets users across the globe and not just one region. So here are a set of… Read More »

Execute shell commands in PHP

By | March 27, 2012

Like any other language php applications often need to execute system commands like they are run from the terminal/console/commandline. Php has multiple functions to do this task. Lets take a look at each of these 1. system “system() is just like the C version of the function in that it executes the given command and… Read More »