Ignore:
Timestamp:
2006/12/18 11:42:47 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/ec-cube-beta/data/lib/slib.php

    r10650 r10850  
    26762676} 
    26772677 
     2678/*  
     2679 * ´Ø¿ô̾¡§sfWriteFile 
     2680 * °ú¿ô1 ¡§½ñ¤­¹þ¤à¥Ç¡¼¥¿ 
     2681 * °ú¿ô2 ¡§¥Õ¥¡¥¤¥ë¥Ñ¥¹ 
     2682 * °ú¿ô3 ¡§½ñ¤­¹þ¤ß¥¿¥¤¥× 
     2683 * °ú¿ô4 ¡§¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó 
     2684 * ÀâÌÀ¡¡¡§¥Õ¥¡¥¤¥ë½ñ¤­½Ð¤· 
     2685 */ 
     2686function sfWriteFile($str, $path, $type, $permission = "") { 
     2687    //¥Õ¥¡¥¤¥ë¤ò³«¤¯ 
     2688    if (!($file = fopen ($path, $type))) { 
     2689        $mess = "¥Õ¥¡¥¤¥ë¤¬³«¤±¤Þ¤»¤ó"; 
     2690    } 
     2691 
     2692    //¥Õ¥¡¥¤¥ë¥í¥Ã¥¯ 
     2693    flock ($file, LOCK_EX); 
     2694    //¥Õ¥¡¥¤¥ë¤Î½ñ¤­¹þ¤ß 
     2695    fputs ($file, $str); 
     2696    //¥Õ¥¡¥¤¥ë¥í¥Ã¥¯¤Î²ò½ü 
     2697    flock ($file, LOCK_UN); 
     2698    //¥Õ¥¡¥¤¥ë¤òÊĤ¸¤ë 
     2699    fclose ($file); 
     2700    // ¸¢¸Â¤ò»ØÄê 
     2701    if($permission != "") { 
     2702        chmod($path, $permission); 
     2703    } 
     2704     
     2705    return $mess; 
     2706} 
     2707     
    26782708function sfFlush($output = " ", $sleep = 0){ 
    26792709    // ¼Â¹Ô»þ´Ö¤òÀ©¸Â¤·¤Ê¤¤ 
Note: See TracChangeset for help on using the changeset viewer.