52php小说网站源码分享 小说网站源码开源

大家好,今天来为大家分享52php小说网站源码分享的一些知识点,和小说网站源码开源的问题解析,大家要是都明白,那么可以忽略,如果不太清楚的话可以看看本篇文章,相信很大概率可以解决您的问题,接下来我们就一起来看看吧!

PHP编译完成后,可以通过一个简单的函数phpinfo()查看关于PHP的所有信息。以下介绍的模块一览,皆全部来自于函数phpinfo()的输出信息。

SAPIModules

什么是SAPI?

SAPI即ServerAPI,ServerApplicationProgrammingInterface。

1、Apache2.0Handler(apache2handler)

用于Apache2的模块,当安装的是PHP5的时候,编译出来的文件名是libphp5.so;当安装的是PHP7的时候,编译出来的文件名是libphp7.so。

libphp5.so或libphp7.so通常被安装在Apache的安装目录下的modules目录。

编译的时候需指定参数??with-apxs2=FILE,比如??with-apxs2=/usr/local/apache/bin/apxs

2、CGI/FastCGI

CGI,意为CommonGatewayInterface。

通常编译安装在PHP安装目录bin下,这个可执行文件名是php-cgi。

3、CLI

CLI,意为CommandLine。命令行模式。

通常编译安装在PHP安装目录bin下,这个可执行文件名是php。

输入php-h显示其用法。

4、Embed

默认不编译安装,除非指定编译参数??enable-embed

该模块允许在C/C++语言中调用PHP提供的函数。

5、FastCGIProcessManager

FastCGIProcessManager,也就是FPM,PHPFastCGI进程的管理器。

6、litespeed

用于LiteSpeed的模块,默认不编译。

通过指定编译参数??with-litespeed安装。BuildPHPaslitespeedmodule

7、phpdbg

从PHP5.6开始,引入了phpdbg,交互式调试器,用于DebugPHP程序,可以在不用修改代码,不影响性能的情况下控制PHP的运行环境。

通常编译安装在PHP安装目录bin下,这个可执行文件名是phpdbg。

PHP5.4和5.5也可以单独安装该模块。

PHPModules

PHP源码自带的扩展模块,根据PHP版本的不同略有差别,大致为以下这么71个模块。

1、BCMath

通过指定编译参数??enable-bcmath安装。Enablebcstyleprecisionmathfunctions

2、Bzip2

通过指定编译参数??with-bz2=DIR安装。IncludeBZip2support

Debian/Ubuntu需安装libbz2-dev依赖包。

Redhat/CentOS需安装bzip2-devel依赖包。

3、Calendar

通过指定编译参数??enable-calendar安装。Enablesupportforcalendarconversion

4、COMand.Net

Windows专用扩展。COM是指ComponentObjectModel,组件对象模型,是多项微软技术与框架的基础,包括OLE、OLE自动化、ActiveX、COM+、DCOM、Windowsshell、DirectX、WindowsRuntime。

5、ctype

此扩展默认为启用,编译时可通过下列选项禁用:??disable-ctype

6、cURL

通过指定编译参数??with-curl=DIR安装。IncludecURLsupport

Debian/Ubuntu需安装libcurl4-gnutls-dev依赖包。

Redhat/CentOS需安装curl-devel依赖包。

7、Date/TimeSupport(date)

日期和时间函数,默认编译安装,不可禁止。

8、DBA

通过指定编译参数??enable-dba安装。BuildDBAwithbundledmodules

该参数会默认自带3个参数,??with-cdb,??enable-inifile,inifile-flatfile,若要禁止,则需通过参数??without-cdb=DIR,??disable-inifile,??disable-flatfile实现。

9、DB-LIB(MSSQL,Sybase)(pdo_dblib)

Windows专用扩展。用于连接SQLServer和Sybase数据库的PDO驱动扩展。

10、DOM

此扩展默认为启用,DocumentObjectModel。编译时可通过下列选项禁用:??disable-dom

11、enchant

通过指定编译参数??with-enchant=DIR安装。Includeenchantsupport.GNUAspellversion1.1.3orhigherrequired.

一般需指定其目录,??with-enchant=/usr

Debian/Ubuntu需安装libenchant-dev,libpspell-dev依赖包。

Redhat/CentOS需安装enchant-devel,aspell-devel依赖包。

12、EXIF

通过指定编译参数??enable-exif安装。EnableEXIF(metadatafromimages)support

13、fileinfo

此扩展默认为启用,fileinfosupport。编译时可通过下列选项禁用:??disable-fileinfo

注意:在内存比较小的机器上编译此扩展时可能会失败,因此内存加SWAP的容量小于480MB时就不要安装了。

14、Filter

此扩展默认为启用,inputfiltersupport。编译时可通过下列选项禁用:??disable-filter

另如果要给此扩展指定PCRE安装目录的话,则还有以下的编译参数。

??with-pcre-dirFILTER:pcreinstallprefix

15、FirebirddriverforPDO(pdo_firebird)

??with-interbase=DIRIncludeFirebirdsupport.DIRistheFirebirdbaseinstalldirectory

??with-pdo-firebird=DIRPDO:Firebirdsupport.DIRistheFirebirdbaseinstalldirectory

16、FTP

通过指定编译参数??enable-ftp安装。EnableFTPsupport

安装该扩展还有个参数??with-openssl-dir=DIRFTP:opensslinstallprefix,可不指定,则使用系统自带openssl库。

17、GDimaging(gd)

通过指定编译参数??with-gd=DIR安装。IncludeGDsupport.DIRistheGDlibrarybaseinstalldirectoryBUNDLED

这是一个打包式的依赖,需要依赖如下安装包。

??with-webp-dir=DIR(PHP7.0,7.1only)

??with-jpeg-dir=DIR

??with-png-dir=DIR

??with-zlib-dir=DIR

??with-xpm-dir=DIR

??with-freetype-dir=DIR

??enable-gd-native-ttf

??enable-gd-jis-conv

PHP5.4、PHP5.5、PHP5.6则还有个

??with-vpx-dir=DIR

Debian/Ubuntu需安装libwebp-dev,libjpeg-dev,libpng-dev,libxpm-dev,libfreetype6-dev,libvpx-dev依赖包。

Redhat/CentOS需安装libwebp-devel,libjpeg-devel,libpng-devel,libXpm-devel,freetype-devel,libvpx-devel依赖包。

18、GetText

通过指定编译参数??with-gettext=DIR安装。IncludeGNUgettextsupport

Debian/Ubuntu需安装gettext依赖包。

Redhat/CentOS需安装gettext,gettext-devel依赖包。

19、GMP

通过指定编译参数??with-gmp=DIR安装。IncludeGNUMPsupport

Debian/Ubuntu需安装libgmp-dev依赖包。

Redhat/CentOS需安装gmp-devel依赖包。

20、Hash

此扩展默认为启用,编译时可通过下列选项禁用:??disable-hashDisablehashsupport

21、iconv

此扩展默认为启用,编译时可通过下列选项禁用:??without-iconv=DIRExcludeiconvsupport

22、IMAP

通过指定以下编译参数。

??with-imap=DIRIncludeIMAPsupport.DIRisthec-clientinstallprefix

??with-kerberos=DIRIMAP:IncludeKerberossupport.DIRistheKerberosinstallprefix

??with-imap-ssl=DIRIMAP:IncludeSSLsupport.DIRistheOpenSSLinstallprefix

编译此选项时,PHP需指定libc-client.a所在目录。

23、InterBase

??with-interbase=DIRIncludeFirebirdsupport.DIRistheFirebirdbaseinstalldirectory

24、Internationalization(intl)

通过指定编译参数??enable-intl安装。Enableinternationalizationsupport

25、json

此扩展默认为启用,编译时可通过下列选项禁用:??disable-jsonDisableJavaScriptObjectSerializationsupport

26、LDAP

??with-ldap=DIRIncludeLDAPsupport

??with-ldap-sasl=DIRLDAP:IncludeCyrusSASLsupport

Debian/Ubuntu需安装libldap-2.4-2,libldap2-dev依赖包。

Redhat/CentOS需安装openldap,openldap-devel依赖包。

27、libxml

此扩展默认为启用,编译时可通过下列选项禁用:??disable-libxmlDisableLIBXMLsupport

??with-libxml-dir=DIRLIBXML:libxml2installprefix

Debian/Ubuntu需安装libxml2,libxml2-dev依赖包。

Redhat/CentOS需安装libxml2,libxml2-devel依赖包。

28、MultibyteStringFunctions(mbstring)

通过指定编译参数??enable-mbstring安装。Enablemultibytestringsupport

??disable-mbregexMBSTRING:Disablemultibyteregexsupport

??disable-mbregex-backtrackMBSTRING:Disablemultibyteregexbacktrackcheck

??with-libmbfl=DIRMBSTRING:Useexternallibmbfl.DIRisthelibmbflbaseinstalldirectoryBUNDLED

??with-onig=DIRMBSTRING:Useexternaloniguruma.DIRistheonigurumainstallprefix.IfDIRisnotset,thebundledonigurumawillbeused

libmbfl对mbstring是必要的。libmbfl被捆绑到了mbstring。

Debian/Ubuntu需安装libonig2,libonig-dev依赖包。

Redhat/CentOS需安装oniguruma,oniguruma-devel依赖包。

29、mcrypt

通过指定编译参数??with-mcrypt=DIR安装。Includemcryptsupport

Debian/Ubuntu需安装libmcrypt-dev依赖包。

Redhat/CentOS需编译安装libmcrypt和mcrypt。如果安装了EPEL的话,则需安装libmcrypt-devel依赖包。

30、MySQLdriverforPDO(pdo_mysql)

??with-mysql-sock=SOCKPATHMySQLi/PDO_MYSQL:LocationoftheMySQLunixsocketpointer

指定系统里安装的MYSQL的mysql.sock路径。

??with-pdo-mysql=DIRPDO:MySQLsupport.DIRistheMySQLbasedirectory

指定系统里安装的MYSQL的基本目录。若未指定,则默认安装mysqlnd(MySQLnativedriver)

31、MySQLi

??with-mysqli=FILEIncludeMySQLisupport.FILEisthepathtomysql_config

指定系统里安装的MYSQL的目录下的mysql_config文件路径。

32、MySQLnd

通过指定编译参数??enable-mysqlnd安装。Enablemysqlndexplicitly,willbedoneimplicitlywhenrequiredbyotherextensions

另如果要给此扩展指定libz目录的话,则还有以下的编译参数。

??with-zlib-dir=DIRmysqlnd:Setthepathtolibzinstallprefix

33、OCI8

??with-oci8=DIRIncludeOracleDatabaseOCI8support.DIRdefaultsto$ORACLE_HOME

系统里安装了Oracle数据库的话,则指定为$ORACLE_HOME;否则需安装OracleInstantClient,指定为/path/to/instant/client/lib

34、ODBCdriverforPDO(pdo_odbc)

??with-pdo-odbc=flavour,dir

PDO:Supportfor‘flavour’ODBCdriver.

includeandlibdirsarelookedforunder‘dir’.

‘flavour’canbeoneof:ibm-db2,iODBC,unixODBC,generic

If‘,dir’partisomitted,defaultfortheflavour

youhaveselectedwillbeused.e.g.:

??with-pdo-odbc=unixODBC

willcheckforunixODBCunder/usr/local.Youmayattempttouseanotherwiseunsupporteddriverusingthe“generic”flavour.

ThesyntaxforgenericODBCsupportis:

??with-pdo-odbc=generic,dir,libname,ldflags,cflags

Whenbuiltas‘shared’theextensionfilenameisalwayspdo_odbc.so

35、ODBC

ODBC有很多种,一般使用如下编译参数即可。

??with-unixODBC=DIRIncludeunixODBCsupport/usr/local

Debian/Ubuntu需安装unixodbc,unixodbc-dev依赖包。

Redhat/CentOS需安装unixODBC,unixODBC-devel依赖包。

注意:PHP默认会去/usr/local/include下去找头文件sqlext.h,所以还要做个软链接。

ln-s/usr/include/sqlext.h/usr/local/include/

36、OpenSSL

??with-openssl=DIRIncludeOpenSSLsupport(requiresOpenSSL>=1.0.1)

??with-kerberos=DIROPENSSL:IncludeKerberossupport

??with-system-ciphersOPENSSL:Usesystemdefaultcipherlistinsteadofhardcodedvalue

PHP7.1所需的openssl版本是>=1.0.1

PHP7.0所需的openssl版本是>=0.9.8

PHP5.6所需的openssl版本是>=0.9.6

PHP5.5所需的openssl版本是>=0.9.6

PHP5.4所需的openssl版本是>=0.9.6

PHP5.3所需的openssl版本是>=0.9.6

37、Oracle(OCI)driverforPDO(pdo_oci)

??with-pdo-oci=DIRPDO:OracleOCIsupport.DIRdefaultsto$ORACLE_HOME.

Use??with-pdo-oci=instantclient,prefix,versionforanOracleInstantClientSDK.

ForexampleonLinuxwith11.2RPMsuse:

??with-pdo-oci=instantclient,/usr,11.2

38、pcntl

通过指定编译参数??enable-pcntl安装。Enablepcntlsupport(CLI/CGIonly)

39、PerlCompatibleRegularExpressions(PCRE)

??with-pcre-regex=DIRIncludePerlCompatibleRegularExpressionssupport.DIRisthePCREinstallprefixBUNDLED

??with-pcre-jitEnablePCREJITfunctionality

40、PHPArchive(Phar)

此扩展默认为启用,编译时可通过下列选项禁用:??disable-pharDisablepharsupport

41、PHPDataObjects(PDO)

此扩展默认为启用,编译时可通过下列选项禁用:??disable-pdoDisablePHPDataObjectssupport

42、Posix

此扩展默认为启用,编译时可通过下列选项禁用:??disable-posixDisablePOSIX-likefunctions

43、PostgreSQLdriverforPDO(pdo_pgsql)

??with-pdo-pgsql=DIRPDO:PostgreSQLsupport.DIRisthePostgreSQLbaseinstalldirectoryorthepathtopg_config

44、PostgreSQL

??with-pgsql=DIRIncludePostgreSQLsupport.DIRisthePostgreSQLbaseinstalldirectoryorthepathtopg_config

45、Pspell

??with-pspell=DIRIncludePSPELLsupport.GNUAspellversion0.50.0orhigherrequired

一般需指定其目录,??with-pspell=/usr

Debian/Ubuntu需安装libpspell-dev依赖包。

Redhat/CentOS需安装aspell-devel依赖包。

46、Readline

??with-readline=DIRIncludereadlinesupport(CLI/CGIonly)

Debian/Ubuntu需安装libreadline-dev依赖包。

Redhat/CentOS需安装readline-devel依赖包。

47、Recode

??with-recode=DIRncluderecodesupport

Debian/Ubuntu需安装librecode-dev依赖包。

Redhat/CentOS需安装recode-devel依赖包。

48、Reflection

此扩展默认为启用。

49、Sessions

此扩展默认为启用,编译时可通过下列选项禁用:??disable-sessionDisablesessionsupport

另如果要给此扩展指定mm支持的话,则还有以下的编译参数。

??with-mm=DIRSESSION:Includemmsupportforsessionstorage

50、SharedMemoryOperations(shmop)

通过指定编译参数??enable-shmop安装。Enableshmopsupport

51、SimpleXML

此扩展默认为启用,编译时可通过下列选项禁用:??disable-simplexmlDisableSimpleXMLsupport

另如果要给此扩展指定libxml2目录的话,则还有以下的编译参数。

??with-libxml-dir=DIRSimpleXML:libxml2installprefix

52、SNMP

通过指定编译参数??with-snmp=DIR安装。IncludeSNMPsupport

另如果要给此扩展指定openssl目录的话,则还有以下的编译参数。

??with-openssl-dir=DIRSNMP:opensslinstallprefix

Debian/Ubuntu需安装libsnmp-dev依赖包。

Redhat/CentOS需安装net-snmp-devel依赖包。

53、SOAP

通过指定编译参数??enable-soap安装。EnableSOAPsupport

另如果要给此扩展指定libxml2目录的话,则还有以下的编译参数。

??with-libxml-dir=DIRSOAP:libxml2installprefix

54、Sockets

通过指定编译参数??enable-sockets安装。Enablesocketssupport

55、SPL

此扩展默认为启用。

56、SQLite3

此扩展默认为启用,编译时可通过下列选项禁用:??without-sqlite3=DIRDonotincludeSQLite3support.DIRistheprefixtoSQLite3installationdirectory

57、SQLite3.xdriverforPDO(pdo_sqlite)

此扩展默认为启用,编译时可通过下列选项禁用:??without-pdo-sqlite=DIRPDO:sqlite3support.DIRisthesqlitebaseinstalldirectoryBUNDLED

58、SystemVMessagebasedIPC

通过指定编译参数??enable-sysvmsg安装。Enablesysvmsgsupport

59、SystemVSemaphores

通过指定编译参数??enable-sysvsem安装。EnableSystemVsemaphoresupport

60、SystemVSharedMemory

通过指定编译参数??enable-sysvshm安装。EnabletheSystemVsharedmemorysupport

61、tidy

通过指定编译参数??with-tidy=DIR安装。IncludeTIDYsupport

一般需指定其目录,??with-tidy=/usr

Debian/Ubuntu需安装libtidy-dev依赖包。

Redhat/CentOS需安装libtidy-devel依赖包。

62、tokenizer

此扩展默认为启用,编译时可通过下列选项禁用:??disable-tokenizerDisabletokenizersupport

63、WDDX

通过指定编译参数??enable-wddx安装。EnableWDDXsupport

另如果要给此扩展指定libxml2目录的话,则还有以下的编译参数。

??with-libxml-dir=DIRWDDX:libxml2installprefix

64、XMLReader

此扩展默认为启用,编译时可通过下列选项禁用:??disable-xmlreaderDisableXMLReadersupport

另如果要给此扩展指定libxml2目录的话,则还有以下的编译参数。

??with-libxml-dir=DIRXMLReader:libxml2installprefix

65、xmlrpc

通过指定编译参数??with-xmlrpc=DIR安装。IncludeXMLRPC-EPIsupport

另如果要给此扩展指定libxml2和iconv目录的话,则还有以下的编译参数。

??with-libxml-dir=DIRXMLRPC-EPI:libxml2installprefix

??with-iconv-dir=DIRXMLRPC-EPI:iconvdirforXMLRPC-EPI

66、XML

此扩展默认为启用,编译时可通过下列选项禁用:??disable-xmlDisableXMLsupport

67、XMLWriter

此扩展默认为启用,编译时可通过下列选项禁用:??disable-xmlwriterDisableXMLWritersupport

68、XSL

通过指定编译参数??with-xsl=DIR安装。IncludeXSLsupport.DIRisthelibxsltbaseinstalldirectory(libxslt>=1.1.0required)

Debian/Ubuntu需安装libxslt1-dev依赖包。

Redhat/CentOS需安装libxslt-devel依赖包。

69、Zip

通过指定编译参数??enable-zip安装。IncludeZipread/writesupport

另如果要给此扩展指定libz,PCRE和libzip目录的话,则还有以下的编译参数。

??with-zlib-dir=DIRZIP:Setthepathtolibzinstallprefix

??with-pcre-dir=DIRZIP:pcreinstallprefix

??with-libzip=DIRZIP:uselibzip

70、Zlib

通过指定编译参数??with-zlib=DIR安装。IncludeZLIBsupport(requireszlib>=1.0.9)

Debian/Ubuntu需安装zlib1g-dev依赖包。

Redhat/CentOS需安装zlib-devel依赖包。

71、ZendOPcache

PHP5.5之后的版本,此扩展默认为启用,编译时可通过下列选项禁用:??disable-opcacheDisableZendOPcachesupport

注意:默认编译安装不代表默认启用,还需配置到ini文件里才行。

另外,PHP还有诸多的第三方扩展,框架,CMS,包管理工具等。举几个例子。

扩展:ZendGuardLoader,ionCubeLoader,XCache,Imagemagick,GraphicsMagick,Memcached,Redis,Mongodb,Swoole

框架:Laravel,Symfony,Nette,Yii,ZendFramework,Silex,Slim,CakePHP,ThinkPHP

CMS:Wordpress,Drupal,Joomla,Typecho,Phpcms,

包管理工具:Composer

文章分享结束,52php小说网站源码分享和小说网站源码开源的答案你都知道了吗?欢迎再次光临本站哦!

Published by

风君子

独自遨游何稽首 揭天掀地慰生平