hi,
Just the other day we had our ppt presentation about our project that is virtual desktop and backup utility. It was okay and everything went on well. The project presentation can be downloaded from here.
August 12, 2007
hi,
I have made a simple capcha code in PHP which displays a random number and checks weather the number is correct or not. The implementation of the code can be seen at:
Capcha code in PHP
The code uses the GD library available by default with most PHP installations and in shared web services. You can know more about GD here. My capcha code has three files, “test1.php” which generates the image, “test2.php” which displays the image and “test3.php” which verifies whether the number matches or not.
The code is as follows:
//test1.php
<?
Session_start();
$no=rand(0,5000);
$img_handle = imageCreateFromPNG(”bg.png”);
$color = ImageColorAllocate ($img_handle, 100, 100, 100);
//$ip = $_SERVER['REMOTE_ADDR'];
ImageString ($img_handle, 7, 10, 9, “$no”, $color);
$_SESSION['number']=$no;
Header(”content-type:image/PNG”);
ImagePng ($img_handle);
//ImageDestroy ($img_handle);
?>
// test2.php
<html><head><title>PHP Captcha Example</title></head>
<body>
<form action=”test3.php” method=”post”>
<img src=”test1.php”></img><input type=”text” name=”cap”>
<input type=”submit”>
</form>
</body>
</html>
//test3.php
<?
session_start();
$no=$_SESSION['number'];
if($_POST['cap']==$no)
{
echo “Correct”;
}
else
{echo “wrong”; }
?>
Remember this is just a simple PHP code and it can be improvised to whatever level you want based on your security.
Enjoy and happy coding.
As always comments are most welcome. Also tell me if you need any help.
July 11, 2007
hi,
There is this another category i am starting where in I will write all about my BE Project as well as all about the programming tactics that i use in this project.
I started some research and a some basic PHP programming to see which language will be suitable for the project. I therefore wrote some program in PHP which will allow users to upload files to FTP using PHP and also wrote a recursive program like the File Manager, where in all the files in a directory are listed as well as if there is a sub directory then a link is created to that sub directory. You, know the usual Recursive File Manager Program.
Today, i will be combining both of the above programs to enable the users to upload files, to the specified folder by browsing the directories. This will almost complete the entire File Management script.
I therefore think that PHP is the best scripting language for the Project, with VB.NET for the client.
I am also thinking of programming a similar interface in Java so as to give our system a Platform Independant Standard. So, its either going to be a Java Client for both windows as well as Linux based system, or it will be a VB.NET version for windows and Java Version for Linux based systems. Also, a lot depends on my team members.
June 29, 2007
hi readers,
As all of you might know i am a freelance programmer and web developer and I am constantly doing projects. So, I have also added a new category where i will be tell you all about the various projects that I have done and also all about the projects that I am currenly doing. This blog will also henceforth contain various tech and programming related posts and everything that i am doing with respect to programming.
Hope you all will enjoy this new feature.
Bye.
June 24, 2007