phpÖÐfopen() º¯ÊýÓôò¿ªÎļþģʽ˵Ã÷
fopen() º¯ÊýÓÃÓÚÔÚ PHP Öдò¿ªÎļþ¡£
´Ëº¯ÊýµÄµÚÒ»¸ö²ÎÊýº¬ÓÐÒª´ò¿ªµÄÎļþµÄÃû³Æ£¬µÚ¶þ¸ö²ÎÊý¹æ¶¨ÁËʹÓÃÄÄÖÖģʽÀ´´ò¿ªÎļþ£º
<?php
$file=fopen("welcome.txt","r");
?>
Îļþ¿ÉÄÜͨ¹ýÏÂÁÐģʽÀ´´ò¿ª£º
r : Ö»¶Á¡£Ö¸Õ붨λÔÚÎļþµÄ¿ªÍ·£¬Èç¹ûÎļþ²»»á±¨´í¡£
r+ : ¶Á/д¡£Ö¸Õ붨λÔÚÎļþµÄ¿ªÍ·,Èç¹ûÎļþ²»´æ»á±¨´í¡£
w : ֻд¡£´ò¿ª²¢Çå¿ÕÎļþµÄÄÚÈÝ£¬Èç¹ûÎļþ²»´æÔÚ£¬Ôò´´½¨ÐÂÎļþ¡£
w+: ¶Á/д¡£´ò¿ª²¢Çå¿ÕÎļþµÄÄÚÈÝ£¬Èç¹ûÎļþ²»´æÔÚ£¬Ôò´´½¨ÐÂÎļþ¡£
a : ×·¼Ó¡£´ò¿ª²¢½«Ö¸Õ붨λÔÚÎļþ⣬Èç¹ûÎļþ²»´æÔÚ£¬Ôò´´½¨ÐÂÎļþ¡£
a+ : ¶Á/×·¼Ó¡£´ò¿ª²¢½«Ö¸Õ붨λÔÚÎļþ⣬Èç¹ûÎļþ²»´æÔÚ£¬Ôò´´½¨ÐÂÎļþ¡£
x : ֻд¡£´´½¨ÐÂÎļþ¡£Èç¹ûÎļþÒÔ´æÔÚ£¬Ôò·µ»Ø FALSE¡£
x+ : ¶Á/д¡£´´½¨ÐÂÎļþ¡£Èç¹ûÎļþÒÑ´æÔÚ£¬Ôò·µ»Ø FALSE ºÍÒ»¸ö´íÎó¡£
Ïà¹ØÎĵµ£º
±È½ÏPHPºÍJSPÕâÁ½¸öWeb¿ª·¢¼¼Êõ,ÔÚÄ¿Ç°µÄÇé¿öÊÇÆäʵÊDZȽÏPHPºÍJavaµÄWeb¿ª·¢.ÒÔÏÂÊÇÎҾͼ¸¸öÖ÷Òª·½Ãæ½øÐеıȽÏ:
Ò». ÓïÑԱȽÏ
PHPÊǽâÊÍÖ´ÐеķþÎñÆ÷½Å±¾ÓïÑÔ,Ê×ÏÈphpÓмòµ¥ÈÝÒ×ÉÏÊÖµÄÌصã.Óï·¨ºÍcÓïÑԱȽÏÏó,ËùÒÔѧ¹ýcÓïÑԵij ......
PHPÄ£ÄâSMTP·¢ËÍÓʼþµÄÀà
<?php
/*********************************************************
filename£ºmail.class.php
describe£ºÓÊÏäµÄÅäÖ㬾²âÊÔ¿ÉÒÔÊÊÓÃÓÚLinuxºÍwindows
function£º¼ì²éÓÊÏäµÄºÏ·¨ÐÔ£¬·¢ËÍ»ù±¾µÄÓÊÏäÑéÖ¤ÐÅÏ¢
author£º etongchina@gmail. ......
ºÜ¾ÃÇ°ÔÚbaidu»Ø´ðÎÊÌâʱдµÄ“ÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö”µÄ½â¾ö·½°¸£¬¿ÉÒÔÖ§³ÖÖÐÓ¢ÎÄ
<?php
/*********************************************************
describe£º×Ö·û´®´¦Àí,¿ÉÒÔ´¦ÀíÖÐÓ¢ÎÄ
function£ºÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö
author£º etongchina
email2m ......
1£ºsmarty »º´æµÄÅäÖÃ
Php´úÂë
$smarty->cache_dir = "/caches/"; //»º´æĿ¼
$smarty->caching = true; //¿ªÆô»º´æ,ΪflaseµÄʱºî»º´æÎÞЧ
$smarty->cache_lifetime = 60; //»º´æʱ¼ä
2:smarty»º´æµÄʹÓúÍÇå³ý
Php´úÂë
$smarty->di ......
ÕâÊǸöÔÚ±ðÈ˵Ļù´¡ÉÏ×öÐ޸ĵĴúÂ룬Ìí¼ÓÁË Åжϵ¥Ôª¸ñÖµÊÇ·ñΪÊýÖµ£¬ÊǵĻ°£¬½«¸Ãµ¥Ôª¸ñµÄÀàÐÍת³É Number£¬±ÜÃâÉú²úµÄEXCELÖÐû·¨½øÐÐÊýÖµµÄ¼Ó¼õ¡£¡£¡£
<?php
/**
* Simple excel generating from PHP5
*
* This is one of my utility-classes.
*
* The MIT License
*
* Copyright (c) 2007 Oliver Sc ......