Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHP ·¢ËÍÓʼþ

 
PHP ·¢ËÍÓʼþ
×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ÐÞ¸Ä:2007-06-17 ä¯ÀÀ:14208 ::  :: 
 PHP Sessions
PHP allows you to send e-mails directly from a script.
PHPÔÊÐíÄãͨ¹ý½Å±¾Ö±½Ó·¢ËÍe-mail¡£
The PHP mail() Function
PHP mail()º¯Êý
The PHP mail() function is used to send emails from inside a script.
PHP mail()º¯Êý¿ÉÒԴӽű¾ÄÚ·¢ËÍemail¡£
Syntax
Óï·¨
mail(to,subject,message,headers,parameters)
Parameter
²ÎÊýDescription
ÃèÊö
to
Required. Specifies the receiver / receivers of the email
±ØÒª²ÎÊý¡£Ö¸¶¨emailµÄ½ÓÊÕÕß
subject
Required. Specifies the subject of the email. Note: This parameter cannot contain any newline characters
±ØÒª²ÎÊý¡£Ö¸³öemailµÄÖ÷Ìâ¡£×¢Ò⣺Õâ¸ö²ÎÊý°üº¬µÄ×Ö·û²»ÄÜ»»ÐУ¨Ö»ÄÜÏÔʾһÐУ©
message
Required. Defines the message to be sent. Each line should be separated with a LF (n). Lines should not exceed 70 characters
±ØÒª²ÎÊý¡£¶¨Òå·¢Ë͵ÄÐÅÏ¢¡£Ã¿Ðж¼±ØÐëÓã¨n£©·Ö¸ô¿ª¡£Ã¿Ðв»Äܳ¬¹ý70¸ö×Ö·û
headers
Optional. Specifies additional headers, like from, Cc, and Bcc. The additional headers should be separated with a CRLF (rn)
¿ÉÑ¡²ÎÊý¡£Ö¸¶¨¸½¼Ó±êÌ⣬È磺form¡¢Cc¼°Bcc¡£¸½¼Ó±êÌâͨ¹ý£¨rn£©½øÐзָô
parameters
Optional. Specifies an additional parameter to the sendmail program
¿ÉÑ¡²ÎÊý¡£¸øsendmail³ÌÐòÖ¸¶¨Ò»¸ö¸½¼Ó²ÎÊý
Note: For the mail functions to be available, PHP requires an installed and working email system. The program to be used is defined by the configuration settings in the php.ini file. Read more in our PHP Mail reference.
×¢Ò⣺PHPÐèÒª°²×°¡¢ÔËÐÐemailϵͳ²Å¿ÉÒÔʹÓÃmailº¯Êý¡£ËùʹÓõijÌÐòÊÇͨ¹ýphp.iniÎļþÖеÄÅäÖÃÊôÐÔÀ´È·¶¨µÄ¡£ÔĶÁ¸ü¶àµÄ¹ØÓÚPHP Mail²ÎÊý¡£
PHP Simple E-Mail
¼òÒ×µÄE-mail
The simplest way to send an email with PHP is to send a text email.
ʹÓÃPHP·¢ËÍÓʼþµÄ×î¼òµ¥µÄ·½·¨¾ÍÊÇ·¢ËÍÒ»¸öÎı¾¸ñʽµÄemail¡£
In the example below we first declare the variables ($to, $subject, $message, $from, $headers), then we use the variables in the mail() function to sen


Ïà¹ØÎĵµ£º

PHP

ÎÒÊÇѧµç×ÓÉÌÎñµÄѧÉú£¬Ö÷Ҫѧϰ·½ÏòÊǵç×ÓÉÌÎñ¼¼Êõ²ãÃæµÄ¶«Î÷¡£Ñ§ÁËÒ»Äê¶àµÄʱ¼äÁË£¬¸Ð¾õСÓÐÊÕ»ñ¡£
ǰ¶Îʱ¼ä³öÈ¥ÃæÊÔflashµÄʱºò·¢ÏÖ×Ô¼ººÍ±ðÈ˵ÄÒªÇó²î¾àÉõÔ¶£¬»Øµ½Ñ§Ð£ºóŬÁ¦µÄѧϰPHP£¬×ÔÎҸоõ»¹²»´í£¬È«°àֻʣϼ¸¸öÈËÔÚѧºǫ́ÓïÑÔÁË£¬²»ÖªµÀÊÇÒòΪÓÐÁËÉÏÒ»´ÎµÄ´ò»÷»¹ÊÇÒòΪÎÒÊʺÏѧPHP£¬×ÔÈÏΪѧµÃ±È½Ï¿ì£¬ÖÁÉÙ±ÈÖ ......

×îÁîPHP³õѧÕßÍ·Í´µÄÊ®ËĸöÎÊÌâ

 ¡¾1¡¿Ò³ÃæÖ®¼äÎÞ·¨´«µÝ±äÁ¿ get,post,sessionÔÚ×îеÄphp°æ±¾ÖÐ×Ô¶¯È«¾Ö±äÁ¿Êǹرյģ¬ËùÒÔÒª´ÓÉÏÒ»Ò³ÃæÈ¡µÃÌá½»¹ýÀ´µÃ±äÁ¿ÒªÊ¹ÓÃ$_GET['foo'],$ _POST['foo'],$_SESSION['foo']À´µÃµ½¡£µ±È»Ò²¿ÉÒÔÐÞ¸Ä×Ô¶¯È«¾Ö±äÁ¿Îª¿ª(php.ini¸ÄΪ register_globals = On)£»¿¼Âǵ½¼æÈÝÐÔ£¬»¹ÊÇÇ¿ÆÈ×Ô¼ºÊìϤеÄд·¨±È½ÏºÃ¡£¡¡¡¡
¡¾ ......

PHP ³£·¸µÄ 10 ¸ö´íÎó £¨×ªÔØ£©

 PHPÊǸöΰ´óµÄweb¿ª·¢ÓïÑÔ£¬Áé»îµÄÓïÑÔ£¬µ«ÊÇ¿´µ½php³ÌÐòÔ±Öܶø¸´Ê¼µÄ·¸µÄһЩ´íÎó¡£ÎÒ×öÁËÏÂÃæÕâ¸öÁÐ±í£¬ÁгöÁËPHP³ÌÐòÔ±¾­³£·¸µÄ10ÖдíÎ󣬴ó¶àÊýºÍ°²È«Ïà¹Ø¡£¿´¿´Äã·¸Á˼¸ÖÖ
1.²»×ªÒâhtml entities
   Ò»¸ö»ù±¾µÄ³£Ê¶£ºËùÓв»¿ÉÐÅÈεÄÊäÈë£¨ÌØ±ðÊÇÓû§´ÓformÖÐÌá½»µÄÊý¾Ý£© £¬Êä³ö֮ǰ¶¼Òª×ªÒâ¡£
ech ......

64λ¶¯Ì¬phpÀ©Õ¹¿âµÄ±àÒë

64λ¶¯Ì¬phpÀ©Õ¹¿âµÄ±àÒë
 ¹¤×÷ÉÏÐèÒª£¬Õâ¸öÎÊÌâÕÛÌÚÁËÒ»Õó×Ó¡£²»¹ýµ±±àÒë³É¹¦Ö®ºó£¬ÐÄÀﻹÊÇÏ൱µÄÐË·Ü£¬¸ÐÊܵ½ÁËÒ»Öֳɾ͸С£Ò²Êǹ¤×÷ÖеÄÒ»ÖÖÀÖȤ¡£
ÏÖÔÚ½«Õû¸ö¹ý³ÌдÏÂÀ´£¬ÒÔ±¸ºóÐøÖ®Ðè¡£
a.shared object
(1) download and install the apache
´ÓÍøÂçÖÐÏÂÔØapache-2.0.48.tar.gz
´æÖÁ/home/tmp
cd /home/ ......

php º¯Êý»ýÀۼǼ

½ñÌì¿´µ½ÁËÒ»±Ê¼ÇÉÏÃæÊÇÕâô˵µÄ£º
2. ²»×ªÒâSQLÊäÈë
ÎÒÔø¾­ÔÚһƪÎÄÕÂÖÐ×î¼òµ¥µÄ·ÀÖ¹sql×¢ÈëµÄ·½·¨(php+mysqlÖÐ)ÌÖÂÛ¹ýÕâ¸öÎÊÌâ²¢¸ø³öÁËÒ»¸ö¼òµ¥µÄ·½·¨ ¡£ÓÐÈ˶ÔÎÒ˵£¬ËûÃÇÒѾ­ÔÚphp.iniÖн«magic_quotesÉèÖÃΪOn£¬ËùÒÔ²»±Øµ£ÐÄÕâ¸öÎÊÌ⣬µ«ÊDz»ÊÇËùÓеÄÊäÈë¶¼ÊÇ´Ó$_GET, $_POST»ò $_COOKIEÖеĵõ½µÄ£¡
ÈçºÎÐÞ¸´£º
ºÍ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ