<?php
$im=ImageCreate(100,100);
echo ImageSX($im)."<br>";
echo ImageSY($im);
ImageDestroy($im);
?>
$im=ImageCreate(100,100);
echo ImageSX($im)."<br>";
echo ImageSY($im);
ImageDestroy($im);
?>
解决方案 »
- php 数组合并问题,求大神相助
- 请教一下高手,PHP里怎么做每日领取2个游戏物品的功能???
- 谁熟悉PHP XML DOMDocument 过来帮帮忙
- php如何得到本机的ip地址??O(∩_∩)O~
- 根据不同的域名进入不同目录的程序怎么写?
- 求PHP执行存储过程,返回多个记录集中.怎么再把值 print出来
- 關於php開發的軟件
- php连接mysql出现怪问题
- 多用户同时访问数据库,此时如何根据各自的ID获得各自的用户名(很急)!
- php 如何配合easyui 实现,datagrid1点击某行,然后datagrid2 进行动态查询。
- 一个笨问题
- 如何用header打开一个新窗口,不在他的本窗口刷新
这句少了一个"
echo ImageSX($im)."<br>";
php.ini中的这个没有设.
error_reporting = E_ALL & ~E_NOTICE
你的库加载没有问题吧.
能否把你的php.ini中 dll 部份貼出來給我看看?我想是我的dll加載出問題了,只用一個$im=ImageCreate(100,100);
都出錯。Call to undefined function: imagecreate()
Fatal error: dl() is not supported in multithreaded Web servers - use extension statements in your php.ini in
系统本身就有上边的那个路径你不必把路径写的那么详细你在程序中用这个看看
php.ini (win98+pws)
[PHP];;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive=value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
; foo=; sets foo to an empty string
; foo=none ; sets foo to an empty string
; foo="none" ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).
engine=On
short_open_tag=On
asp_tags=Off
precision=12
y2k_compliance=Off
output_buffering=Off
output_handler=
unserialize_callback_func=
zlib.output_compression=Off
implicit_flush=Off
allow_call_time_pass_reference=On
safe_mode=Off
safe_mode_gid=Off
safe_mode_include_dir=
safe_mode_exec_dir=
safe_mode_allowed_env_vars=PHP_
safe_mode_protected_env_vars=LD_LIBRARY_PATH
disable_functions=
highlight.string=#CC0000
highlight.comment=#FF9900
highlight.keyword=#006600
highlight.bg=#FFFFFF
highlight.default=#0000CC
highlight.html=#000000
expose_php=On
max_execution_time=30 ; Maximum execution time of each script, in seconds
memory_limit=8M ; Maximum amount of memory a script may consume (8MB)
error_reporting= E_ALL; display all errors, warnings and notices
display_errors=On
display_startup_errors=Off
log_errors=Off
track_errors=Off
variables_order="EGPCS"
register_globals=Off
register_argc_argv=On
post_max_size=8M
gpc_order="GPC"
magic_quotes_gpc=On
magic_quotes_runtime=Off
magic_quotes_sybase=Off
auto_prepend_file=
auto_append_file=
default_mimetype="text/html"
doc_root=
user_dir=
extension_dir=C:\php\extensions
enable_dl=On
cgi.force_redirect=off
file_uploads=On
upload_max_filesize=2M
allow_url_fopen=On
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_ctype.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_cybercash.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fbsql.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_ingres.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_tokenizer.dll
;extension=php_w32api.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zlib.dll[Syslog]
define_syslog_variables=Off
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= [email protected] ; for Win32 only
[Java]
[SQL]
sql.safe_mode=Off
[ODBC]
odbc.allow_persistent=On
odbc.check_persistent=On
odbc.max_persistent=-1
odbc.max_links=-1
odbc.defaultlrl=4096
odbc.defaultbinmode=1
[MySQL]
mysql.allow_persistent=On
mysql.max_persistent=-1
mysql.max_links=-1
mysql.default_port=
mysql.default_socket=
mysql.default_host=
mysql.default_user=
mysql.default_password=
[mSQL]
msql.allow_persistent=On
msql.max_persistent=-1
msql.max_links=-1
[PostgresSQL]
pgsql.allow_persistent=On
pgsql.auto_reset_persistent=Off
pgsql.max_persistent=-1
pgsql.max_links=-1
[Sybase]
sybase.allow_persistent=On
sybase.max_persistent=-1
sybase.max_links=-1
sybase.min_error_severity=10
sybase.min_message_severity=10
sybase.compatability_mode=Off
[Sybase-CT]
sybct.allow_persistent=On
sybct.max_persistent=-1
sybct.max_links=-1
sybct.min_server_severity=10
sybct.min_client_severity=10
[bcmath]
bcmath.scale=0
[browscap]
browscap=extra/browscap.ini
[Informix]
ifx.default_host=
ifx.default_user=
ifx.default_password=
ifx.allow_persistent=On
ifx.max_persistent=-1
ifx.max_links=-1
ifx.textasvarchar=0
ifx.byteasvarchar=0
ifx.charasvarchar=0
ifx.blobinfile=0
ifx.nullformat=0
[Session]
session.save_handler=files
session.save_path= C:\PHP\sessiondata ; argument passed to save_handler
session.use_cookies=1
session.name=PHPSESSID
session.auto_start=0
session.cookie_lifetime=0
session.cookie_path=/
session.cookie_domain=
session.serialize_handler=php
session.gc_probability=1
session.gc_maxlifetime=1440
session.referer_check=
session.entropy_length=0
session.entropy_file=
session.cache_limiter=nocache
session.cache_expire=180
session.use_trans_sid=0
url_rewriter.tags="a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent=On
mssql.max_persistent=-1
mssql.max_links=-1
mssql.min_error_severity=10
mssql.min_message_severity=10
mssql.compatability_mode=Off
[Assertion]
[Ingres II]
ingres.allow_persistent=On
ingres.max_persistent=-1
ingres.max_links=-1
ingres.default_database=
ingres.default_user=
ingres.default_password=
[Verisign Payflow Pro]
pfpro.defaulthost="test-payflow.verisign.com"
pfpro.defaultport=443
pfpro.defaulttimeout=30
[Sockets]
sockets.use_system_read=On
[com]
[Printer]
[mbstring]
[FrontBase]
extension=php_gd2.dll
开一个.
用dl("php_gd2.dll");
就把这两个都
;extension=php_gd.dll
;extension=php_gd2.dll
不是现在还不行吧.
我的現在可以了是 pws 的問題.它真不穩定,有好多不正常的地方,如我向窗口輸出圖像,第一次以后再輸地址就會有提示下載的對話,沒圖像。真把人給弄死了,你的服務器是裝的什麼。給分了,謝謝!