[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    RE: [PHP-WIN] newbie: installing php_gd
From:       "Uttam" <uttam () lml ! co ! in>
Date:       2003-02-27 11:24:40
[Download RAW message or body]

someone in this list earlier suggested that the '~' character has mysterious
behavious in php.ini, i.e. rest of file after any '~' character is ignored.
I see this character in your php.ini, just see if removing this helps.

another idea coming to me is to rename the 'extensions' directory to <8
character (DOS compliant) name like 'exten' & see if it works?

regds,
-----Original Message-----
From: Anthony Ritter [mailto:tony@gonefishingguideservice.com]
Sent: Wednesday, February 26, 2003 23:13
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] newbie: installing php_gd


Rich,
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 Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic