phpÎļþÉÏ´«¼òµ¥Ê¾Àý
<?php
/*
Å׸öש£¬¾ßÌåÒª×ö³ÉʲôÑù×Ô¼º×ö¡£
*/
if(isset($_FILES['userfile']['tmp_name'])){
$userfile = $_FILES['userfile']['tmp_name']; //±£´æÔÚϵͳµÄÁÙʱλÖÃ
$userfile_name = $_FILES['userfile']['name'];//ÎļþÃû
$userfile_size = $_FILES['userfile']['size'];//Îļþ´óС£¬×Ö½Ú
$userfile_type = $_FILES['userfile']['type'];//ÎļþÀàÐÍ
if(!is_dir("image")) mkdir ("image", 0700);
$upfile = "image/".$userfile_name;//±£´æλÖÃ
print_r($_FILES);
//move_uploaded_file($userfile,$upfile);//·½·¨1
if(!copy($userfile,$upfile))//·½·¨2
{
echo "ÉÏ´«Ê§°Ü";
exit();
}
echo "ÉÏ´«³É¹¦";
echo "<a href=\"#\" onClick=\"window.history.back();\">ÔÙÉÏ´«Ò»ÕÅ</a>";
}
else{
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÎÞ±êÌâÎĵµ</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input name="MAX_FILE_SIZE" type="hidden" id="MAX_FILE_SIZE" value="1000">
<input name="userfile" type="file" id="userfile">
<input type="submit" name="Submit" value="ÉÏ´«">
</form>
</body>
</html>
<?php }?>
http://blog.chinaunix.net/u/24375/showart_187025.html
Ïà¹ØÎĵµ£º
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾ ......
Blogϵͳ×÷Ϊ´ó¼Ò×î³£½Ó´¥µÄ»¥ÁªÍø¶«¶«£¬ÔÚÕ¾³¤ÈºÌåÖм¸ºõÈËÊÖÒ»²©£¬´ÓÖªÃûÃÅ»§µÄ²©¿ÍƵµÀ£¬µ½ÍøÂçÓªÏúר¼Ò²©¿Í£¬ÍøÃñ¶Ô²©¿ÍµÄ¹Ø×¢¶ÈÔÚ²»¶ÏÌá¸ß²¢É¡£Ä¿Ç°ÍøÉÏÃâ·ÑµÄblogϵͳ̫ÔÓ£¬ÔÚ´ËÕûÀíPHP°æµÄBlog½éÉÜÈçÏ£º
1¡¢wordpress:http://www.wordpress.org ¹¦ÄÜÒ²ºÜÈ«Ã棬Ӧ¸ÃÊÇÖ§³ÖblogµÄÊ×Ñ¡¡£ËüÓÐ×îÇ¿µÄÄ£°æ¹¦ÄÜ£¬ÒѾ ......
˵Ã÷ array preg_split ( string $pattern, string $subject [, int $limit [, int $flags]] ) ·µ»ØÒ»¸öÊý×飬°üº¬ subject ÖÐÑØ×ÅÓë pattern Æ¥ÅäµÄ±ß½çËù·Ö¸îµÄ×Ó´®¡£ Èç¹ûÖ¸¶¨ÁË limit£¬Ôò×î¶à·µ»Ø limit ¸ö×Ó´®£¬Èç¹û limit ÊÇ -1£¬ÔòÒâζ×ÅûÓÐÏÞÖÆ£¬¿ÉÒÔÓÃÀ´¼ÌÐøÖ¸¶¨¿ÉÑ¡²ÎÊý flags¡£ flags ¿ÉÒÔÊÇÏÂÁбê¼ÇµÄÈÎÒâ× ......
http://prato.bokele.com/?ArticleID=15302
ÔÚÒ»°ãµÄÓ¦ÓÃÖУ¬PHPµÄ³ÌÐòÔ±»á±È½ÏÉÙµÄ×¢Òâµ½php³ÌÐòµÄϸ΢Ëã·¨¶ÔÐÔÄÜÓ°ÏìµÄÎÊÌ⣬µ«ÔÚ´¦ÀíһЩ±È½ÏÕ¼ÓÃ×ÊÔ´µÄ¶«Î÷µÄʱºò£¬Êʵ±µ÷ÕûËã·¨£¬»áÈóÌÐòµÄÐÔÄÜÕû±¶µÄÌá¸ß¡£
Õ⼸Ì죬ÎÒÔÚÑо¿·Ö´ÊµÄËã·¨£¬Èç¹û²»Ô¤ÏÈÔØÈë´ÊµäµÄ»°£¬ÄÇÖÖÔËËãËÙ ......
¡¡¡¡Ñ§Ï°Ä¿µÄ£ºÑ§»áÁ¬½ÓÊý¾Ý¿â
¡¡¡¡PHP¼òÖ±¾ÍÊÇÒ»¸öº¯Êý¿â£¬·á¸»µÄº¯ÊýʹPHPµÄijЩµØ·½Ï൱¼òµ¥¡£½¨Òé´ó¼ÒdownÒ»±¾PHPµÄº¯ÊýÊֲᣬ×ÜÓõĵ½¡£
¡¡¡¡ÎÒÕâÀï¾Í¼òµ¥ËµÒ»ÏÂÁ¬½ÓMYSQLÊý¾Ý¿â¡£
¡¡¡¡1¡¢mysql_connect
¡¡¡¡´ò¿ª MySQL ·þÎñÆ÷Á¬½Ó¡£
¡¡¡¡Óï·¨: int mysql_connect(string [hostname] [:port], string [us ......