[HELP] GD_Library instaled but imagejpeg not working correctly

Discussion in 'Programming' started by linch_army, Jul 6, 2009.

  1. #1
    Hello.

    I have some problem with uploading picture.

    my vps have GD installed and activated,
    --enable-gd-native-ttf'
    --with-gd' '--
    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.2.1
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XPM Support enabled
    XBM Support enabled

    already restart vps, restart httpd, restart everyting.


    My problem is :

    The php code imagejpeg for resize picture not work normal.

    i have anti image spam generator, spam generator use gd but not save the picture to server. Antispam image generator work 100% normal.

    however my upload picture form which resizing then uploading picture don't create the image in my server. and i don't know why.
    already set the image folder permision to 755,777 but still not working.

    (Upload image code which not working)
    the problem is myfile.jpg isn't created.

    however if i change the code become like this and execute the php file:
    the picture shows normally.




    this only happen in my vps but in my other hosting and localhost it work normal.
    the problem is seem my vps provider also don't understand how to solve this.

    So maybe anyone can help me ?
    Maybe there's something missing in my vps so i can talk to server admin to add it.

    Thank you.

    Leo
     
    linch_army, Jul 6, 2009 IP