PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Learn to Play the Ukulele
Make your own music in your own way on the ukulele and have fun doing it. This online course is taught by "Cool Hand Uke." Sign up today for just $25.  | From our sponsors | | |
[ASK] misalkan saya punya kalimat "jalankan shutd... Oct 20th 2013, 18:58, by Ahmad Zulfi | [ASK]
misalkan saya punya kalimat "jalankan shutdown -s -t 0" nah saya ingin membuat variable $perintah dari kalimat "shutdown -s -t 0" misalkan kalimatnya "jalankan shutdown -r -t 20" berarti variabel $perintah = "shutdown -r -t 20"
gimana caranya? |
| | buat jalanin perintah? kalo iya caranya gini : shell_exec("shutdown -r -t 20"); |
| | iya buat jalanin perintah, tp "shutdown -r -t 20" diganti jadi"$perintah" |
| | tp variable $perintah berasal dr kalimat "blablablablabla shutdown -r -t 20" |
| | eval( preg_replace( '#jalankan (.+)#', '$perintah = \'\1\';', $kalimatnya ) ); | | |
|
Tidak ada komentar:
Posting Komentar