new presta Posted February 24, 2012 Share Posted February 24, 2012 knp setiap folder d prestashop ada file index.php? dan isinya : header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Location: ../"); exit; bagi yg ahli, mhon penjelasnnya..thx Link to comment Share on other sites More sharing options...
prestanesia Posted February 24, 2012 Share Posted February 24, 2012 kalo g ada file itu, kontennya (semua fie dalam folder tsb) keliatan dunk .. contoh kasus gini, folder template ga dikasi index.php (terus ga diproteksi juga ama file .htaccess), visitor nanti bisa download templatenya Link to comment Share on other sites More sharing options...
new presta Posted February 24, 2012 Author Share Posted February 24, 2012 bagaimana alur(logikanya) file itu (index.php) memproteksi file2 dlm folder?? mungkin bs djelaskan mksud2 dr tiap function headernya bung tobi?? soalny saya cb memahami function header d manual phpnya, agak sulit d mengerti, mungkin dg suatu studi kasus ky gni saya bisa lbh paham..thx Link to comment Share on other sites More sharing options...
prestanesia Posted February 24, 2012 Share Posted February 24, 2012 kode diatas intinya kalo user akses http://toko.com/img'>http://toko.com/img di redirect ke http://toko.com kalo tanpa file index.php, begitu user akses http://toko.com/img'>http://toko.com/img, semua file didalam folder img tadi keliatan, thus, bisa di download oleh user. Link to comment Share on other sites More sharing options...
new presta Posted February 24, 2012 Author Share Posted February 24, 2012 function yg nge-redirect kan ini header("Location: ../"); bnr kn?? trs function header yg lain, fungsiny bwt ap??? Link to comment Share on other sites More sharing options...
prestanesia Posted February 24, 2012 Share Posted February 24, 2012 yang diatasnya buat cache, jadi pagenya ga di cache ma browser. Link to comment Share on other sites More sharing options...
Zaid Posted February 24, 2012 Share Posted February 24, 2012 Pertanyaannya bagus, sebagus jawabannya : mencerahkan. (saya juga awalnya bingung fungsi index.php ini) Link to comment Share on other sites More sharing options...
new presta Posted February 25, 2012 Author Share Posted February 25, 2012 kmren sy sempet utak-utik file ini,ternyata emg bner sesuai dg penjelsn tobi, thx bung tobi (ada salam dr naruto ) tp 1 pertanyaan lg, kenapa pagenya biar g d cache m browser?? Link to comment Share on other sites More sharing options...
prestanesia Posted February 25, 2012 Share Posted February 25, 2012 kenapa ga dicache? efisiensi kali. cache di browser kan makan space hd & terbatas. jadi ngapain juga dicache? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now