Contents
<ul class="toc_list">
<li>
<a href="#subins-chat"><span class="toc_number toc_depth_1">1</span> Subins Chat</a>
</li>
<li>
<a href="#accounts"><span class="toc_number toc_depth_1">2</span> Accounts</a>
</li>
<li>
<a href="#subins"><span class="toc_number toc_depth_1">3</span> Subins</a>
</li>
<li>
<a href="#friendshood"><span class="toc_number toc_depth_1">4</span> Friendshood</a>
</li>
<li>
<a href="#subins-get"><span class="toc_number toc_depth_1">5</span> Subins GET</a>
</li>
</ul>
Subins Chat
Subins Chat is not only a group chat but a place for submitting suggestions, bugs, errors and feedback.
Please report any errors or bugs happening on any of the sites of Subins in Subins Chat.... [READ MORE]
What is SQL Injection and how to make your PHP site free from SQL Injection hacking
$user=$_GET[‘user’];
$sql=mysql_query("SELECT * FROM users WHERE user='".$user."‘");
http://example.com/user.php?user=subin
... [READ MORE]
Create a free .tk domain website with free hosting by AppFog
This free .tk domain is made available by a company called Dot TK and the free hosting is provided by AppFog.
Create Free Website
Getting the IP address of AppFog app.
Get Google Profile Picture URL by email id using PHP
First of all we are going to set a variable with a Google E-mail address (Gmail address). We are going to set it with my E-mail address
$email=’subins2000@gmail.com’;
Then we are going to split @ from the mail address.
list($id, $domain) = split("@",$email);
Next we are going to send a request to Google Profiles to fetch the IMAGE url.
$headers = get_headers("https://profiles.google.com/s2/photos/profile/".$id, 1);
The variable $id above is from the splitted part.
Finally we have to get the URL of the user’s profile picture.
10 Songs for Making Programming Better
When I am coding my site Open or my blog, I hear a lot of songs along with coding. It makes me energetic and will help calm me down when an error occurs. The error probably will be a simple mistake but causes a lot of time to solve it. To calm me down I will play a song and BINGO ! I fixed the error.
Here are the songs that make my coding easier and refreshes my mind. The text in brackets are the detail of which the song do to my mind.
... [READ MORE]How to edit/clear Ubuntu Terminal commands history ?
Open the file /home/user/.bash_history (Replace red text with your username.
To make it simple Go to your home folder and Press CTRL + H. It will show hidden files.
search for the file .bash_history
Edit the file.
You can see all the commands you entered in Terminal.
Remove what you don’t want and save.
How to replace protocol in links with the window URL protocol
With :
If the location protocol is HTTPS all links’ protocol will be changed to HTTPS and If the location protocol is HTTP all links’ protocol will be changed to HTTP.
For a mass replacement of links USE Regexxer.
New : Change background of Subins Network.
Using Regex to validate E-mail and Phone Number
/^(([^<>()[].,;:s@"]+(.[^<>()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/
/^(?([0-9]{3}))?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/
var emailregex=/^(([^<>()[].,;:s@"]+(.[^<>()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/;var phoneregex=/^(?([0-9]{3}))?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;if (emailregex.test(string)){// valid email}else{// Invalid email}if (phoneregex.test(string)){// valid phone number}else{// Invalid phone number}
if (phoneregex.test($("#phone").val())){// valid phone number}else{// Invalid phone number}
... [READ MORE]
My Short URL – a site for shortening URL’s
<div>
You can short URL’s on the site <a href="http://msurl.tk/" style="font-weight: bold;">MSURL.TK</a>.
</div>
<div>
</div>