Get Value dari PHP utk Di Execute Di Linux Command

Discussion in 'Desain Web dan Programming' started by anugrah sandi, 19 May 2015.

Thread Status:
Not open for further replies.
  1. anugrah sandi

    anugrah sandi Poster 1.0

    Messages:
    51
    Likes Received:
    4
    Trophy Points:
    8
    om saya ada masalah :D boleh dibantu yah..
    caranya buat ngambil nilai dari php lalu di execute di linux command gimana yah ?

    jadi semisal saya punya variable

    $user = 'nuge';

    lalu variabel ini mau saya execute di linux nntinya via ssh2_exec
     
  2. mustafaramadhan

    mustafaramadhan Hosting Guru

    Messages:
    3,237
    Likes Received:
    857
    Trophy Points:
    113
    Di-save saja ke file (misalnya 'file_put_contents('./user.txt', $user);')
     
  3. palingwaras

    palingwaras Beginner 2.0

    Messages:
    44
    Likes Received:
    6
    Trophy Points:
    8
    Mengambil value cukup disebutkan saja nama variable penyimpan valuenya, misalnya untuk dijadikan parameter function.

    Atau mungkin maksudnya menyimpan value untuk dipakai di proses/request selanjutnya? Bisa disimpan di session, database, pakai key-value store (eg. redis), atau disimpan sbg plaintext seperti dicontohkan pak mr.

    Banyak pilihan ;)
     
  4. anugrah sandi

    anugrah sandi Poster 1.0

    Messages:
    51
    Likes Received:
    4
    Trophy Points:
    8
    Solved.. thanks om ^_^
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...