![]() |
|
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 ![]() 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 ![]() 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 "; }
?>lalu seve dengan nama HN.php di c/xampp/htdocs kemudian pangil lewat url http://localhost/HN.php jreng.. ![]() 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
RE: simple scipt PHP acses HN via localhost - [H2] - 01-28-2013 nice job om, ane ikut nyimak aja deh
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
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 tangks kk (01-28-2013, 07:35 AM)febrian Wrote: kalau gak salah harus konek internet :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 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 |