Forum Sementara Putera.com

Would you like to react to this message? Create an account in a few clicks or log in to continue.
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


    PHP image transfer daripada web ke web lain (File jadi unreadable)

    avatar
    yurckk
    Ahli Baharu
    Ahli Baharu


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

    PHP image transfer daripada web ke web lain (File jadi unreadable) Empty PHP image transfer daripada web ke web lain (File jadi unreadable)

    Post by yurckk Mon Dec 21, 2009 11:28 am

    Salam,

    aku ade mslh sket ngn PHP code, code ade kt bawah;

    Code:

    <?php


    //create directory in new url
    ftpMkDir($conn,"/images");


    //change folder mermissions to 0777
    ftpFolderPermission($conn,"images");


    //copy file to new server
    //connection then path to copy file to then path to file on this server
    copyFile($conn,"images/new-image-on-new-url.jpg","http://www.mywebsiteurl.com/images/new-image-on-new-url.jpg");

    ?>

    Masalah aku kt sini, file(image.jpg) yang aku transfer drpd domainA ke domainB jadi unreadable bila aku download balik ke PC aku untuk check.

    Sebab CHMOD yang salah ke?

    Terima kasih!
    avatar
    yurckk
    Ahli Baharu
    Ahli Baharu


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

    PHP image transfer daripada web ke web lain (File jadi unreadable) Empty Re: PHP image transfer daripada web ke web lain (File jadi unreadable)

    Post by yurckk Mon Dec 21, 2009 12:42 pm

    XPe2, solved.. from ASCII tukar ke Binary... Razz

      Current date/time is Fri Mar 29, 2024 3:44 am