Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

Re: [PHP] imagecreate() From: Adam Voigt (adam <email protected>)
Date: 02/26/03

Did you restart?

On Wed, 2003-02-26 at 12:41, Anthony Ritter wrote:

    On MS Win 98 / Apache / PHP 4
    
    If somebody out there using Win can check my php.ini file and advise
    me what
    I'm doing wrong.
    
    I have uncommented:
    ..............
    extension=php_gd.dll
    ..................
    and have included:
    ..................
    extension_dir = C:\php4\extensions
    ....................
    I run the php script:
    
    <?
    header("Content-type:image/png");
    $image=imagecreate(200,200);
    imagepng($image);
    ?>
    ....................
    
    I receive:
    
    X-Powered-By: PHP/4.0.0 Content-type:image/png
    Fatal error: Call to undefined function: imagecreate() in c:\program
    files\apache group\apache\htdocs\image.php on line 3
    
    Thank you.
    TR
    ...........................................
    
    // this is in my php.ini file:
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    include_path = ; UNIX: "/path1:/path2" Windows:
    "\path1;\path2"
    doc_root = ; the root of the php pages, used only if nonempty
    user_dir = ; the directory under which php opens the script
    using
    /~username, used only if nonempty
    ;upload_tmp_dir = ; temporary directory for HTTP
    uploaded
    files (will use system default if not specified)
    upload_max_filesize = 2097152 ; 2 Meg default limit on file
    uploads
    extension_dir = C:\php4\extensions ; directory in which the
    loadable
    extensions (modules) reside
    
    
    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;
    ; if you wish to have an extension loaded automaticly, use the
    ; following syntax: extension=modulename.extension
    ; for example, on windows,
    ; extension=msql.dll
    ; or under UNIX,
    ; extension=msql.so
    ; Note that it should be the name of the module only, no directory
    information
    ; needs to go here. Specify the location of the extension with the
    extension_dir directive above.
    
    
    ;Windows Extensions
    ;extension=php_mysql.dll
    ;extension=php_nsmail.dll
    ;extension=php_calendar.dll
    ;extension=php_dbase.dll
    ;extension=php_filepro.dll
    extension=php_gd.dll
    ;extension=php_dbm.dll
    ;extension=php_mssql.dll
    ;extension=php_zlib.dll
    ;extension=php_filepro.dll
    ;extension=php_imap4r2.dll
    ;extension=php_ldap.dll
    ;extension=php_crypt.dll
    ;extension=php_msql2.dll
    ;extension=php_odbc.dll
    ....................................
    
    //this is the php script:
    
    <?
    header("Content-type:image/png");
    $image=imagecreate(200,200);
    imagepng($image);
    ?>
    ...............................
    
    //this is what I get:
    
    X-Powered-By: PHP/4.0.0 Content-type:image/png
    Fatal error: Call to undefined function: imagecreate() in c:\program
    files\apache group\apache\htdocs\image.php on line 3
    
    
    
    
    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
    

-- 
Adam Voigt (adam <email protected>)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc