Menu

I can't upload images

2003-03-14
2003-04-29
  • Ihor Berehulyak

    Ihor Berehulyak - 2003-03-14

    My problem in windows 2000, php 4.23
    I can upload photos in PageMaster but I can't upload images in pppwslistings.

    agency, agents, listing photo.
    Fatal error: Call to undefined function: imagecreatefromjpeg() in d:\www\phpwebsite09\mod\phpwslistings\class\ListingBaseImage.php on line 239

    For example about agents. I upload photo with error (!), but the photo is in phpwslistings/agencies folder and i don't see it in View Agent page.
    I see only <img src="images/phpwslistings/agents/" width="" height="" alt=""> in view source page.

     
    • Don Seiler

      Don Seiler - 2003-03-17

      Do you have jpeg support compiled into PHP?  The imagecreatefromjpeg() function is used to create thumbnails.  You need to have jpeg and png support compiled into PHP, along with gd support.

       
      • Mike Windsor

        Mike Windsor - 2003-03-17

        I got this same error running the exact same setup.  All I did was uncomment the

        extension=php_gd2.dll 

        and it worked.  You need GD support.

         
    • Douglass W Jones

      Where do yo uncomment

      extension=php_gd2.dll

      how do you compile jpeg support

      and what is GD Support?

       
      • Don Seiler

        Don Seiler - 2003-04-29

        GD is a set of libraries for graphics manipulation.  phpwsListings uses it to generate thumbnails.

        Winzor should be able to tell you where to comment that line out.  Like I said in the other post, I'm not familiar with PHP on Windows.

         
    • Douglass W Jones

      The pho.ini has this line

      extension=php_gd2.dll

       
    • Douglass W Jones

      When I uncommented

      extension=php_gd2.dll

      in php.ini the site would not work at all

       

Log in to post a comment.