SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot sethtrain's Avatar
    Join Date
    Dec 2003
    Location
    Paducah, KY
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question PHP Anthology Vol II -----> Access Control 8.php (but in my case randomimage.php)

    I am getting this error in my randomimage.php file which was created from the Access Control chapter in The PHP Anthology Vol II:

    Fatal error: Call to undefined function ImageCreateFromJPEG() in /home/www/includes/RandomImageText.php on line 72

    What can I do to fix this?

    --
    Sethtrain
    --
    sethtrain

  2. #2
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,524
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most likely, you have an include path incorrect for the class that contains your function ImageCreateFromJPEG, or it simply isn't on the server.

    Another possibility is a spelling error, if you typed the script by hand. (And if you did that, go get the zip file with all the code for the book so you don't have to hand-key anything).

    Hope this helps.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    Showcase your music collection on the Web

  3. #3
    SitePoint Zealot sethtrain's Avatar
    Join Date
    Dec 2003
    Location
    Paducah, KY
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have checked all of that (BTW i did have the zip file I just renamed and configured to my database). I have gd installed but it doesn't say JPEG Supporr enabled. Is that the problem? I hope not because I can't get the jpegsrc.v6b.tar.gz file to install correctly...
    --
    sethtrain

  4. #4
    SitePoint Zealot sethtrain's Avatar
    Join Date
    Dec 2003
    Location
    Paducah, KY
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    gd
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.1.9
    GIF Read Support enabled
    GIF Create Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    --
    sethtrain

  5. #5
    SitePoint Zealot sethtrain's Avatar
    Join Date
    Dec 2003
    Location
    Paducah, KY
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can I change the RandomImage file to generate a gif file instead of the jpeg file? I believe all of this is happening because the jpeg support doesnt' work.
    --
    sethtrain


Bookmarks

Posting Permissions

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