#1 function
mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])
#2 example 01
<?
mail("admin@domainanda.com", "Hallo Dunia!", "Halo admin \n Apa Kabar \n Anda hari ini?" , , "From: Web <webmaster@domain-kirim.com>");
?>
#3 example 02
<?
$kepada = "admin@domainanda.com"; //email tujuan
$subject = "Hallo Dunia!"; //judul email
$pesan = "Halo admin \n Apa Kabar \n Anda hari ini?"; //pesan
$dari = "webmaster@domain-kirim.com"; //email account anda
$from = "From: $dari";
mail($kepada,$subject,$pesan,$from); //fungsi untuk kirim email
?>
#4 example 03 (using condition)
<?
if (mail("admin@domainanda.com", "Hallo Dunia!", "Halo admin \n Apa Kabar \n Anda hari ini?")) {
echo "Email sudah terkirim";
} else {
echo "Email gagal terkirim";
}
?>
#5 example 04 (advanced)
<?
if (mail("admin@domainanda.com", "Hallo Dunia!", "Halo admin \n Apa Kabar \n Anda hari ini?", ,"From: Web <webmaster@domain-kirim.com>""))
{
echo "Email sudah terkirim";
} else {
echo "Email gagal terkirim";
}
?>
"curiosity is motivation"
"letz share coz i only ask for information"
|
|
---|
Showing posts with label developer. Show all posts
Showing posts with label developer. Show all posts
How to Make SMS Gateway Using Gammu and Wammu in Ubuntu
Gammu and Wammu. Gammu is Command line utility which allows to use all libGammu features and Wammu is GUI program to manage contacts, todos, calendar and messages in your phone.
#1 Gammu installation
type this command to install
sudo apt-get install gammu
#2 Gammu configuration
open terminal then type this command to detect the phone
dmesg
*result :
[ 807.511755] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[ 807.514290] usbcore: registered new interface driver cdc_acm
[ 807.514296] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
the port is ttyACM0
and then type
gammu-config
P Port (/dev/ttyACM0)
C Connection (at19200)
M Model (auto)
D Synchronize time (no)
F Log file ()
O Log format (nothing)
L Use locking ()
G Gammu localisation ()
leave all settings like above then save
#3 Wammu installation
type this command to install
sudo apt-get install wammu
#4 Wammu configuration
1. connect the phone
2. open wammu menu > phone wizzard > next
3. select automatically search for a phone > next
4. usb cable > next
5. wait until phone detected then select from list then press ok
6. connect phone to wammu (open wammu then select phone menu then connect)
7. to compose sms please begin with country code (exp : +62xxx xxxx xxxx)
#5 Reference
http://wammu.eu/
http://wammu.eu/download/
http://wammu.eu/screenshots/
http://wammu.eu/docs/
"curiosity is motivation"
"letz share coz i only ask for information"
= = = = = = = = = = = = = = = = = = = = = = = =
[ indonesian translation ]
Bagaimana Cara Membuat SMS Gateway Menggunakan Gammu dan Wammu di Ubuntu
Gammu dan Wammu. Gammu adalah aplikasi berbasis command line yg memungkinkan untuk menggunakan library dari wammu dan Wammu adalah aplikasi berbasis GUI untuk melakukan pengaturan pesan dll.
#1 Instalasi gammu
ketik perintah ini
apt-get install gammu
#2 Konfigurasi gammu
buka terminal kemudian ketik
dmesg
*hasilnya :
[ 807.511755] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[ 807.514290] usbcore: registered new interface driver cdc_acm
[ 807.514296] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
portnya adalah ttyACM0
kemudian ketik
gammu-config
P Port (/dev/ttyACM0)
C Connection (at19200)
M Model (auto)
D Synchronize time (no)
F Log file ()
O Log format (nothing)
L Use locking ()
G Gammu localisation ()
biarkan semua setting seperti itu kemudian save
#3 Instalasi wammu
ketik perintah berikut
apt-get install wammu
#4 konfigurasi wammu
1. koneksikan ponsel
2. buka menu wammu > phone wizzard > next
3. pilih automatically search for a phone > next
4. usb cable > next
5. tunggu sampe ponsel terdeteksi kemudian pilih dari daftar kemudian tekan ok
6. koneksikan ponsel ke wammu (buka wammu kemudian pilih menu phone kemudian connect)
7. untuk menulis sms silahkan mulai dengan kode negara (exp : +62xxx xxxx xxxx)
#5 Referensi
http://wammu.eu/
http://wammu.eu/download/
http://wammu.eu/screenshots/
http://wammu.eu/docs/
"curiosity is motivation"
"letz share coz i only ask for information"
#1 Gammu installation
type this command to install
sudo apt-get install gammu
#2 Gammu configuration
open terminal then type this command to detect the phone
dmesg
*result :
[ 807.511755] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[ 807.514290] usbcore: registered new interface driver cdc_acm
[ 807.514296] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
the port is ttyACM0
and then type
gammu-config
P Port (/dev/ttyACM0)
C Connection (at19200)
M Model (auto)
D Synchronize time (no)
F Log file ()
O Log format (nothing)
L Use locking ()
G Gammu localisation ()
leave all settings like above then save
#3 Wammu installation
type this command to install
sudo apt-get install wammu
#4 Wammu configuration
1. connect the phone
2. open wammu menu > phone wizzard > next
3. select automatically search for a phone > next
4. usb cable > next
5. wait until phone detected then select from list then press ok
6. connect phone to wammu (open wammu then select phone menu then connect)
7. to compose sms please begin with country code (exp : +62xxx xxxx xxxx)
#5 Reference
http://wammu.eu/
http://wammu.eu/download/
http://wammu.eu/screenshots/
http://wammu.eu/docs/
"curiosity is motivation"
"letz share coz i only ask for information"
= = = = = = = = = = = = = = = = = = = = = = = =
[ indonesian translation ]
Bagaimana Cara Membuat SMS Gateway Menggunakan Gammu dan Wammu di Ubuntu
Gammu dan Wammu. Gammu adalah aplikasi berbasis command line yg memungkinkan untuk menggunakan library dari wammu dan Wammu adalah aplikasi berbasis GUI untuk melakukan pengaturan pesan dll.
#1 Instalasi gammu
ketik perintah ini
apt-get install gammu
#2 Konfigurasi gammu
buka terminal kemudian ketik
dmesg
*hasilnya :
[ 807.511755] cdc_acm 5-1:1.0: ttyACM0: USB ACM device
[ 807.514290] usbcore: registered new interface driver cdc_acm
[ 807.514296] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
portnya adalah ttyACM0
kemudian ketik
gammu-config
P Port (/dev/ttyACM0)
C Connection (at19200)
M Model (auto)
D Synchronize time (no)
F Log file ()
O Log format (nothing)
L Use locking ()
G Gammu localisation ()
biarkan semua setting seperti itu kemudian save
#3 Instalasi wammu
ketik perintah berikut
apt-get install wammu
#4 konfigurasi wammu
1. koneksikan ponsel
2. buka menu wammu > phone wizzard > next
3. pilih automatically search for a phone > next
4. usb cable > next
5. tunggu sampe ponsel terdeteksi kemudian pilih dari daftar kemudian tekan ok
6. koneksikan ponsel ke wammu (buka wammu kemudian pilih menu phone kemudian connect)
7. untuk menulis sms silahkan mulai dengan kode negara (exp : +62xxx xxxx xxxx)
#5 Referensi
http://wammu.eu/
http://wammu.eu/download/
http://wammu.eu/screenshots/
http://wammu.eu/docs/
"curiosity is motivation"
"letz share coz i only ask for information"
14 Steps To Accelerate Web Access
There is a way to speed up your web pages. This method has been tested in several popular sites on the Internet and managed to reduce the response time is 25-50 percent faster times.
The best trial is the realization of 10-20 percent in order to reduce the response time of the end of the HTML document in the browser. You need to focus on the 80-90 percent if you want to make the page more quickly. This can only be the fastest way if the server and your browser is already optimal. Server and 80-90 percent of the browser role your Web access speed.
Management of our website aims to show the best. Each way also contains a link to the Yahoo! Developer Network Performance Blog. There you will find a number of ways with his comments.
Method 1 - Create a display HTTP requests
Method 2 - Use a Content Delivery Network
Method 3 - Add Expires Header
Method 4 - Gzip Components
Method 5 - Put Stylesheets at the top
Method 6 - Put Scripts at the bottom
Method 7 - Avoid CSS expressions
Method 8 - Make JavaScript and CSS External
Method 9 - Reduce DNS Lookups
Method 10 - Use the minimum necessary JavaScript
Method 11 - Avoid Redirects
Method 12 - Remove double Scripts
Method 13 - Configure ETags
Method 14 - Create AJAX Cacheable
"curiosity is motivation"
"letz share coz i only ask for information"
= = = = = = = = = = = = = = = = = = = = = = = =
[ indonesian translation ]
14 Langkah Mempercepat Akses Website
Ada cara agar bisa mempercepat halaman web anda. Cara ini telah diuji disejumlah situs populer di Internet dan berhasil mengurangi waktu respon 25-50 persen kali lebih cepat.
Percobaan terbaik merupakan realisasi dari 10-20 persen respon waktu akhir agar menggurangi dokumen HTML pada browser. Anda perlu berfokus pada 80-90 persen lainnya jika anda ingin membuat halaman lebih cepat. Ini hanya bisa menjadi jalan tercepat apabila server dan browser anda memang sudah optimal. Server dan browser memegang peran 80-90 persen kecepatan akses web anda.
Pengelolaan halaman bertujuan menampilkan situs web terbaik. Setiap cara juga berisi link ke Yahoo! Developer Network Performance Blog. Di sana anda akan menemukan sejumlah cara dengan komentarnya.
Cara 1 - Buat tampilan permintaan HTTP
Cara 2 - Gunakan Content Delivery Network
Cara 3 - Tambahkan Expires Header
Cara 4 - Komponen Gzip
Cara 5 - Letakan Stylesheets di atas
Cara 6 - Tempatkan Scripts di bawah
Cara 7 - Hindari ekspresi CSS
Cara 8 - Buat JavaScript dan CSS External
Cara 9 - Kurangi DNS Lookups
Cara 10 - Gunakan seminim mungkin JavaScript
Cara 11 - Hindari Redirects
Cara 12 - Buang Scripts ganda
Cara 13 - Konfigurasi ETags
Cara 14 - Buat AJAX Cacheable
"curiosity is motivation"
"letz share coz i only ask for information"
How to Make Icon for URL (Favicon)
Favicon is small icon at address bar url, it can be bookmark icon if the downloaded website has favicon, the size of favicon is 16 x 16 pixel
How to add favicon to the website? just upload it to root directory with name "favicon.ico"
or put HTML tag below between header
= = = = = = = = = = = = = = = = = = = = = = = =
[ indonesian translation ]
Bagaimana Cara Membuat Icon pada URL (Favicon)
Favicon adalah icon kecil yang ada di url address bar, bisa juga masuk dalam daftar bookmark jika kita mem bookmark suatu situs yang mempunyai Favicon, untuk ukurannya favicon sendiri adalah 16 x 16 pixel.
Cara pemasangannya bisa anda Upload dan letakkan di direcrtory root dengan nama "favicon.ico"
atau bisa juga letakkan tag di bawah ini dalam header anda
"letz share coz i only ask for information"
How to Put YM (Yahoo! Messenger) Status on Website
Displaying the status of YM (Yahoo Messenger) on our website is very important, especially for Web sites that are engaged in the business, use it as a CS (Customer Support), if for community website... can be as a place to chat and so on.
How to make YM status is very easy... just add HTML tag below
a href="ymsgr:sendIM?haanssim"
img src="http://opi.yahoo.com/online?u=haanssim&m=g&t=1" border="0"
Where: "haanssim" is your Yahoo ID, Yahoo ID can be obtained if you have email in yahoo, if not ... just make a yahoo email soon ..
Ex : if your yahoo email ID is haanssim@yahoo.com then your YM ID is haanssim
In the picture above shows two icons with different status .. the above shows online and the bottom offline
= = = = = = = = = = = = = = = = = = = = = = = =
[ indonesian translation ]
Membuat Status YM (Yahoo! Messenger) di Website
Menampilkan status YM (yahoo Messanger) di website kita sangatlah penting, terutama bagi website-website yang bergerak dalam bidang bisnis, gunanya ya sebagai CS (Customer Support), kalau untuk website community ya.. bisa sebagai tempat ngobrol dsb.
Cara membuat status YM di website kita sangatlah mudah sekali kita tinggal lah menambahkan tag HTML berikut:
html :
a href="ymsgr:sendIM?haanssim"
img src="http://opi.yahoo.com/online?u=haanssim&m=g&t=1" border="0"
Dimana: "haanssim" adalah ID Yahoo kamu, ID Yahoo dapat diperoleh jika anda mempunyai email di yahoo, jika tidak ... ya segera bikin saja email yahoo..
Ex: jika email yahoo kamu haanssim@yahoo.com, maka ID YM kamu adalah haanssim
Pada gambar diatas terlihat 2 icon dengan status yang berbeda.. yang atas menunjukkan kalo user lagi online dan yang bawah offline
"curiosity is motivation"
"letz share coz i only ask for information"
Youtube Video on Website
Did you ever see a website with additional video from youtube? Hmm ... look good right? You can add it by adding an HTML script to embed the video, how?
You go to Youtube.com
1. Search videos you want
2. After that copy the embed code
3. Paste on your web page
= = = = = = = = = = = = = = = = = = = = = = = =
[ indonesian translation ]
Menampilkan Video Youtube di Website
Apakah anda pernah melihat suatu website dengan tambahan video dari youtube? Hmm... terlihat bagus kan? Anda bisa menambahkan nya dengan cara menambahkan script HTML embed video tersebut, caranya?
Anda buka Youtube.com
1. Search video yang anda inginkan
2. Setelah itu copy code embed nya
3. Paste di halaman website anda
"curiosity is motivation"
"letz share coz i only ask for information"
Visual Leak Detector
Name : Visual Leak Detector [ download ] [ help ]
Version :
Date :
Size : MB
License : Free
OS : Windows
Category : Tools, Developers
Dev :
---------------------------------
Desc :
Library for fixing errors in C++ programming language
Ref :
"curiosity is motivation"
"letz share coz i only ask for information"
Version :
Date :
Size : MB
License : Free
OS : Windows
Category : Tools, Developers
Dev :
---------------------------------
Desc :
Library for fixing errors in C++ programming language
Ref :
"curiosity is motivation"
"letz share coz i only ask for information"
Subscribe to:
Posts (Atom)