Clik Ya

Sunday, May 1, 2011

understanding php

PHP, the PHP Hypertext Processor, is an open source server-side scripting language for Web servers, which provides a real alternative to ASP, ColdFusion, Mod_Perl or JSP if your aim is to provide dynamic Web pages. Dynamic Web pages are pages which interact with the user, so that each user visiting the page sees customized information - which may vary each time and which may be based on a form they've just filled in, or on information extracted from a database or some other external source. Typical applications include e-commerce, online newspapers, visitors' books, ticketing systems, project management, and other groupware projects. The traditional way to produce this type of dynamic page is via CGI scripts, but these are separate programs which must be executed as a new process for each page hit, so they scale badly and rapidly become memory and processor hogs as server load increases.
PHP solves this problem by becoming a part of the Web server, essentially extending the functionality of the server itself, so that the server can do the processing without having to spawn extra processes. It's not alone in doing this, but unlike most other scripting languages for Web page development PHP also offers excellent connectivity to most of the databases in use today. Perhaps the greatest advantage of PHP, when compared to other scripting languages such as ASP or ColdFusion, is that it is open source and cross-platform. PHP's natural home is on Linux servers running Apache server software, but it runs equally well on any other Unix or Windows platform, and can be used with other Web servers.

PHP started life as a Perl program written by Rasmus Lerdorf to track visitors to his online résumé. It was then rewritten in Cand was extended to include support for database access. From these simple beginnings the open source community has expanded and developed PHP into a powerful server-side scripting language.

Source : Link

Read More......

Tuesday, June 2, 2009

Penggunaan POST dan GET pada PHP

Dalam mengembangkan sebuah aplikasi web, seorang developer dihadapkan kepada beberapa opsi dalam melakukan update, insert, dan delete record database. Dan itu semua diawali pada penggunaan form dengan berbagai action dan method. Begitupun halnya pada implementasi ketika user memasukkan data ke dalam form inputan. Yang kemudian dilanjutkan kepada proses pengolahan dimana setelahnya hasil dari olahan tersebut dimasukkan kedalam database. Nah disinilah pemilihan fungsi method dibutuhkan. Method ini terbagi menjadi 2, yakni POST dan GET, masing masing memiliki perbedaan yang tipis. Sederhananya method ini bekerja ketika si user menekan tombol submit dengan action yang telah disetting sebelumnya. ( kalo pusing baca lagi dari awal. :D~~ ) Dalam implementasi contoh kasusnya seperti ini, buat satu file html bernama index.html :
<title>Isi Buku tamu</title>
<form action="get.php" method="get"></form>
<table border="0">
<tr><td>Nama : </td><td><input name="nama" type="text"></td></tr>
<tr><td>Email :</td><td><input name="email" type="text"></td></tr>
<td>Homepage : </td><td><input name="homepage" type="text"></td></tr>
<tr><td>Isi :</td><td><textarea name="isi" cols="25" rows="6"></textarea></td></tr>
<tr><td>
</td><td><input value="Kirim" type="submit"></td></tr>
</table>

Dan get.php :



echo $_GET['nama']."
".$_GET['email']."
".$_GET['isi']


?>

Perhatikan url pada browser internet anda, terlihat url yang super panjang, ini terjadi akibat dari variable yang dihasilkan oleh form inputan kembali ditampilkan beserta isinya. Hal ini jelas memiliki dampak kelemahan karena umumnya browser hanya dapat memperlihatkan dan mengambil nilai sebanyak 256 karakter dari address bar. Dan tentunya hal ini akan berpengaruh kepada data yang akan diolah dan di simpan kedalam database nantinya.
Ditampilkannya hasil dari form inputan berguna sekali jika diimplementasikan pada pembuatan fasilitas searching. Namun hal ini menjadi kendala jika method get ini digunakan dalam menginput data dengan text yang panjang. Dari sinilah permasalahan seperti ini ditangani oleh method post. Tapi sebelumnya, buat sebuah file bernama index2.html :


Isi Buku tamu








Nama :
Email :
Homepage :
Isi :






Dan satu lagi halaman post.php berisi :



echo $_POST['nama']."
".$_POST['email']."
".$_POST['homepage']."
".$_POST['isi'];


?>


Jika user memasukkan data melalui form input yang ada di index2.html, maka hasil yang dikirimkan dengan method post tidak akan ditampilkan di address bar, namun tetap tersimpan dalam memory, untuk mengambilnya cukup dengan menggunakan variable $_POST[‘variable’], hal ini tentunya dapat mencegah url yang terlihat kotor, berantakan, dan penuh dengan noda-noda. :D. Yups, sepertinya cukup jelas.
Sekian dan terima kasih. :D~

Read More......

Saturday, May 2, 2009

GOogle Dork

Mungkin klian semua sudah tau istilah google dork kan..?? Atau sering juga kita dengar istilah Google Hacking. Sebenarnya apa sih Google Hacking itu..?? hehe .. <<<== TAnya google aja, sya masih COPOE gak tau penjelasn rincinya. Lagian juga, saya disini cuma mau bagi-bagi dork yang sya TW z..hehehe . " ISeng- ISeng" . khususnya ketika gunain google cuy ,,,, udh siap cuy ??? Karena dari awal saya sudah mengatakan kalo saya tidak akan menjelaskan tentang pengertian google dork tersebut. Disini saya akan membagikan dork2 yang sya tw. ok..!!! Karena ini hasil improvisasi saya, jadi mohon maaf kalo misalkan banyak kekurangan / CUPoe abis.heheh <<=== gx ngrus axh .., yg jlas sy tw . hehehe ........ ==>> site:com.my filetype:php "download"

==>> site:com.my "index.php"

==>> site:com.my "log.asp"

==>> site:com.my filetype:php "upload"

==>> site:com.my filetype:asp "upload"

==>> site:go.id filetype:txt "username"

==>> site:go.id filetype:txt "admin"

==>> site:go.id filetype:php "administrator"

==>> site:go.id filetype:log

klo loe smwa mau tw seb'a bnyak c tips"a ........
tp .................
SECRET .........
loe tnya Z ma BOSS GW =========== dewa_Ncc ================

thx aLL ......................

Read More......
 

Home | Maniakgame | Dede Blog | DSN | aldot

Aldot Blog © Template Design by aldot | Publisher : Template aldotdede