php配置文件解析
深未来
PHP]
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHPinstallations.
; By default, PHP installs itself with a configuration suitablefor
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should betaken
; before going online with your site, please consultphp.ini-recommended
; and http://php.net/manual/en/security.php.
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP'sbehavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looksfor it in the current
; working directory, in the path designated by the environmentvariable
; PHPRC, and in the path that was defined in compile time (in thatorder).
; Under Windows, the compile-time path is the Windowsdirectory. The
; path in which the php.ini file is looked for can be overriddenusing
; 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 probablyguessed).
; Section headers (e.g. [Foo]) are also silently ignored, eventhough
; 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 fromFOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALLor M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) oran expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string("foo").
;在ini文件本身使用的逻辑值使用的运算符
; Expressions in the INI file are limited to bitwise operators andparentheses:
;| bitwise OR
;& bitwise AND
;~ bitwise NOT
;! boolean NOT
;
; Boolean fla
相关文档:
使用方法:
<?
Include “email.class”
$mail->setTo("a@a.com"); //收件人
$mail-> setCC("b@b.com,c@c.com"); //抄送
$mail-> setCC("d@b.com,e@c.com"); //秘密抄送
$mail->setfrom(“f@f.com”);//发件人
$mail->setSubject(“主题”) ; //主题
$ ......
php中有两种方法:
1,通过mail()函数发送
2,Socket发送邮件
一,通过mail()函数发送:
1,需要配置php.ini邮件信息
打开php.in ......
2009-10-22 09:16
|
322次阅读
|
【已有0
条评论】发表评论
关键词:PHP
| 感谢yvonne_826
的提供
|
收藏这篇新闻
日前,PHP语言及工具供应商Zend
Technologies宣布将联手云计算应用管理领军企业RightScale,帮助PHP开发者进入云计算的应用。RightScale将 ......
2009-08-03 16:05
|
6456次阅读
|
【已有2
条评论】发表评论
关键词:PHP
| 感谢ydj9931
的提供
|
收藏这篇新闻
【Csdn
8月3日报道】PHP成为世界上最流行的脚本语言有许多原因:灵活性,易用性等等。但通常只用PHP或者其他语言编码就会显得单调、重复,这 ......