×

jpgraphphpinstall

jpgraphphpinstall的简单介绍

admin admin 发表于2023-04-01 16:57:11 浏览54 评论0

抢沙发发表评论

本文目录一览:

PHP调用Jpgraph时报错

出问题的原因:date(),依靠系统的时区设置是不安全的。 您*必须*使用date.timezone设置或date_default_timezone_set()函数。 如果您使用这些方法中的任何一种,并且仍然收到此警告,则很可能是拼写错误的时区标识符。 我们现在选择了“UTC”时区,但请设置date.timezone来选择您的时区。

解决方案:

1、(最好的方法)在php.ini里加上找到date.timezone项,去掉前面的";",添加设置date.timezone = "Asia/Shanghai",如果没有,就手动添加上去,重启环境,然后有的有可能会出现如下问题:-jpgraphphpinstall

Warning: date(): Invalid date.timezone value 'Asia/Beijing', we selected the timezone 'UTC' for now. in D:\Tomcat\apache-tomcat-7.0.77\webapps\webOne\qshxxkj\WEB-INF\php-bin\Wxpay\example\h5.php on line 16-jpgraphphpinstall

此时在php.ini中date.timezone = "Asia/Shanghai",加上如下这句话:date_default_timezone_set('UTC'),重启服务即可。

2、在需要用到这些时间函数的时候,在页面添加date_default_timezone_set("PRC");

3、在你的php页头加上设置时区ini_set('date.timezone','Asia/Shanghai');

linux怎么安装 php jpgraph?

jpgraph的安装与配置

Jpgraph这个强大的绘图组件能根据用户的需要绘制任意图形。只需要提供数据,就能自动调用绘图函数的过程,把处理的数据输入自动绘制。Jpgraph提供了多种创建各种统计图,包括折线图、柱形图和饼形图等。Jpgraph是一个完全使用php语言编写的类库,并可以应用任何php环境中。-jpgraphphpinstall

1、jpgraph的安装

Jpgraph可以从其官方网站下载。注意:jpgraph支持php4.3.1以上和PHP5两种版本的图形库,选择合适的jpgraph下载。可以下载这样的版本使用:jpgraph-2.3

其安装步骤非常简单:

a)        将压缩包下的全部文件解压到一个文件夹中。如f:\appserv\www\jpgraph

b)       打开PHP的安装目录,编辑php.ini文件并修改其中的include_path参数,在其后增加前面的文件夹名,include_path=”.;f:\appserv\www\jpgraph”-jpgraphphpinstall

c)        重新启动apache服务器即可生效。

2、jpgraph的配置

Jpgraph提供了一个专门用于配置jpgraph类库的文件jpg-config.inc.php在使用jpgraph前,可以通过修改文本文件来完成jpgraph的配置。

jpg-config.inc.php文件的配置需要修改以下两项:

a)       支持中文的配置

Jpgraph支持的中文标准字体可以通过修改chinese_ttf_font的设置来完成。

Define(‘chinese_ttf_font’,’bkai00mp.ttf’);

b)       默认图片格式的配置

根据当前PHP环境中支持的图片格式来设置默认的生成图片的格式。Jpgraph默认图片格式的配置可以通过修改DEFAULT_GFORMAT的设置来完成。默认值auto表示jpgraph将依次按照png,gif和jpeg的顺序来检索系统支持的图片格式。-jpgraphphpinstall

DEFINE(“DEFAULT_GFORMAT”,”auto”);

注意:如果用户使用的为jpgraph2.3版本,那么不需要重新进行配置。

php jpgraph怎样把月份改成中文,而且不是乱码喔。

直接修改jpgraph_ttf.inc.php。我的JpGraph为3.0.7版本,大概在178到186行之间的代码改为如下:

elseif( $aFF === FF_SIMSUN ) {

// Do Chinese conversion

/*if( $this-g2312 == null ) {

include_once 'jpgraph_gb2312.php' ;

$this-g2312 = new GB2312toUTF8();

}

return $this-g2312-gb2utf8($aTxt);*/

return $aTxt;

}

但是我还是不喜欢改动源码,可以用iconv("UTF-8","GB2312//IGNORE","简体中文 繁体中文 test")函数

先将要显示的字转换为GB2312。

PHP GD库错误

提示错误大意是:JPgGragh提示你:你安装php时,没有同时配置和编译你的GD库,你需要重新编辑你的PHP,以获得对GD库的支持

同时你函数imagetypes()和imagecreatefromstring()不存在,这有可能是你php.ini没有打开GD库的支持

同时附上编译PHP(with gd)时需加的参数

PHP4-Server:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-config-file-path=/etc --with-gd --enable-gd-native-ttf --enable-gd-jis-conv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --enable-xml --enable-mbstring-jpgraphphpinstall

PHP4-Max:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --mandir=/usr/share/man --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc --with-openssl=/usr/local/openssl-0.9.7e --with-gd --enable-gd-native-ttf --enable-gd-jis-conv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-bz2 --with-inifile --with-hyperwave --enable-xml --enable-track-vars --enable-dba --enable-dbase --enable-filepro --enable-ftp --enable-versioning --enable-memory-limit --enable-calendar --enable-session --enable-sockets --enable-sysmsg --enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-overload --enable-ctype --enable-sigchild --enable-magic-quotes --enable-roxen-zts --enable-fastcgi --enable-dbx --enable-dio --enable-shmop --enable-mbstring-jpgraphphpinstall

PHP5-Server:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir --with-bz2 --with-tiff-dir --with-libxml-dir --with-gd --with-freetype-dir --with-jpeg-dir --with-png-dir --with-ttf --enable-mbstring --with-mysql=/usr/lib/mysql --with-config-file-path=/etc --disable-ipv6 --enable-gd-native-ttf-jpgraphphpinstall

PHP5-Standard:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --mandir=/usr/share/man --with-openssl=/usr/local/openssl-0.9.7e --with-zlib --with-bz2 --with-tiff-dir --with-libxml-dir --enable-dio --enable-ftp --with-gd --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-bz2-dir --with-ttf --enable-mbstring --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc --disable-ipv6 --enable-gd-native-ttf-jpgraphphpinstall

PHP5-Max:

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --mandir=/usr/share/man --with-openssl=/usr/local/openssl-0.9.7e --with-zlib --with-bz2 --with-tiff-dir --with-libxml-dir --enable-dio --enable-ftp --with-gd --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-bz2-dir --with-ttf --with-inifile --enable-dba --enable-dbase --enable-filepro --enable-versioning --enable-memory-limit --enable-calendar --enable-sockets --enable-sysvsem --enable-sigchild --enable-magic-quotes --enable-roxen-zts --enable-fastcgi --enable-dbx --enable-shmop --enable-mbstring --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc --disable-ipv6 --enable-gd-native-ttf-jpgraphphpinstall

php如何将jpgraph绘画出的图片不断保存的本地文件夹

原因很简单,那是因为PHP页面都有一个反应超时的时间,一般为三十秒。

相信阁下所说的不断绘图并保存,是使用的一个死循环,然后在浏览器打开那个页面就让它运行吧?

这样不行的,因为运行过程中,那个页面一直在做绘图保存处理,循环都还没有退出来,三十秒就过去了,于是,程序停止。

那么设置更长的超时时间?完全不可取,因为一则无法真正意义上不断,将超时时间设置过大,对服务器要求也高。

那么怎么解决?建议使用Ajax。让JS循环,循环一次,则通过Ajax来让PHP绘图并保存,这样,在浏览器不关闭的情况下,则可无限循环了。当然,一定要做好异常处理,因为万一某一次循环出了问题,可能会导致循环终止。-jpgraphphpinstall

snort安装

1。在官网()

2。选择 Binaries: (Click to view binaries »)

3。选择 win32/

4. 选择 Snort_2_8_3_2_Installer.exe

5。然后下载,安装。

6。snort 要和winpcap 4_0_1 一起用的,即先下载 winpcap, install and run, 然后再装snort.

7. snort 安装以后,是在dos command 里面运行的,即 c:\snort\bin\snort.

8. 由于snort 是基于linux设计的,所以在 c:\snort\ect\snort.con 文件是要用notepad++修改成window 的格式才能工作的。

9。具体问题发邮件到:jack772882@126.com, 我可以发 conf file 给你,哈哈老师刚教的,现买现卖了。

10. winpcap 可以在

下载。