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

ÔÚphpÖн«ÉÏ´«·â×°³ÉÀà

ÔÚʹÓÃÉÏ´«Îļþʱ£¬½«ÉÏ´«µÄ´úÂë·â×°³ÉÀ࣬¸üÈÝÒ×·½±ã¡£
 
190.php
<?php
require('upload.php');
if($_POST['submit']){
$a = new Upload();
$File = $a -> uploadfile($ARG=array(
'File'=>array(
'name' => $_FILES['fileDoc']['name'],         //Ô­Ãû×Ö
'tmp_name' => $_FILES['fileDoc']['tmp_name']  //ÐÂÃû×Ö
)));
}
echo $File['oldname'];
?>
<form action="<?echo $PHP_SELF?>" method="post" enctype="multipart/form-data">
<input type="file" name="fileDoc">
<br>
<input type="submit" name="submit" value="ÉÏ´«">
</form>
 
Upload.php
<?php
/**
 * @author  gb2312
 * @since   2009-11-16
 * @desc   ÎļþÉÏ´«
 */
class Upload{
         /**
          * @desc ÎļþÉÏ´«·½·¨
          * @param Array $ARG       ÉÏ´«ÎļþµÄÊôÐÔ
          */
         public function uploadfile($ARG=array(
         'File'  => array(),
         'Dir'   => '')){
                   //ĬÈÏĿ¼
                   $dir = "upload/";
                   //ÎļþԭʼÃû³Æ
                   $oldname = $ARG['File']['name'];
                   //ÎļþÀàÐÍ
 


Ïà¹ØÎĵµ£º

php gettext·½Ê½ÊµÏÖUTF 8¹ú¼Ê»¯¶àÓïÑÔ(i18n)


½ü
À´Ëæ×Åi18n(¹ú¼Ê»¯)µÄÖð½¥±ê×¼»¯£¬ÎÒÒ²À´½²Ò»½²ÔÚPHPÖÐÈçºÎʵÏÖ¹ú¼Ê»¯Ö§³Ö¡£¸úÆäËû³ÌÐòÓïÑÔÒ»Ñù£¬ÔÚ PHP Ò²¿ÉÒÔÀûÓà gettext
Ì×¼þд×÷ i18n ³ÌÐò£¬ÊµÏÖ NLS(Native Language Support) ¹ú¼Ê»¯Ö§³Ö£¬¾ßÌåÇë²Î¿¼¹Ù·½Îĵµ(
http://www.gnu.org/software/gettext/manual/gettext.html
)
ÕâÀïÎÒÃÇÖ÷Òª½éÉÜwindowƽ̨ÏÂÊ ......

phpѧϰ±Ê¼Ç£¨13£©:PHP+MYSQL¼òµ¥·ÖÒ³

conn.php
<?php
/*
 * Created on 2010-1-6
 * Author:CHAUVET
 * Function:Á¬½Ó×Ö·û´®
 */
 $conn=@mysql_connect("localhost","root","")or die("Á¬½ÓÊý¾Ý¿â³ö´í£¡");
 mysql_select_db("newdb",$conn);
 mysql_query("set names 'gb2312'");
 function ReplaceSom ......

PHP mail Function With Attachments

Ô­ÌûµØÖ·£ºhttp://www.zedwood.com/article/126/php-mail-function-with-attachments
This code sends an html formatted email with attachments. This email sending script actually sends both a plaintext and an html body of the email, allowing the email client to choose which to display. The plaintext emai ......

PHP¿ª·¢¿ò¼Ü½éÉÜ

http://www.juqng.com/articles/php/php-kai-fa-kuang-jia-jie-shao/
PHP¿ª·¢¿ò¼Ü½éÉÜ
×÷Õß: juqng.com
2009-12-08
phpÊǷdz£Á÷ÐеĿªÔ´Ãâ·ÑÓïÑÔ£¬ËüµÄ¿ª·¢¿ò¼ÜÒ²ÊǷdz£¶àµÄ£¬ÕâÀï½éÉÜһЩÓÅÐãµÄPHP¿ª·¢¿ò¼Ü¡£
CodeIgniter
ÊÇÒ»¸öÇ¿´óµÄPHPÓëÌå»ý·Ç³£Ð¡µÄ¡£ÎªPHP³ÌÐòÔ±£¬Ìṩһ¸ö¼òµ¥¶øÓÅÑÅ´´½ ......

php ͼƬÑéÖ¤Âë

ͼƬÑéÖ¤ÂëµÄÔ­ÀíÊÇ·ÀÖ¹¶ñÒâ×¢²á£¬ÊµÏÖ·½·¨
ÑéÖ¤Â룺<input type="text" name="yanzhengma" />
<iframe src="code/middle.php" height="20px" width="65px" frameborder="0" id="chkimg" scrolling="no" style=" margin-top:5px">
</iframe>
<a  href="javascript:chkimg.location.reload(); ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ