ÔÚ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 SESSIONÔÀí
ÎÒÃÇÖªµÀ£¬sessionÊÇÔÚ·þÎñÆ÷¶Ë±£³ÖÓû§»á»°Êý¾ÝµÄÒ»ÖÖ·½·¨£¬¶ÔÓ¦µÄcookieÊÇÔÚ¿Í»§¶Ë±£³ÖÓû§Êý¾Ý¡£HTTPÐÒéÊÇÒ»ÖÖÎÞ״̬ÐÒ飬·þ
ÎñÆ÷ÏìÓ¦ÍêÖ®ºó¾ÍʧȥÁËÓëä¯ÀÀÆ÷µÄÁªÏµ£¬×îÔ磬Netscape½«cookieÒýÈëä¯ÀÀÆ÷£¬Ê¹µÃÊý¾Ý¿ÉÒÔ¿Í»§¶Ë¿çÒ³Ãæ½»»»£¬ÄÇô·þÎñÆ÷ÊÇÈçºÎ¼ÇסÖÚ¶àÓû§
µÄ»á»°Êý¾ÝÄØ£¿
Ê×ÏÈÒª ......
·¢±íÓÚ2008Äê10ÔÂ14ÈÕ
PHP»ù´¡£º±êǩʹÓãº
PHP´úÂë±ØÐë°üº¬ÔÚ <?PHP ºÍ ?>Ö®¼ä¡£
һЩÆäËûµÄ±êÇ©ÑùʽҲ¿ÉÒÔʹÓ㬱ÈÈç<?,<%,»òÕß<script language="php">(Js±êÇ©)¡£
ÆäËû±êÇ©¿ÉÒÔÊÇÓ㬵«Ö»ÓÐÔÚ<?php £¿>Ö®¼äµÄ½Å±¾²ÅÊÇ¿ÉÓõÄPHP´úÂë¡£
£¨¹ØÓÚlesson 23 µÄphp.iniÅäÖÃÎļþ£©
¿ªÊ ......
¿µÊ¢µÄ authcode º¯Êý¿ÉÒÔ˵¶ÔÖйúµÄPHP½ç×÷³öÁËÖØ´ó¹±Ïס£°üÀ¨¿µÊ¢×Ô¼ºµÄ²úÆ·£¬ÒÔ¼°´ó²¿·ÖÖйúʹÓÃPHPµÄ¹«Ë¾¶¼ÓÃÕâ¸öº¯Êý½øÐмÓÃÜ£¬authcode ÊÇʹÓÃÒì»òÔËËã½øÐмÓÃܺͽâÃÜ¡£
ÔÀíÈçÏ£¬¼ÙÈ磺
¼ÓÃÜ
Ã÷ÎÄ£º1010 1001
Ãܳףº1110 0011
ÃÜÎÄ£º0100 1010
µÃ³öÃÜÎÄ0100 1010£¬½âÃÜÖ®ÐèºÍÃܳ×Òì»òϾͿÉÒÔÁË
½âÃÜ ......
ÔÌûµØÖ·£º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 ......
delphi ±àдµÄcom ¶ÔÏó ÓÃphpµ÷ÓÃ
µÄ
ʵÀý
delphi:
function Tmyxml.Get_xml: WideString;
begin
Get_xml:='wo shi a lei!';
end;
function Tmyxml.Get_xmldata: WideString;
var
xmlStr:string;
begin
xmlStr := '<?xml version="1.0" & ......