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

PHP PDO º¯Êý¿â

PDOÊÇÒ»¸ö“Êý¾Ý¿â·ÃÎʳéÏó²ã”£¬×÷ÓÃÊÇͳһ¸÷ÖÖÊý¾Ý¿âµÄ·ÃÎʽӿڣ¬ÓëmysqlºÍmysqliµÄº¯Êý¿âÏà±È£¬PDOÈÿçÊý¾Ý¿âµÄʹÓøü¾ßÓÐÇ׺ÍÁ¦£»ÓëADODBºÍMDB2Ïà±È£¬PDO¸ü¸ßЧ¡£Ä¿Ç°¶øÑÔ£¬ÊµÏÖ“Êý¾Ý¿â³éÏó²ã”ÈÎÖضøµÀÔ¶£¬Ê¹ÓÃPDOÕâÑùµÄ“Êý¾Ý¿â·ÃÎʳéÏó²ã”ÊÇÒ»¸ö²»´íµÄÑ¡Ôñ¡£
PDO->beginTransaction() — ±êÃ÷»Ø¹öÆðʼµã
PDO->commit() — ±êÃ÷»Ø¹ö½áÊøµã£¬²¢Ö´ÐÐSQL
PDO->__construct() — ½¨Á¢Ò»¸öPDOÁ´½ÓÊý¾Ý¿âµÄʵÀý
PDO->errorCode() — »ñÈ¡´íÎóÂë
PDO->errorInfo() — »ñÈ¡´íÎóµÄÐÅÏ¢
PDO->exec() — ´¦ÀíÒ»ÌõSQLÓï¾ä£¬²¢·µ»ØËùÓ°ÏìµÄÌõÄ¿Êý
PDO->getAttribute() — »ñÈ¡Ò»¸ö“Êý¾Ý¿âÁ¬½Ó¶ÔÏó”µÄÊôÐÔ
PDO->getAvailableDrivers() — »ñÈ¡ÓÐЧµÄPDOÇý¶¯Æ÷Ãû³Æ
PDO->lastInsertId() — »ñȡдÈëµÄ×îºóÒ»ÌõÊý¾ÝµÄÖ÷¼üÖµ
PDO->prepare() — Éú³ÉÒ»¸ö“²éѯ¶ÔÏó”
PDO->query() — ´¦ÀíÒ»ÌõSQLÓï¾ä£¬²¢·µ»ØÒ»¸ö“PDOStatement”
PDO->quote() — Ϊij¸öSQLÖеÄ×Ö·û´®Ìí¼ÓÒýºÅ
PDO->rollBack() — Ö´Ðлعö
PDO->setAttribute() — Ϊһ¸ö“Êý¾Ý¿âÁ¬½Ó¶ÔÏó”É趨ÊôÐÔ
PDOStatement->bindColumn() — Bind a column to a PHP variable
PDOStatement->bindParam() — Binds a parameter to the specified variable name
PDOStatement->bindValue() — Binds a value to a parameter
PDOStatement->closeCursor() — Closes the cursor, enabling the statement to be executed again.
PDOStatement->columnCount() — Returns the number of columns in the result set
PDOStatement->errorCode() — Fetch the SQLSTATE associated with the last operation on the statement handle
PDOStatement->errorInfo() — Fetch extended error information associated with the last operation on the statement handle
PDOStatement->execute() — Executes a prepared statement
PDOStatement->fetch() — Fetches the next row from a result set
PDOStatement->fetchAll() — Returns an array containing all of the result s


Ïà¹ØÎĵµ£º

phpÎļþÉÏ´«´úÂë

<html>
<head><title>ÎļþÉÏ´«</title></head>
<body alink="#FF0000" link="#000099" vlink="#CC6600" topmargin="8" leftmargin="0" bgColor="#FFFFCC">
<?php
if(!$_POST['upload'])
{
?>
<form enctype="multipart/form-data" action="upload.php" method="post"& ......

¹úÄÚ³£¼û¿ªÔ´Ãâ·ÑPHP CMSÄÚÈݹÜÀíϵͳ±È½Ï·ÖÎö¡¾×ª¡¿

CMSÒâΪ“ÄÚÈݹÜÀíϵͳ”£¬»ùÓÚÄ£°åµÄÓÅÐãÉè¼Æ£¬¿ÉÒÔ¼Ó¿ìÍøÕ¾¿ª·¢µÄËٶȺͼõÉÙ¿ª·¢µÄ³É±¾¡£Èç½ñ¹úÄÚPHP CMSÒѾ­ºÜ¶à£¬ÆäÖв»·¦ÓÅÐãÃâ·Ñ¿ªÔ´Õߣ¬±¾ÎĽ«´ÓSEOµÄ½Ç¶ÈÀ´·ÖÎöPHP CMS£¬½ö×÷²Î¿¼¡£
1.phpcms
Ò»¸ö×ۺϵÄÍøÕ¾¹ÜÀíϵͳ£¬ÓÉPHP+MYSQL¹¹¼ÜÈ«Õ¾Éú³Éhtml£¬Äܹ»¿ìËÙ¸ßЧµØÓ¦ÓÃÓÚLINUXºÍWINDOWS·þÎñÆ÷ƽ̨£¬Í¬Ê ......

php¹ýÂËÌØÊâ×Ö·û

phpÌØÊâ×Ö·û¹ýÂË
1¡¢¹ýÂ˱êÇ©(HTML)£ºstrip_tags()
ÀýÈ磺
<?php
$text = '<?php ?><p>Test paragraph.</p><!-- Comment -
-> <a href=http://topic.csdn.net/u/20090311/09/"#fragment">Other text</a>';
echo strip_tags($text);
echo "\n";
// ÔÊÐíʹÓÃ<p>ºÍ< ......

½â¾öPHPÄÚ´æÒç³öµÄÎÊÌâ

Allowed memory size of 33554432 bytes exhausted (tried to allocate 4554 bytes)
      ÓÐʱºòÎÒÃÇÔÚÔËÐÐphp³ÌÐòµÄʱºò»á·¢ÏÖ Fatal Error: Out of memory ÕâÑùµÄÌáʾ¡£ ÕâÓпÉÄÜÊdzÌÐòÖÐÓõ½ÁË´óÁ¿Á˱äÁ¿ºÍ¶ÔÏ󣬵¼Ö·ÖÅäµÄÄÚ´æ²»¹»Óá£ÎÒ¾ÍÓöµ½ÕâÑùÒ»¸ö´íÎóÔõô¸ÄÒ²¸Ä²»ÁË£¬ºóÀ´ÉÏÍø²éÁËһР......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ