phpÉÏÔØÎļþÖ»Äܱ£´æÒ»Ð¡²¿·Ö
<html>
<head>
<title>Uploading...</title>
</head>
<body>
<h1>Uploading file...</h1>
<?php
echo '<pre>';
print_r($_FILES);
echo '</pre>';
if ($_FILES['userfile']['error'] > 0)
{
echo 'Prolem: ';
switch ($_FILES['userfile']['error'])
{
case 1: echo 'File exceeded upload_max_filesize'; break;
case 2: echo 'File exceeded max_file_size'; break;
case 3: echo 'File only partially uploaded'; break;
case 4: echo 'No file uploaded'; break;
}
exit;
}
if ($_FILES['userfile']['type'] != 'application/x-zip-compressed')
{
echo 'Problem: file is not pdf';
exit;
}
$upfile = '/upload/'.$_FILES['userfile']['name'];
if (is_uploaded_file($_FILES['userfile']['tmp_name']))
{
if (!move_uploaded_file($_FILES['userfile']['tmp_name'], $upfile))
{
echo 'Problem: Could not move file to destination directory';
exit;
&nb
Ïà¹ØÎĵµ£º
¿ª·¢WebÓ¦ÓóÌÐòPHPÊÇ×îÀíÏëµÄ¹¤¾ß£¬Ò×ÓÚʹÓᢹ¦ÄÜÇ¿´ó¡¢³É±¾µÍÁ®¡¢¸ß°²È«ÐÔ¡¢¿ª·¢ËÙ¶È¿ìÇÒÖ´ÐÐÁé»î¡£È«ÊéÒÔʵÓÃΪĿ±êÉè¼Æ£¬ÄÚÈݷḻ£¬°üº¬PHP¿ª·¢×îÖ÷Á÷µÄ¸÷Ïî¼¼Êõ£¬¶Ôÿһ¸ö֪ʶµã¶¼½øÐÐÁËÉîÈëÏêϸµÄ½²½â£¬²¢¸½ÓдóÁ¿µÄʵÀý´úÂ룬ͼÎIJ¢Ã¯¡£´ÓÔËÐл·¾³´î½¨¡¢PHPµÄ»ù±¾Óï·¨ºÍ¹æ·¶ÈëÊÖ£¬ÓÉdzÈëÉÑÐò½¥½ø£¬ÏµÍ³µÄ½éÉÜÁË ......
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/01/29/1-5/
ÒÔÏ´úÂëÊǼ¸¸ö±í´ïʽµÄÀý×Ó£º
¡¡¡¡$a = “phpdo.net”;
¡¡¡¡$sum = $var_a + $var_b;
¡¡¡¡$i++;
PHPÖÐÔËËã·ûÊDZí´ïʽÖжÔÔËËã·û½øÐвÙ×÷µÄ·ûºÅ£¬°üÀ¨ËãÊõÔËËã·û£¬×Ö·û´®ÔËËã·ûºÍÂß¼ÔËËã·ûµÈ¡£
PHPÓÐÒ»¸öÓëCÓïÑÔÀàËÆµÄ¸ÅÄî&mdash ......
»¥ÁªÍøµÄ½ñÌ죬AJAXÒѾ²»ÊÇʲôİÉúµÄ´Ê»ãÁË¡£ËµÆðAJAX£¬¿ÉÄÜ»áÁ¢¼´ÏëÆðÒòRSS¶øÐËÆðµÄXML¡£XMLµÄ½âÎö£¬¿ÖÅÂÒѾ²»ÊÇʲôÄÑÌâÁË£¬ÌرðÊÇPHP5£¬´óÁ¿µÄXML½âÎöÆ÷µÄÓ¿ÏÖ£¬Èç×îÇáÁ¿¼¶µÄSimpleXML¡£²»¹ý¶ÔÓÚAJAXÀ´Ëµ£¬XMLµÄ½âÎö¸üÇãÏòÓÚǰ̨JavascriptµÄÖ§³Ö¶È¡£ÎÒÏëËùÓнâÎö¹ýXMLµÄÈË£¬¶¼»áÒòÊ÷ºÍ½Úµã¶øÍ·´ó¡£²»¿É·ñÈÏ£¬XMLÊÇºÜ ......
½ñÌìÕæÊǵ¹Ã¹µÄÈÕ×Ó£¬ºÁ²»ÈÝ×öºÃµÄÍøÕ¾ÉÏ´«µ½Ftp¡£¾ÓÈ»ÎÞ·¨Ê¹Óá£ÏÖÏóΪphpÒ³ÃæÊ²Ã´¶¼ÏÔʾ²»³öÀ´¡£µ«ÊÇÔÚÎÒ±¾µØÈ·ÊǺúõġ£ ÄѵÀͬÑùµÄ¶«Î÷ÉÏ´«µ½FTPÉÏ»áÓÐÎÊÌâÂ𣿠¾¹ýÎÒ½«½üÈý¸öСʱµÄµ÷²é£¬ÖÕÓڲ鴦ÁËÔÒò¡£ ÔÀ´ һЩ utf-8¸ñʽµÄÎļþ¼ÓÁËBOM¡£Õâ¸öBOM¿É²»ÊǸöºÃ¶«Î÷¡£»á¸ãµÃ¼¸¸ö±à¼Æ÷ Éñ»êµßµ¹µÄ¡£×îÖ±½ÓµÄ±íÏÖ¾ ......