phpÎļþϵͳº¯Êý¿â
basename: ·µ»Ø²»º¬Â·¾¶µÄÎļþ×Ö·û´®¡£
chgrp: ¸Ä±äÎļþËùÊôµÄȺ×é¡£
chmod: ¸Ä±äÎļþµÄÊôÐÔ¡£
chown: ¸Ä±äÎļþµÄÓµÓÐÕß¡£
clearstatcache: Çå³ýÎļþ״̬¿ìÈ¡¡£
copy: ¸´ÖÆÎļþ¡£
delete: ÎÞÓõÄÏîÄ¿¡£
dirname: È¡µÃ·¾¶ÖеÄĿ¼Ãû¡£
diskfreespace: È¡µÃĿ¼ËùÔÚµÄÊ£Óà¿ÉÓÿռ䡣
fclose: ¹Ø±ÕÒÑ´ò¿ªµÄÎļþ¡£
feof: ²âÊÔÎļþÖ¸ÕëÊÇ·ñÖ¸µ½µµÎ²¡£
fgetc: È¡µÃÎļþÖ¸ÕëËùÖ¸µÄ×Ö·û¡£
fgetcsv: È¡µÃÎļþÖ¸ÕëËùÖ¸ÐУ¬²¢½âÎö csv ×ֶΡ£
fgets: È¡µÃÎļþÖ¸ÕëËùÖ¸µÄÐС£
fgetss: È¡µÃÎļþÖ¸ÕëËùÖ¸µÄÐУ¬²¢È¥µô html ÓïÑÔ±ê¼Ç¡£
file: ½«ÎļþÈ«²¿¶ÁÈëÊý×é±äÁ¿ÖС£
file_exists: ¼ì²éÎļþÊÇ·ñ´æÔÚ¡£
fileatime: È¡µÃÎļþ×îºóµÄ´æȡʱ¼ä¡£
filectime: È¡µÃÎļþ×îºóµÄ¸Ä±äʱ¼ä¡£
filegroup: È¡µÃÎļþËùÊôµÄȺ×é¡£
fileinode: È¡µÃÎļþµÄ inode Öµ¡£
filemtime: È¡µÃÎļþ×îºóµÄÐÞ¸Äʱ¼ä¡£
fileowner: È¡µÃÎļþµÄÓµÓÐÕß¡£
fileperms: È¡µÃÎļþµÄȨÏÞÅäÖá£
filesize: »ñµÃÎļþµÄ´óС¡£
filetype: »ñµÃÎļþµÄÀàÐÍ¡£
flock: ËøסÎļþ¡£
fopen: ´ò¿ªÎļþ»òÕß url¡£
fpassthru: Êä³öËùÓÐÊ£Óà×ÊÁÏ¡£
fputs: дµ½ÎļþÖ¸Õë¡£
fread: λ×éµÄ·½Ê½¶ÁÈ¡Îļþ¡£
fseek: Òƶ¯ÎļþÖ¸Õë¡£
ftell: È¡µÃÎļþ¶ÁдָÕëλÖá£
fwrite: ¶þ½øλλ·½Ê½Ð´ÈëÎļþ¡£
set_file_buffer: ÅäÖÃÎļþ»º³åÇø´óС¡£
is_dir: ²âÊÔÎļþÊÇ·ñΪĿ¼¡£
is_executable: ²âÊÔÎļþÊÇ·ñΪ¿ÉÖ´Ðеµ¡£
is_file: ²âÊÔÎļþÊÇ·ñΪÕý³£Îļþ¡£
is_link: ²âÊÔÎļþÊÇ·ñΪÁ´½Óµµ¡£
is_readable: ²âÊÔÎļþÊÇ·ñ¿É¶ÁÈ¡¡£
is_writeable: ²âÊÔÎļþÊÇ·ñ¿ÉдÈë¡£
link: ½¨Á¢Ó²Ê½Á´½Ó¡£
linkinfo: È¡µÃÁ´½ÓÐÅÏ¢¡£
mkdir: ½¨Á¢Ä¿Â¼¡£
pclose: ¹Ø±ÕÎļþ¡£
popen: ´ò¿ªÎļþ¡£
readfile: Êä³öÎļþ¡£
readlink: ·µ»Ø·ûºÅÁ´½Ó (symbolic link) Ä¿±êµµ¡£
rename: ¸ü¸ÄµµÃû¡£
rewind: ÖØÖÿªµµµÄ¶ÁдλÖÃÖ¸Õë¡£
rmdir: ɾ³ýĿ¼¡£
stat: È¡µÃÎļþÏà¹ØÐÅÏ¢¡£
lstat: È¡µÃÁ´½ÓµµÏà¹ØÐÅÏ¢¡£
symlink: ½¨Á¢·ûºÅÁ´½Ó (symbolic link)¡£
tempnam: ½¨Á¢Ö»Ò»µÄÁÙʱµµ¡£
touch: ÅäÖÃ×îºóÐÞ¸Äʱ¼ä¡£
umask: ¸Ä±äÄ¿Ç°µÄÎļþÊôÐÔÕÚÕÖ umask¡£
unlink: ɾ³ýÎļþ¡£
basename
·µ»Ø²»º¬Â·¾¶µÄÎļþ×Ö·û´®¡£
Óï·¨: string basename(string path);
·µ»ØÖµ: ×Ö·û´®
º¯ÊýÖÖÀà: Îļþ´æÈ¡
ÄÚÈÝ˵Ã÷: ½«º¬Â·¾¶¼°Îļþ×Ö·û´®ÖеÄ·¾
Ïà¹ØÎĵµ£º
×î½üÔÚ×öÒ»¸öÏîÄ¿£¬Óöµ½AJAXÖÐÎÄÂÒÂëÎÊÌ⣬¾¹ýÒ»¸öÏÂÎçµÄŬÁ¦ÖÕÓÚÍêÃÀ½â¾ö£¬ÏÖ½«ÐĵÃдÏÂÀ´£¬Ï£Íû¶ÔÄÇЩ»¹À§ÈÆÔÚÕâ¸öÎÊÌâ¶øÍ·Í´²»ÒѵÄÈËÃÇÓÐËù°ïÖú¡£
ÖÚËùÖÜÖª£¬Ê¹ÓÃAJAX´«ËͺͽÓÊÕÖÐÎIJÎÊýʱ£¬Èç¹û²»ÔÚ¿Í»§¶ËºÍ·þÎñÆ÷×öÏàÓ¦µÄ´¦Àí¾Í»á³öÏÖÂÒÂëÎÊÌ⣬ÔÚÍøÉÏÏàÓ¦µÄÎÄÕÂÒ²²»ÉÙ£¬µ«ÊÇÓеÄÇé¿öϺÜÄÑ´ÓÖÐÕÒµ½·ûºÏ×Ô¼ºÀíÏëµÄ´ð ......
test.php -------------------------------------------------------------------------------------
echo $_SERVER['DOCUMENT_ROOT'].""; //»ñµÃ·þÎñÆ÷Îĵµ¸ù
echo $_SERVER['PHP_SELF'].""; //»ñµÃÖ´ÐиôúÂëµÄÎļþ·þÎñÆ÷¾ø¶Ô·¾¶
/*
phpÊÖ²áÉϵĽâÊÍ£º “PHP_SELF” µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë docum ......
ÍøÉÏÕÒµ½µÄ£º¹²ÏíÒ»ÏÂ
<?
//¡¾¾¯¸æ¡¿:δ¾Ðí¿ÉÇëÎðËæ±ãÐÞ¸Ä
//-----------------------------------------------------------------------------------
-------
//-----------------------------------------------------------------------------------
-------
//
// ¡¾ÎļþÃû¡¿: c_check.inc
// ¡¾× ......
Ò»¸ö¼òµ¥µÄÀý×Ó¶ÁÈ¡CSVÎļþ£º
<?php
$handle=fopen("test.csv","r");
echo "<table border=2>";
//ÅäºÏwhileÑ»·¶ÁÈ¡Îļþ
while($data=fgetcsv($handle,1024))
{
list($user,$pwd,$partment,$title)=$data;
echo "<tr>
<td>$user</td>
<td>$pwd< ......