Jun 30 2009

How To Create SVN Repository

How to get help with svn?

If you are looking for svn reference in man pages, you have gone to the wrong place. To check the references of svn commands, simple do this:

svn help

Read more …

Easy part, just create like below .htaccess file on your web folder :

AuthName “My Protected Site”
AuthUserFile /home/apache/.htpasswd
AuthType basic
Require valid-user
Order Deny,Allow
Deny from all
Allow from 192.168.1. 192.168.2.
Satisfy Any

Good luck!

Jun 16 2009

Simple Check IP with PHP

You can use below simple PHP scripting to check IP address

<?php
if(!empty($_SERVER["HTTP_X_FORWARDED_FOR"])){
echo “<title>”.$_SERVER["HTTP_X_FORWARDED_FOR"].” via “.$_SERVER["REMOTE_ADDR"].”</title>\n\n”;
echo “Your IP: “.$_SERVER["HTTP_X_FORWARDED_FOR"] . “<br />\n”;
echo “Proxy IP: “.$_SERVER["REMOTE_ADDR"] . “<br />\n”;
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
}else{
echo “<title>”.$_SERVER["REMOTE_ADDR"].”</title>\n\n”;
echo “Your IP: “.$_SERVER["REMOTE_ADDR"] . “<br />\n”;
$ip = $_SERVER["REMOTE_ADDR"];
}
echo “Date Time: ” . date(”Y-m-d H:i:s”) . “<br />\n”;
?>

Jun 09 2009

This is what you called, (Telkom) SPEEDY?!

Hello TELKOM SPEEDY!

Its been (almost) 1 month, the connections were like this.

I NEED MY FAST CONNECTION BACK!!!!!!

Read more …

Jun 08 2009

MySQL Master-Slave Replication

To setup Master-Slave Replication the first thing you need to do is create a user on the Master server that allows replication.

Read more …