Forum Sementara Putera.com

Bersama kita perkemaskan forum ini sementara forum asal dalam pemulihan.

Forum putera dah kembali. Masalah sudah berjaya diselesaikan. Sila lawati http://forum.putera.com/tanya


    Detect hosting tu pakai public_html or httpdocs? PHP

    Share

    yurckk
    Ahli Baharu
    Ahli Baharu

    Number of posts : 227
    Age : 32
    Location : Middle Earth
    Registration date : 17/02/2009

    Detect hosting tu pakai public_html or httpdocs? PHP

    Post by yurckk on Thu Dec 24, 2009 7:01 pm

    Salam,

    Cmne nak code so kte leh detect hosting tu pakai public_html or httpdocs?

    - User login (username,pass,url)
    - Determine public_html or httpdocs

    if public_html > call abc.php
    else if httpdocs > call def.php
    else exit();

    Ade idea x? Thanks

    yurckk
    Ahli Baharu
    Ahli Baharu

    Number of posts : 227
    Age : 32
    Location : Middle Earth
    Registration date : 17/02/2009

    Re: Detect hosting tu pakai public_html or httpdocs? PHP

    Post by yurckk on Thu Dec 24, 2009 9:39 pm

    Code:

    <?php

    //--------------------------  close ftp connections
    function ftpCloseA($conn) {
      //close ftp connection
      ftp_close($conn);
    }

    ?>

      Current date/time is Mon Dec 05, 2016 4:25 am