HN-Community
simple scipt PHP acses HN via localhost - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+---- Forum: Web Programing (https://hacker-newbie.org/forum-38.html)
+---- Thread: simple scipt PHP acses HN via localhost (/thread-16271.html)



simple scipt PHP acses HN via localhost - If_ - 01-28-2013

asalamua alaikum warahmatulahi wabarakatu Culas
ok langsung saja sesuai dengan judul nya
saya berpikir gimana caranya saya bisa pertama kali me load situs HN bukan melalaui http://www.hacker-newbie.org tapi saya me load situs HN dari http://localhost/
note : hanya pertama kali di load Berpikir

Akhirnya Akhirnya saya coba iseng ngoding aja seperti ini
buka notepad++ or tols coding php kesukaan anda lets go coding
PHP Code:
<?php // membuka file $HN = "http://www.hacker-newbie.org"; $ambil = fopen($HN,"r"); //menampilkan if ($ambil){ fpassthru($ambil);} else { echo " maaf $HN tidak dapat di acses "; } ?>
note : fungsi fopen untuk membuka file dan fungsi fpassthru untuk menampilkan data dari wal sampai akhir

lalu seve dengan nama HN.php di c/xampp/htdocs
kemudian pangil lewat url http://localhost/HN.php
jreng.. Senang

sebenarnya saya malu buat thread dengan judul seperti ini tapi untk newbie seperti saya setidknya saya bisa menegerti alur fungsi dari coding cupu tersebut
untuk para coder php mohon jangan di tertawakan ya Malu Malu


RE: simple scipt PHP acses HN via localhost - [H2] - 01-28-2013

nice job om, ane ikut nyimak aja deh wakaka


RE: simple scipt PHP acses HN via localhost - febrian - 01-28-2013

kalau gak salah harus konek internet :D
trusu sistem cokienya beda :D

jadi harus login ulang :D


RE: simple scipt PHP acses HN via localhost - Jheny - 01-28-2013

nice share bro
lanjutin aja dah
Mantab Ganteng


RE: simple scipt PHP acses HN via localhost - If_ - 01-28-2013

(01-28-2013, 07:23 AM)[H2] Wrote: nice job om, ane ikut nyimak aja deh wakaka

tangks kk

(01-28-2013, 07:35 AM)febrian Wrote: kalau gak salah harus konek internet :D
trusu sistem cokienya beda :D

jadi harus login ulang :D

iya bro kira-kira gitu
kan fungsi script ini hanya untuk pemangilan pertama sebuah file

(01-28-2013, 07:41 AM)Jheny Wrote: nice share bro
lanjutin aja dah
Mantab Ganteng

tengks bro


RE: simple scipt PHP acses HN via localhost - febrian - 01-28-2013

oh yah saya lupa kalau itu script untuk include file pertamanya saja :D
nice info om :D