Results 1 to 15 of 15

Thread: Assalamualaikum

  1. #1
    Join Date
    Aug 2007
    Location
    UiTM Shah Alam Selangor
    Posts
    13
    Rep Power
    0

    Smile Assalamualaikum

    Lama x masuk dalam forum ni...
    actually just a simple question maybe bg yg expert dlm PHP memang tau jawapan nye.. so harap dapat membantu...

    Mukadimah:
    Dari ASP --> ASP.Net & skang ni baru nak menjinak kan diri dalam PHP ni..
    maybe bg webmaster yg lain tergelak ngan keterbalikan cara saya belajaQ...

    Maklumat
    Windows SERVER 2003 ENT SP2
    IIS 6
    MS SQL V8.0
    Mozilla firefox2, Ie7
    WAMP 2 "Apache2,MySQL5,PHP5"PHPmyadmin,SQLiteManager"
    terdapat 4 Localhost di berlainan DRIVE
    Text Editor Dreamweaver,Notepad++,Notepad

    Masalah
    Wamp server dah jalan ngan cantik "alahamdullilah"
    akan tetapi pabila saya memulakan kerja utk membina web "PHP"
    data atau value yg sepatutnya keluar contoh simple calculation / tarikh tak keluar..

    Solution
    Apa yang salah?
    Dimana yang salah?
    Apa yang patut saya buat?
    Kat mana patut saya check?

    So harap benar boleh membantu

    Contoh
    Link contoh PHP yang bermasalah

    Mail
    Izzuan@linuxmail.org
    Dehackers@linuxmail.org
    Dehackerz@gmail.com

  2. #2
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    271
    sepatutnya kerja kod kenalah ada kodnya sekali, baru boleh dibantu.

    saya rasa, berkemungkinan berkaitan Register Global = off .

  3. #3
    Join Date
    Aug 2007
    Location
    UiTM Shah Alam Selangor
    Posts
    13
    Rep Power
    0

    reply

    Ahaks...
    dah register_globals = On dah lama di on kan nye..
    tapi sedey nye cam x leh gak aje...

    ok ok coding nye ni :

    <?
    // Hello Dunia Ku.
    // Dehackers™ Works.
    $tarikh = date('dd/M/Y');
    // cetakkan tarikh dalam page.
    echo "Tarikh Hari ini : $tarikh ";
    ?>

  4. #4
    Join Date
    Aug 2007
    Location
    UiTM Shah Alam Selangor
    Posts
    13
    Rep Power
    0
    dan 1 lagi contoh yang tak kuaQ value

    upload_form.html
    <HTML>
    <HEAD>
    <TITLE>Upload File</TITLE>
    </HEAD>
    <BODY>
    <H1>Upload A File</H1>
    <FORM METHOD="POST" ACTION=" do_upload.php" ENCTYPE="multipart/form-data">
    <p><strong>File to Upload:</strong><br>
    <input type="file" NAME="img1" SIZE="30"></p>
    <p><INPUT type="submit" NAME="submit" VALUE="Upload File"></p>
    </FORM>
    </BODY>
    </HTML>


    do_upload
    <?

    if ($_FILES[img1] != "") {

    @copy($_FILES[img1][tmp_name],"http://www.fce.uitm.edu.my/Izzuan/wamp/bin/apache/apache2.2.8/htdocs".$_FILES[img1] [name])
    or die("Couldn`t copy the file.");

    } else {

    die("No input file specified");
    }

    ?>
    <html>
    <head>
    <title>Successful File Upload</title>
    </head>
    <body>
    <H1>Success!</H1>

    <p>You sent: <? echo_FILES[img1] [name]; ?>, a <? echo $_FILES[img1][size]; ?> byte file with a mime type of <? echo $_FILES[img1][type]; ?>.</p>

    </body>
    </html>

    kalau nak nengok link kat sini

  5. #5
    Join Date
    Sep 2005
    Location
    shah alam
    Posts
    110
    Rep Power
    167
    Quote Originally Posted by Dehackers View Post
    Ahaks...
    dah register_globals = On dah lama di on kan nye..
    tapi sedey nye cam x leh gak aje...

    ok ok coding nye ni :

    <?
    // Hello Dunia Ku.
    // Dehackers™ Works.
    $tarikh = date('dd/M/Y');
    // cetakkan tarikh dalam page.
    echo "Tarikh Hari ini : $tarikh ";
    ?>
    result kat pc aku kuar gini..
    Tarikh Hari ini : 1616/Apr/2008

    so mungkin yg "dd" dua ekor tu.. ko buang tinggalkan sekor jer..

  6. #6
    Join Date
    Sep 2005
    Location
    shah alam
    Posts
    110
    Rep Power
    167
    Quote Originally Posted by Dehackers View Post
    dan 1 lagi contoh yang tak kuaQ value

    upload_form.html
    <HTML>
    <HEAD>
    <TITLE>Upload File</TITLE>
    </HEAD>
    <BODY>
    <H1>Upload A File</H1>
    <FORM METHOD="POST" ACTION=" do_upload.php" ENCTYPE="multipart/form-data">
    <p><strong>File to Upload:</strong><br>
    <input type="file" NAME="img1" SIZE="30"></p>
    <p><INPUT type="submit" NAME="submit" VALUE="Upload File"></p>
    </FORM>
    </BODY>
    </HTML>


    do_upload
    <?

    if ($_FILES[img1] != "") {

    @copy($_FILES[img1][tmp_name],"http://www.fce.uitm.edu.my/Izzuan/wamp/bin/apache/apache2.2.8/htdocs".$_FILES[img1] [name])
    or die("Couldn`t copy the file.");

    } else {

    die("No input file specified");
    }

    ?>
    <html>
    <head>
    <title>Successful File Upload</title>
    </head>
    <body>
    <H1>Success!</H1>

    <p>You sent: <? echo_FILES[img1] [name]; ?>, a <? echo $_FILES[img1][size]; ?> byte file with a mime type of <? echo $_FILES[img1][type]; ?>.</p>

    </body>
    </html>

    kalau nak nengok link kat sini
    yg nie ok jer..
    hak hak hak..
    Success!

    You sent: , a byte file with a mime type of .

  7. #7
    Join Date
    Aug 2007
    Location
    UiTM Shah Alam Selangor
    Posts
    13
    Rep Power
    0
    alamak amaRDaniel....
    me dah tinggal kan D tu sorang2 tapi still problem...
    thats mean masalah coding tu x berapa nak timbul..
    tapi masalah value yg spatutnye kuaQ tak kuaQ...
    PHP me setting senget kot?
    tapi mana senget nye yerk?
    mueheheheh

  8. #8
    Join Date
    Sep 2005
    Location
    shah alam
    Posts
    110
    Rep Power
    167
    Quote Originally Posted by Dehackers View Post
    alamak amaRDaniel....
    me dah tinggal kan D tu sorang2 tapi still problem...
    thats mean masalah coding tu x berapa nak timbul..
    tapi masalah value yg spatutnye kuaQ tak kuaQ...
    PHP me setting senget kot?
    tapi mana senget nye yerk?
    mueheheheh
    owh tu susah ler nak tahu mana yg senget tu bey..
    aku test code tu kat local pc jer.. ok jer..
    try ler tanyal awek2 cun compscience kat uitm tu..

  9. #9
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    271
    PHP Code:
    <p>You sent: <? echo_FILES[img1] [name]; ?>, a <? echo $_FILES[img1][size]; ?> byte file with a mime type of <? echo $_FILES[img1][type]; ?>.</p>
    nih betul ker ?
    <? echo_FILES[img1] [name]; ?>

    ke sepatutnya :
    <? echo $_FILES[img1] [name]; ?>

    *lama tak main php nih, kekok dah

  10. #10
    Join Date
    Aug 2007
    Location
    UiTM Shah Alam Selangor
    Posts
    13
    Rep Power
    0
    ahaks...
    coding tu tersilap skit but it still wont work...
    me rasa ada prob ngan PHP setting je...

    arghh sedey la..
    PHP setting lari laa..
    nak kejaQ tak reti..
    heheheh
    cam ne yerk?
    leh la bantu....

  11. #11
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    271
    <?
    // Hello Dunia Ku.
    // Dehackers™ Works.
    $tarikh = date('dd/M/Y');
    // cetakkan tarikh dalam page.
    echo "Tarikh Hari ini : $tarikh ";
    ?>

    yang nih pun tak keluar ke?
    kalau tak kuar.. ada prob ngan server la kot?
    dah try kat lain2 hosting?

  12. #12
    Join Date
    Aug 2007
    Location
    UiTM Shah Alam Selangor
    Posts
    13
    Rep Power
    0
    Quote Originally Posted by mysticmind View Post
    <?
    // Hello Dunia Ku.
    // Dehackers™ Works.
    $tarikh = date('dd/M/Y');
    // cetakkan tarikh dalam page.
    echo "Tarikh Hari ini : $tarikh ";
    ?>
    yang ni memang tak kuaQ
    tu arr masalah ngan SERVER but
    kalau pakai posting language ASP ok plak isk isk...
    .... your server pakai PHP yerk?
    me nak check setting PHP ngan kamu nak buat compare setting..
    leh x?

  13. #13
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    271
    try guna <?php bukan sekadar <? je

  14. #14
    Join Date
    Apr 2007
    Location
    OZ
    Posts
    1
    Rep Power
    0
    aku rasa la masalahnye sebab srver tak jalan kot. dulu masa aku cuba mula2 ngetest php guna tutorial dr mystic, sama gak tak jadi. pastu cek punya cek rupanya sebab server. tapi ko nyer masalah, aku xtau la. mungkin sama cam aku. mungkin idak.

  15. #15
    Join Date
    Mar 2005
    Location
    JB
    Posts
    14
    Rep Power
    0

    Post

    Quote Originally Posted by Dehackers View Post
    Ahaks...
    dah register_globals = On dah lama di on kan nye..
    tapi sedey nye cam x leh gak aje...

    ok ok coding nye ni :

    <?
    // Hello Dunia Ku.
    // Dehackers™ Works.
    $tarikh = date('d/M/Y');
    // cetakkan tarikh dalam page.
    echo "Tarikh Hari ini : $tarikh ";
    ?>

    klau jln kat local pc, sy rs IIS n WAMP ang conflict. cuba ang stop IIS service. sbb sy pnh jd mcm nie, langsung xkeluar ape2, last2 stopkn IIS service trus idop.. check It zout.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. assalamualaikum...
    By kuumasang_n33 in forum Member Introductions
    Replies: 0
    Last Post: 08-01-2008, 11:27 AM
  2. Assalamualaikum
    By wonggogel in forum Member Introductions
    Replies: 3
    Last Post: 19-11-2007, 01:27 PM
  3. Assalamualaikum...........
    By eida82 in forum Member Introductions
    Replies: 9
    Last Post: 07-06-2007, 01:06 AM
  4. assalamualaikum..
    By banana_split in forum Member Introductions
    Replies: 5
    Last Post: 02-06-2007, 03:02 AM
  5. assalamualaikum and hi there....
    By marleyz in forum Websites Review and Suggestion
    Replies: 9
    Last Post: 12-04-2003, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112