Domain Availability Check Sederhana dengan PHP
Kalo kita lihat website yang menjual webhosting atau domain pasti tersedia menu yang berfungsi untuk mengecek ketersedian domain di Internet.
Dan untuk pengecekan domain tersebut banyak sekali cara yang digunakan, yaitu salah satu menggunakan fasilitas yang disediakan oleh website-website yang menyediakan fasilitas whois misal (register.net.id,whois.net,dll).
Dalam tutorial ini,kita akan membuat fasilitas check ketersediaan domain dengan memanfaatkan function [...]
Regular Expression Basic Syntax Reference
Characters
Character
Description
Example
Any character except [\^$.|?*+()
All characters except the listed special characters match a single instance of themselves. { and } are literal characters, unless they’re part of a valid regular expression token (e.g. the {n} quantifier).
a matches a
\ (backslash) followed by any of [\^$.|?*+(){}
A backslash escapes special characters to suppress their special meaning.
\+ matches +
\Q...\E
Matches [...]
Seeing the number of problems and mistakes PHP coders encounter repeatedly I set out to make this list of the 10 most common problems and mistakes done by PHP coders.
Seeing the number of problems and mistakes PHP coders encounter repeatedly I set out to make this list of the 10 most common problems and mistakes done by PHP coders.
1. Not escaping entities
It’s basic knowledge; ALL untrusted input (especially user input from forms) has to be sanitized before it is being output.
echo $_GET['username'];
Can for instance [...]
Tips modrewrite
para dewa2 php pasti udah banyak yang tahu, jadi ini topik khusus untuk para newbie yang pengen buat url kyk di wordpress ( http://blabla.com/archive/2002-19-05/title/bla )
pertama tama, mod_rewrite adalah sebuah module di apache, dan biasanya di package2 php yg ada sekarang (xampp, phptriad, dll) module ini belum di load secara default, jadi kita harus mengenable module [...]
Send variables between Javascript, Form and PHP on the same page
PHP variable to Javascript variable:
<?php $myvar=10; ?>
<script type=”text/javascript”>
jsvar = <?php echo $myvar; ?>
document.write(jsvar); // Test to see if its prints 10:
</script>
Form variable to Javascript variable:
<form name=”myform4″> <input type=”hidden” name=”formvar” value=”100″> </form>
<script type=”text/javascript”>
jsvar = document.myform4.formvar.value;
document.write(jsvar) // test
</script>
PHP variable to Form variable:
<form name=”myform4″>
<input type=”hidden” name=”formvar” [...]





