Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple scipt PHP acses HN via localhost
#1
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
PHP Code:
<?php echo "I love you hacker newbie"; ?>
Reply


Messages In This Thread
simple scipt PHP acses HN via localhost - by If_ - 01-28-2013, 03:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  JS: Simple slide show image Ndra 6 135 04-09-2013, 01:39 AM
Last Post: Ndra
  [PHP]simple admin page protection sh4dhckr 10 223 01-02-2013, 08:03 AM
Last Post: Jheny
  [php]very simple dictionary attack RieqyNS13 4 105 01-02-2013, 07:58 AM
Last Post: Jheny
  [ask] send mail untuk Web (localhost) christsoon 9 129 09-18-2012, 07:36 AM
Last Post: compLann
  [PHP]Simple views counter (No DB used) Me- 1 41 11-29-2011, 10:58 PM
Last Post: justinisal
  [Share] Simple Make WAP Site Up_ 12 281 08-19-2011, 10:27 PM
Last Post: aandoni
Wah-yellow_16 [ask] server localhost blackfrozen 2 66 06-06-2011, 12:40 AM
Last Post: blackfrozen
  [e-web] simple cms Dika_xb 13 240 01-31-2011, 01:55 PM
Last Post: NatyaOrigamiâ„¢
Online-offline_16 Backdoor Simple (joomla) index.php Up_ 14 304 06-06-2010, 12:42 PM
Last Post: Jahat
  [PHP]simple BOMB file sh4dhckr 9 143 02-23-2010, 02:45 AM
Last Post: Alecs

Forum Jump:


Users browsing this thread: 2 Guest(s)