Home . View Blog .


Archive for the ‘Tutorial PHP’ Category

Securimage PHP CAPTCHA - Free PHP Captcha Script

Saturday, April 26th, 2008

Search Form Tutorial PHP


What is Securimage?

Securimage is an open-source free PHP CAPTCHA script for generating complex images and CAPTCHA codes to protect forms from spam and abuse. It can be easily added into existing forms on your website to provide protection from spam bots. It can run on most any webserver as long as you have PHP installed, and GD support within PHP. Securimage does everything from generate complicated CAPTCHA images to making sure the code the user entered was correct.

Features

  • Show an image in just 3 lines of code
  • Validate submitted entries in less than 6 lines of code
  • Customizable code length
  • Choose the character set
  • TTF font support
  • Use custom GD fonts when TTF is not available
  • Easily add background images
  • Multi colored, angled, and transparent text options
  • Arched lines through text
  • Generates audible CAPTCHA files in wav format
  • Use a word list for creating CAPTCHA codes

 

 

Minor Bugfix and Site Updates

March 25, 2008 – 4:40 pm

Version 1.0.3.1 was made available yesterday which fixes a problem when using the word list feature. If you do not use this or were not experiencing any problems then there is no need to update.

An article about using Securimage with Ajax was also published yesterday, you can view it here.

We have also released a tool which can obfuscate your email address in Javascript code for those who need to post their email address on their website. Check out the Email Address Obfuscator tool.

 

 

Version 1.0.2 Released

January 6, 2008 – 10:09 pm

Securimage 1.0.2 has been officially released. It adds 2 new features into the class. The first is being able to use CAPTCHA codes read from a word list instead of generating random codes. The second includes the ability to create audible CAPTCHA codes as WAV files by combining sound files of each letter and number that appears in the character set.

A few minor modifications have been made to have better error handling and fixed an undefined variable warning.

It is recommended to upgrade to for the most features and stability.

 

 

Site Construction and Launch

January 1, 2008 – 10:36 pm

Over the next few weeks the Securimage CAPTCHA class available from NeoProgrammers.com will have this entire site dedicated to the development and distribution of the PHP code. The goal is to serve the users better by having a support structure and make improvements and implement suggestions faster. Because Securimage is released under the GPL license and anyone is free to modify the code I would love to see outside contributions to add new features and capabilities to improve the class.

Thank you for your interest in this software!

——————————————————————————————————

Sytax Dasar

Saturday, April 26th, 2008

Search Form Tutorial PHP

Ada empat macam cara penulisan kode PHP, yaitu :

  1. <? echo (”ini adalah script PHP\n”); ?>
  2. <?php echo(”ini juga\n”); ?>
  3. <script language=”php”>
    echo (”tulis pake ini jika html editor Anda tidak mengenali PHP”);
    </script>
  4. <% echo (”kalau yang ini mirip dengan ASP”); %>

Anda bisa memilih salah satu dari empat cara tersebut. Tapi yang paling sering digunakan adalah cara pertama dan kedua. Perhatikan bahwa tiap akhir baris harus selalu diberi tanda titik koma (;).

Seperti pada bahasa pemrograman lain Anda pun bisa meletakkan baris komentar pada program Anda. Pada PHP caranya adalah dengan meletakkan komentar tersebut di sebelah kanan tanda // jika komentar satu baris dan di antara /* dan */ jika komentarnya lebih dari satu baris.

<? echo (”latihan PHP”; //ini adalah contoh komentar satu baris
/* kalau yang ini adalah komentar
lebih dari satu baris */
echo (”memang mudah”);
?>

Menginstall PHP Triad

Saturday, April 26th, 2008

Search Tutorial PHP

Selama ini Anda mungkin hanya mengenal Personal Web Server (PWS) sebagai web server untuk menjalankan PHP pada sistem operasi Windows 9x. Padahal selain PWS Anda juga bisa menggunakan Apache sebagai web servernya. Untuk menginstall Apache for Windows Anda dapat menggunakan PHP Triad yang merupakan “kumpulan” dari berbagai software yaitu:

  • PHP - 4.0.5
  • MySQL - 3.23.32 (database server)
  • Apache - 1.3.14 (web server)
  • PHPMyAdmin - 2.1.0 (untuk administrasi database)
  • Perl - nsPerl 5.005_03

Jadi dengan menginstall PHP Triad Anda dapat menggunakannya untuk belajar PHP, Perl dan database MySQL. Untuk menginstall PHP Triad caranya adalah sebagai berikut:

1 Download PHP Triad di http://www.phpgeek.com
2 Untuk memulai proses install, klik 2x pada file yang baru Anda download tersebut dan tunggu sampai proses install selesai.
3 Untuk menjalankan Apache, klik Start - Programs - PHP Triad - Start Apache.

Untuk menjalankan MySQL, klik Start - Programs - PHP Triad - Start MySQL.

4. Untuk mengecek Apache, klik shortcut Launch Site. Jika pada browser muncul tulisan “Welcome to PHPTriad for Windows … ” maka proses install yang Anda lakukan berhasil.
5. Untuk mengecek MySQL, klik Start MySQL dan PHPMyAdmin. Jika Anda melihat tulisan “Welcome to phpMyAdmin…” berarti proses install berhasil.

tambahan :

Letakkan script PHP Anda di C:\apache\htdocs.