[ASK] Bagaimana cara menyisipkan kode PHP didalam template HTML

Discussion in 'Programming' started by ziuma, Jul 29, 2015.

  1. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    Selamat Pagi semua, (Tepat di Messages ke 500)

    Singkat aja den, saya lagi kesulitan memasang kode php didalam html. Kebetulan daftar iklan uptopromo tetapi kok masang kodenya susah sekali. Mungkin ada yang pernah pasang iklan uptopromo?

    Oh iya, pertanyaan saya: adakah yang bisa membantu cara memasang kode php di template html

    terima kasih
     
    Last edited: Jul 29, 2015
  2. pluto01

    pluto01 Member

    Joined:
    May 18, 2015
    Messages:
    497
    Likes Received:
    69
    Trophy Points:
    28
    Sedikit informasi saja
    https ://www .ntchosting.com/encyclopedia/scripting-and-programming/php/php-in/
    http :// www .w3schools.com/php/php_includes.asp
    https ://www. bersosial.com/threads/ask-bagaimana-cara-menyisipkan-kode-php-didalam-template-html.25590/
     
  3. Jaka Wijaya

    Jaka Wijaya New Member

    Joined:
    Jun 12, 2015
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Google+:
    HTML ?
    Saya pernah pake uptopromo di wordpress. Tinggal masukin kodenya di editor theme, defaultnya sih di footer (footer.php).

    Maaf saya ga tau caranya kalo selain di wordpress. Tp yg saya tau waktu itu uptopromo belum bisa dipasang diblogspot. Kalo di myBB kaya ziuma saya jg ga tau caranya.

    Tp kalo udh mentok ga bisa caranya, bisa tanya ke bagian support di uptopromonya ko.
     
    ziuma likes this.
  4. Ardilas

    Ardilas Super Level

    Joined:
    Feb 18, 2013
    Messages:
    4,243
    Likes Received:
    317
    Trophy Points:
    83
    Google+:
    Pakai CMS apa? Kalau pakai Blogspot gunakan widget HTML/Javascript saja.
     
  5. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    saya pakai mybb, sudah pasang berapa kali error terus
     
  6. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    kalau saya buat footer.php dan isinya cuma kode dari uptopromo bisa ya?
     
  7. Jaka Wijaya

    Jaka Wijaya New Member

    Joined:
    Jun 12, 2015
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Google+:
    saya ga ngerti mas struktur theme di myBB.

    Klo di myBB ada fitur widget kaya d blogspot sm wordress ga mas ?
    kalo ada masukin di widget HTML aja kodenya, kayanya bisa.
     
  8. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    kalau widget kayak di blogspot ngak ada
    saya masih nyari plugin, apa di mybb ada seperti wordpress
    kemarin sudah minta bantuan ke UpToPromo masangin cuma kayaknya belum juga (nunggu antrian katanya)

    bagaimana den @Jaka Wijaya bagus ya hasilnya menggunakan iklan ini
     
  9. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    wah bisa, terima kasih
    setelah saya baca ini, saya coba buat file footer.php
    saya masukin itu kode dan diupload ke website (berhasil) tinggal nunggu moderasi
     
  10. vinzajah

    vinzajah Member

    Joined:
    Jul 24, 2015
    Messages:
    63
    Likes Received:
    9
    Trophy Points:
    8
    Kalo ga bisa cari plugin header/footer aja, nanti kodeya ditaro deh..
    Pasti ada celah gan, namanya jg manusia :p
     
  11. Jaka Wijaya

    Jaka Wijaya New Member

    Joined:
    Jun 12, 2015
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Google+:
    Kalau kata saya dapetnya kecil. Mereka ngasih penawarannya ga ngepas di hati.
    Mungkin krna wktu itu ngajuinnya pake blog yg masih bau kencur.
    Skrg juga udh dilepas iklannya

    Oke sama-sama. mudah-mudahan penawaran harga dr uptopromonya legit kang.
     
  12. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    ya ngak apa-apa, yang penting saya pernah merasakan pendapatan dari website
    nyerah kalau harus nunggu GA, yang ngak pernah menghasilkan
    cukup untuk bayar hosting aja kali ya
     
  13. Jaka Wijaya

    Jaka Wijaya New Member

    Joined:
    Jun 12, 2015
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Google+:
    kecil kang punya saya. ga nyampe 100rb. buat beli pulsa aja ga cukup wkwk
     
  14. doky asde

    doky asde New Member

    Joined:
    Jun 19, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Google+:
    izin nyimak gan, ane di uptopromo dari kemaren masih status moderasi :)
     
  15. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    sempat ditanya password root website ya? katanya untuk upload file di hosting.
     
  16. doky asde

    doky asde New Member

    Joined:
    Jun 19, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Google+:
    belum sempat ditanya gan, klo dikasih password root aman gak?
     
  17. Jaka Wijaya

    Jaka Wijaya New Member

    Joined:
    Jun 12, 2015
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Google+:
    Ikut ngejawab. itu tergantung kita, kalo saya upload sendiri filenya ke hosting, trus hak akses filenya saya sendiri yang ngatur.
    jd ga perlu ngasih password.
     
  18. ziuma

    ziuma Well-Known Member

    Joined:
    May 23, 2014
    Messages:
    1,563
    Likes Received:
    240
    Trophy Points:
    63
    nah itu yang saya bingung aman atau tidaknya
    mau pasang iklan kok harus nyerahkan password

    kalau filenya kecil sih bisa kirim ke email terus kita yang upload
     
  19. Jaka Wijaya

    Jaka Wijaya New Member

    Joined:
    Jun 12, 2015
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Google+:
    Kalo ga salah kan ddikasih link download file nya, trus ada instruksi buat ngatus hak akses file di hosting.

    jadi ga usah ngasih password kang.
     
  20. maszgalang

    maszgalang Member

    Joined:
    Mar 21, 2016
    Messages:
    22
    Likes Received:
    1
    Trophy Points:
    8
    Kalo memasukan tinggal dimasukan saja misal

    <html>
    <Body>
    <?php echo'ini php'; ?>
    <Body>
    <Html>

    Klo untuk sekedar seperti itu bisa menggunakan extensi .html namun klo lebih banyak lagi dan ada bahasa mysqlnya berarti menggunakan .php
     
Loading...

Share This Page