php2009. 3. 4. 10:52
//writelog function 
function WriteLog($LogContents)
  {
    $date = date("Ymd");
    $time = date("H:i:s");
    
    if (chdir("./Log"))
    {
      chdir("../");
    }
    else
    {
      mkdir("./Log");  
    }
    
    $fp = fopen("./Log/$date.log", "a");
    fwrite($fp, $time."\t$LogContents\r\n");
    fclose($fp);  
  }
Posted by 동동(이재동)
php2008. 11. 17. 13:49
* ANSI 텍스트 파일 
- 특별한 표식이 없습니다.

* 유니코드 (little endian)
파일 처음에 0xFF 0xFE 의 두바이트로 시작합니다.

* 유니코드 (big endian)
파일 처음에 0xFE 0xFF 의 두바이트로 시작합니다.

* UTF-8 
파일을 덤프 해본 결과 파일 처음에 0xEF 0xBB 0xBF 의 세바이트로 시작합니다.



한번 파일을 만든후 덤프 해보시기 바랍니다 
그럼 즐삽

window desktop search 4.0에서
해보았는데 한글이 검색이 안되길레 utf8문제 인지 알았더니 

윈도우에서 utf8을 제대로 인식을 못해서 그런듯 txt를 만드는 코딩을할때 이거를 잘 바야할듯
0xEF 0xBB 0xBF

쉽게도 UTF-8 지원은 안되는쪽이 맞는것 같습니다... 사용할 수도 있을뿐..
정상적인 UTF-8 문서 첫머리에는 BOM 문자(0xEF 0xBB 0xBF)가 있어야 하지만 세션등 헤더를 사용하는 php 프로그램에서 BOM 문자가 먼저 출력되어 headers already sent 에러가 납니다..
결국 열어보기 전에는 charset을 알수 없는 BOM을 제거한 텍스트만 저장해야 하게 되죠.. 다른 좋은 장점들을 깎아먹는 아쉬운 부분입니다.^^

 index.xml은 utf-8로 구성이 되어있습니다. 그런데 index.xml이 UTF-8이라는 것을 표시하기 위해서 제일 앞에 signature가 붙어있습니다. 0xef0xbb0xbf가 그것인데요, 그것이 붙어있으면 제대로 인식하지 못하는 컴퓨터가 있는 것 같네요


he Byte-Order Marker (BOM)

이것은 파일 앞에 붙어서 이 파일이 UTF-8 인 것을 알려준다.
그러면 editor들은 이걸 제외하고 알아서 읽어 드리게 된다.
save 할 때에도 Windows에서는 이걸 file앞에 집어 넣는다.
하지만 Mac OS X는 save할 때 이것을 없는 상태로 save 한다.
0xef 0xbb 0xbf 의 값이다.
 
UTF-8 에서만 쓰이 는 줄 알았는데,
Unicode 전부에서 쓰인다.
어떤 unicode를 써서 encoding 되었는지를 알려주며,
little endian 인지, big endian 인지 여부도 알려준다.
 
EncodingRepresentation
UTF-8EF BB BF
UTF-16 Big EndianFE FF
UTF-16 Little EndianFF FE
UTF-32 Big Endian00 00 FE FF
UTF-32 Little EndianFF FE 00 00
SCSU0E FE FF
UTF-72B 2F 76
and one of the following byte sequences: [ 38 | 39 | 2B | 2F | 38 2D ]
UTF-EBCDICDD 73 66 73
BOCU-1FB EE 28
 










C# code make txt file

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WordIndexSpliter
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string strFileName = ExecuteDialogProcess();
            
            string strBuffer = string.Empty;
            string strOutFileName = string.Empty;
            string strTempFileName = string.Empty;
            

            StreamReader streamReader = new StreamReader(strFileName);         
            

            while ((strBuffer = streamReader.ReadLine()) != null)
            {
                if (strBuffer.Length > 1)
                {
                    string[] pageNum = strBuffer.Split(new Char[] { ',' });

                    //7월23일 Format을이용해서 바꿈
                    strTempFileName = strFileName.Substring(0, strFileName.LastIndexOf(".")) + "_" + string.Format("{0:00000000}", int.Parse(pageNum[0])); 
                    StringBuilder stringBuilder = new StringBuilder( Path.GetFileName(strTempFileName));
                    //7월23일 파일이름을 123123_00001.txt형식에서 중간중간에 $를 넣는다.
                    char[] arrChr = Path.GetFileName(strTempFileName).ToCharArray();
                    StringBuilder sbResultText = new StringBuilder();
                    foreach (char str_chr in arrChr)
                    {
                        sbResultText.Append("$" + str_chr);                        
                    }
                    sbResultText.Append("$");
                    strOutFileName = Path.GetDirectoryName(strTempFileName) + "\\" + sbResultText.ToString() + ".txt";
                                        
                    FileStream fileOutStream = null;
                    if (!File.Exists(strOutFileName))
                    {
                        byte[] byByteOrderMark = { 0xEF, 0xBB, 0xBF };
                        fileOutStream = new FileStream(strOutFileName, FileMode.Create, FileAccess.Write, FileShare.ReadWrite);
                        fileOutStream.Write(byByteOrderMark, 0, byByteOrderMark.Length);
                        fileOutStream.Close();
                    }
                    fileOutStream = new FileStream(strOutFileName, FileMode.Append, FileAccess.Write, FileShare.ReadWrite);
                    byte[] byOutBuffer = UTF8Encoding.UTF8.GetBytes(strBuffer + "\r\n");
                    fileOutStream.Write(byOutBuffer, 0, byOutBuffer.Length);
                    fileOutStream.Close();
                    
                }
            }
            streamReader.Close();            
        }

        private string ExecuteDialogProcess()
        {
            OpenFileDialog openDialog = new OpenFileDialog();
            openDialog.Filter = "Word Index File|*.idx|All File|*.*";

            openDialog.ShowDialog();
            
            return openDialog.FileName;
            //return openDialog.SafeFileName;
        }
    }
}

Posted by 동동(이재동)
php2008. 11. 15. 10:23

<script language='javascript'>

var Roomidx='6' ;

</script>


<?

$Roomidx = "<script>document.write (Roomidx);</script>"
echo $Roomidx;

?>

이런형태로만 가능합니다.

 

 폼으로 넘기면, 받을수있으나, 자바스크립트내 변수값만을 php변수로 담지못합니다.

Posted by 동동(이재동)
php2008. 11. 15. 10:07
Posted by 동동(이재동)
php2008. 11. 5. 17:40
ie firebug use
http://techbug.tistory.com/116
http://getfirebug.com/lite.html

firephp use
http://trend21c.tistory.com/366


Posted by 동동(이재동)
php2008. 10. 31. 17:18

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>

<HTML>

<head>
 <script>
  var step = 100;
  var cell = 100, total = 4, width = cell * total;
  var imageCount = 8;

  function do_left(){
    var obj = document.getElementById("photo_layer").style;
   
    var obj_left = obj.left;
    var obj_left_without_px = obj_left.substring(0,obj_left.lastIndexOf("px"));
    if (obj_left_without_px < 0)
   {
      var obj_left_calculate = (Number(obj_left_without_px)+step)+"px";   
      obj.left= obj_left_calculate;
     
   }   
  }

  function do_right(){
    var obj = document.getElementById("photo_layer").style;
   
    var obj_left = obj.left;
    var obj_left_without_px = obj_left.substring(0,obj_left.lastIndexOf("px"));
   
   if (obj_left_without_px > (imageCount*cell*(-1)+width))
   {
      var obj_left_calculate = (Number(obj_left_without_px)-step)+"px";   
         obj.left= obj_left_calculate;
   }
  
  }
 </script>
</head>
<body>
<table border="1">
 <tr align="center" style="height: 100px" bgcolor="#ffffff">
  <td><img src="./image/01.jpg" style = "width: 98px; height: 100px" onclick="do_left()"></img></td>
  <td>
    <div style="top: 0px; left: 0px; height: 100px; width: 400px; overflow:hidden; position: relative" >
    <div id="photo_layer" style="top: 0px; left: 0px; width: 800px; height: 80px; position: relative">
     <table style="height: 100px" cellspacing="0"  cellpadding="0">
      <tr align="center" bgcolor="#cccccc">
       <td width='100'><IMG src="./image/01.jpg" width='98'></img></td>
       <td width='100'><IMG src="./image/02.jpg" width='98'></img></td>
       <td width='100'><IMG src="./image/03.jpg" width='98'></img></td>
       <td width='100'><IMG src="./image/04.jpg" width='98'></img></td>
       <td width='100'><IMG src="./image/05.jpg" width='98'></img></td>
       <td width='100'><IMG src="./image/06.jpg" width='98'></img></td>
       <td width='100'><IMG src="./image/07.jpg" width='98'></img></td>
       <td width='100'><IMG src="./image/08.jpg" width='98'></img></td>
      </tr>
     </table>
    </div>
   </div>
  </td>
  <td><img src="./image/01.jpg" width="98" height="100" onclick="do_right()"></img></td>
 </tr>
</table>
</body>
</HTML>

Posted by 동동(이재동)
php2008. 10. 7. 14:53

<script>
  var url="http://172.16.10.50/zbxe/addons/dams_addon/test.php";
  var xmlhttp = null;
  if(window.XMLHttpRequest) {
   xmlhttp = new XMLHttpRequest();
  } else {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.open('GET', url,false);
  xmlhttp.onreadystatechange = function() {
   if(xmlhttp.readyState==4 && xmlhttp.status == 200 && xmlhttp.statusText=='OK') {
    responseText = xmlhttp.responseText;
   }
  }
  xmlhttp.send('');
  responseText = xmlhttp.responseText;
  alert(responseText);

</script>

Posted by 동동(이재동)
php2008. 9. 16. 16:31
1) ftp_connect : FTP서버에 연결한다.
-----------------------------------------------
int ftp_connect (string host [, int port])
$ftp=ftp_connect("서버주소 또는 도메인명",21);
-----------------------------------------------

(2) ftp_login : 계정과 패스워드로 서버에 접근한다.
-----------------------------------------------
int ftp_login (int ftp_stream, string username, string password)
$ftplogin = ftp_login($ftp, "$ftp_user_name", "$ftp_user_pass");
-----------------------------------------------

(3) ftp_pwd : 현재 디렉토리 값을 리턴한다.
-----------------------------------------------
int ftp_pwd (int ftp_stream)
$ftp_dir = $ftp_pwd($ftp);
-----------------------------------------------

(4) ftp_cdup : 가장 상위 디렉토리로 이동
-----------------------------------------------
int ftp_cdup (int ftp_stream)
$ftp_dir = $ftp_cdup($ftp);
-----------------------------------------------

(5) ftp_chdir : FTP 디렉토리의 변경
-----------------------------------------------
int ftp_chdir (int ftp_stream, string directory)
$chdir=ftp_chdir ($ftp, $ftp_dir);
-----------------------------------------------

(6) ftp_mkdir : 디렉토리를 만들고 만든 디렉토리명을 반환한다.
-----------------------------------------------
string ftp_mkdir (int ftp_stream, string directory)
$mkdir = ($ftp,"만들 디렉토리명");
-----------------------------------------------

(7) ftp_rmdir : 디렉토리를 삭제한다.
-----------------------------------------------
int ftp_rmdir (int ftp_stream, string directory)
$mkdir = ($ftp,"삭제할 디렉토리명");
-----------------------------------------------

(8) ftp_nlist : 디렉토리의 파일이름을 배열로 반환한다.
-----------------------------------------------
int ftp_nlist (int ftp_stream, string directory)
$contents = ftp_nlist( $ftp, "디렉토리명");
-----------------------------------------------

(9) ftp_rawlist : 디렉토리의 파일이름과 읽고 쓰고 실행할 권한을 파일 당 한 줄의 배열로 반환한다.
-----------------------------------------------
int ftp_rawlist (int ftp_stream, string directory)
$contents = ftp_nlist( $ftp, "디렉토리명");
-----------------------------------------------

(10) ftp_systype : FTP서버의 타입을 리턴하는데 리눅스는 UNIX로 표시해준다.
-----------------------------------------------
int ftp_systype (int ftp_stream)
echo ftp_systype($ftp);
-----------------------------------------------

(11) ftp_get : FTP로부터 파일을 다운로드 받는다.
-----------------------------------------------
int ftp_get (int ftp_stream, string local_file, string remote_file, int mode)
$download = ftp_get($ftp, "저장할 파일명", "다운받을 파일명","FTP_ASCII or FTP_BINARY");
-----------------------------------------------

.pl 또는 .cgi 같은 Perl CGI인 경우에는 FTP_ASCII로 다운 받고 다른 파일은 FTP_BINARY로 다운 받아야 한다.

(12) ftp_fget : FTP로부터 파일 포인터를 다운받는다.
-----------------------------------------------
int ftp_fget (int ftp_stream, int fp, string remote_file, int mode)
$download = ftp_fget($ftp, "저장할 파일명", "다운받을 파일명","FTP_ASCII or FTP_BINARY");
-----------------------------------------------

(13) ftp_put : FTP서버에 파일을 업로드 한다.
-----------------------------------------------
int ftp_put (int ftp_stream, string remote_file, string local_file, int mode)
$upload = ftp_put($ftp, "업로드할 파일명", "업로드될 파일명","FTP_ASCII or FTP_BINARY");
-----------------------------------------------

(14) ftp_fput : FTP서버에 파일 포인터를 업로드한다.
-----------------------------------------------
int ftp_fput (int ftp_stream, string remote_file, string local_file, int mode)
$upload = ftp_fput($ftp, "업로드할 파일명", "업로드될 파일명","FTP_ASCII or FTP_BINARY");
-----------------------------------------------

(15) ftp_size : 파일의 사이즈를 구한다.
-----------------------------------------------
int ftp_size (int ftp_stream, string remote_file)
$filesize = ftp_size( $ftp, $contents[$i] );
-----------------------------------------------
ftp_nlist 나 ftp_rawlist에 의해 구한 파일명에 대한 배열값인 $contents[$i]에는 각 파일명과 속성이 저장되어지는데 이 파일명을 사이즈로 구하면 파일이면 사이즈가 리턴되고 디렉토리이면 -1이 리턴된다.

(16) ftp_mdtm : 파일의 마지막 수정시간을 timestamp 값으로 리턴한다.
-----------------------------------------------
int ftp_mdtm (int ftp_stream, string remote_file)
$filemdth = ftp_size( $ftp, "파읾명");
-----------------------------------------------

(17) ftp_rename : 파일명을 변경한다.
-----------------------------------------------
int ftp_rename (int ftp_stream, string from, string to)
$rename = ftp_rename( $ftp, "바꿀 파일명", "바뀐 후 파일명");
-----------------------------------------------

(18) ftp_delete : 해당 파일을 삭제한다.
-----------------------------------------------
int ftp_delete (int ftp_stream, string path)
$delfile = ftp_delete($ftp, "지울 파일명");
-----------------------------------------------

(19) ftp_quit : 연결된 FTP의 접속을 끊는다.
-----------------------------------------------
int ftp_quit (int ftp_stream)
ftp_quit ($ftp);
-----------------------------------------------
Posted by 동동(이재동)
php2008. 8. 12. 17:31

<?
function start_time(){
 return $start_time = explode(" ",microtime());
}
function end_time($start_time){
 $end_time = explode(" ",microtime());
 $sec = $end_time[1] - $start_time[1];
 $microsec = $end_time[0] - $start_time[0];
 return $sec + $microsec;
}
$start_time = start_time(); // 시작 시간을 변수에 저장.
//
// 처리부분.
//
echo end_time($start_time); // 끝 시간에서 시작시간을 빼서 리턴.
?>

Posted by 동동(이재동)
php2008. 8. 6. 14:07

메소드내에
function GetBasicView($pQuery)
 {
     require_once "../include/admin_config.php";
     require_once "../include/common_db.php";
    return $pQuery
}
 
이런식으로 인크루드가 있다면 제대로 return값을  얻지 못하고 에러가 난다.

그러므로 includ를 밖으로 빼내고 하면 제대로 된다... 아주 중요한 사실이다...

'php' 카테고리의 다른 글

php로 ftp만들기  (0) 2008.09.16
php 프로그램 실행 속도 구하기  (0) 2008.08.12
php한글이 제대로 표현이 안될때  (0) 2008.07.28
php 문자열  (0) 2008.07.25
eclipse에서 한글 되게  (0) 2008.07.25
Posted by 동동(이재동)
php2008. 7. 28. 19:15
$q = iconv("EUC-KR","UTF-8",$q);

쿼리를 받을때 인코딩이 달라서 받은값이 이상할때가 있다.. 이때 저렇게 쓰면 제대로 표현된다.

$q = urlencode($q);

이건보너스 이걸쓰면 utf8로 보여준다.....................

%ED%95%9C%EA%B8%80

이런식으로 ㅋㅋ

'php' 카테고리의 다른 글

php 프로그램 실행 속도 구하기  (0) 2008.08.12
php 메소드 안에서는 include를 쓰지 못한다.  (0) 2008.08.06
php 문자열  (0) 2008.07.25
eclipse에서 한글 되게  (0) 2008.07.25
eclipse에서 php를 쓰는법  (0) 2008.07.23
Posted by 동동(이재동)
php2008. 7. 25. 16:04

- 문자열처리함수 -
AddCSlashes -- C 형식으로 문자열에 슬래쉬를 덧붙입니다.
addslashes -- 문자열에 슬래쉬를 덧붙입니다.
bin2hex -- 바이너리 데이터를 16진수 표현으로 바꿉니다.
chop -- rtrim()의 별칭.
chr -- 특정 문자를 반환합니다.
chunk_split -- 문자열을 작은 조각으로 나눕니다.
convert_cyr_string -- 키릴 문자셋을 다른 것으로 변환합니다.
convert_uudecode -- Decode a uuencoded string
convert_uuencode -- Uuencode a string
count_chars -- 문자열 안에 사용한 문자에 대한 정보를 반환합니다.
crc32 -- 문자열의 crc32값을 계산합니다.
crypt -- 단방향 문자열 암호화(해슁).
echo -- 하나 이상의 문자열을 출력합니다.
explode -- 문자열을 주어진 문자열을 기준으로 분리합니다.
fprintf -- 문자열을 형식화하여 스트림에 기록합니다.
get_html_translation_table -- htmlspecialchars()와 htmlentities()에서 사용하는 변환표를 반환합니다.
hebrev -- 논리 헤브라이어 텍스트를 표시 텍스트로 변환합니다.
hebrevc -- 개행 문자를 포함하여 논리 헤브라이어 텍스트를 표시 텍스트로 변환합니다.
html_entity_decode -- 모든 HTML 엔티티를 해당하는 문자로 변환합니다.
htmlentities -- 해당하는 모든 문자를 HTML 엔티티로 변환합니다.
htmlspecialchars -- 특수 문자를 HTML 엔터티로 변환합니다.
implode -- 문자열로 배열 요소를 결합합니다.
join -- implode()의 별칭.
levenshtein -- 두 문자열 사이의 Levenshtein distance를 계산합니다.
localeconv -- 숫자 형식화 정보를 얻습니다.
ltrim -- 문자열 시작 부분의 공백을 제거합니다.
md5_file -- 주어진 파일명의 md5 해쉬를 계산합니다.
md5 -- 문자열의 md5 해쉬를 계산합니다.
metaphone -- 문자열의 메타폰 키를 계산합니다.
money_format -- Formats a number as a currency string
nl_langinfo -- 언어와 로케일 정보를 얻습니다.
nl2br -- 문자열의 모든 줄바꿈 앞에 HTML 줄바꿈 태그를 삽입합니다.
number_format -- Format a number with grouped thousands
ord -- 문자의 아스키 값을 반환합니다.
parse_str -- 문자열을 처리하여 변수를 생성합니다.
print -- 문자열을 출력합니다.
printf -- 형식화한 문자열을 출력합니다.
quoted_printable_decode -- 인용되어 있는 출력 가능 문자열을 8비트 문자열로 변환합니다.
quotemeta -- 메타 문자를 인용합니다.
rtrim -- 문자열 끝 부분의 공백을 제거합니다.
setlocale -- 지역적보를 지정한다.
sha1_file -- 파일의 sha1 해쉬를 계산합니다.
sha1 -- 문자열의 sha1 해쉬를 계산합니다.
similar_text -- 두 문자열 간의 유사성을 계산합니다.
soundex -- 문자열의 soundex 키를 계산합니다.
sprintf -- 형식화한 문자열을 반환합니다.
sscanf -- 문자열을 형식에 따라 처리합니다.
str_ireplace -- 대소문자를 구별하지 않는 str_replace().
str_pad -- 문자열을 어떠한 길이가 되도록 다른 문자열로 채웁니다.
str_repeat -- 문자열을 반복합니다.
str_replace -- 발견한 모든 검색 문자열을 치환 문자열로 교체합니다.
str_rot13 -- 문자열에 rot13 변환을 수행합니다.
str_shuffle -- 문자열을 랜덤하게 섞습니다.
str_split -- 문자열을 배열로 변환합니다.
str_word_count -- 문자열에서 사용한 단어에 대한 정보를 반환합니다.
strcasecmp -- 대소문자를 구별하지 않는 바이너리 호환 문자열 비교
strchr -- strstr()의 별칭.
strcmp -- 바이너리 호환 문자열 비교
strcoll -- 로케일 기반 문자열 비교
strcspn -- 마스크에 매칭하지 않는 처음 세그먼트의 길이를 찾습니다.
strip_tags -- 문자열에서 HTML과 PHP 태그를 제거합니다.
stripcslashes -- addcslashes()로 처리한 문자열을 되돌립니다.
stripos -- 대소문자를 구별하지 않고 문자열이 처음 나타나는 위치를 찾습니다.
stripslashes -- addslashes()로 처리한 문자열을 되돌립니다.
stristr -- 대소문자를 구별하지 않는 strstr()
strlen -- 문자열의 길이를 구합니다.
strnatcasecmp -- "natural order" 알고리즘을 이용한 대소문자를 구별하지 않는 문자열 비교.
strnatcmp -- "natural order" 알고리즘을 이용한 문자열 비교
strncasecmp -- 대소문자를 구별하지 않는 처음 n 문자의 이진 호환 문자열 비교
strncmp -- 처음 n 문자의 이진 호환 문자열 비교
strpbrk -- Search a string for any of a set of characters
strpos -- 문자열이 처음 나타나는 위치를 찾습니다.
strrchr -- 문자열에서 문자가 마지막으로 나오는 부분을 찾습니다.
strrev -- 문자열을 뒤집습니다.
strripos -- 문자열에서 대소문자 구별 없이 문자열이 나타나는 마지막 위치를 찾습니다.
strrpos -- 문자열에서 마지막 문자의 위치를 찾습니다.
strspn -- 마스크에 매칭되는 초기 세그먼트의 길이를 찾는다.
strstr -- 문자열이 처음으로 나타나는 부분을 찾습니다.
strtok -- 문자열을 토큰화 합니다.
strtolower -- 문자열을 소문자로 만듭니다.
strtoupper -- 문자열을 대문자로 만듭니다.
strtr -- 특정 문자를 번역한다.
substr_compare -- Binary safe optionally case insensitive comparison of 2 strings from an offset, up to length characters
substr_count -- 부분문자열의 수를 센다
substr_replace -- 문자열의 일부를 치환한다.
substr -- 문자열의 일부를 반환한다.
trim -- 문자열의 처음과 끝에 있는 공백을 제거한다.
ucfirst -- 문자열의 처음 글자를 대문자로 만든다.
ucwords -- 문자열에 있는 각 단어의 처음 글자를 대문자로 바꾼다.
vprintf -- Output a formatted string
vsprintf -- Return a formatted string
wordwrap -- 정지문자를 이용해 주어진 수 만큼의 문자를 래핑한다.


- 파일처리함수 -
basename -- 경로명에서 파일이름만 반환합니다
chgrp -- 파일의 그룹을 변환합니다
chmod -- 파일의 모드 변경
chown -- 파일의 소유자 변경
clearstatcache -- 파일의 통계(stat) 캐시를 삭제합니다.
copy -- 파일을 복사합니다
delete -- 실제로는 없는 명령
dirname -- 경로의 구성요소중에서 디렉토리 이름만 반환합니다.
disk_free_space -- Returns available space in directory
disk_total_space -- Returns the total size of a directory
diskfreespace -- 디렉토리의 사용가능한 공간을 반환합니다.
fclose -- 열려있는 파일 포인터를 닫습니다.
feof -- 파일의 끝이 파일포인터에 있는지 테스트합니다.
fflush -- 출력결과를 파일로 보냅니다.
fgetc -- 파일포인터로부터 문자 가져오기
fgetcsv -- 파일포인터에서 라인을 가져오고 CVS 에 맞게 변환합니다.
fgets -- 파일 포인터에서 라인 가져오기
fgetss -- 파일포인터에서 라인을 가져오고 HTML 태그를 없애기
file_exists -- 파일이 있는지 체크
file_get_contents -- Reads entire file into a string
file_put_contents -- Write a string to a file
file -- 파일전체를 배열로 읽어들임
fileatime -- 최근에 파일에 접근한 시간을 가져옴
filectime -- 파일의 아이노드 변경시간을 가져옵니다
filegroup -- 파일의 그룹을 가져옵니다
fileinode -- 파일의 아이노드를 가져옵니다
filemtime -- 파일이 수정된 시간을 가져옵니다
fileowner -- 파일의 소유자를 가져옵니다
fileperms -- 파일의 권한을 가져옵니다
filesize -- 파일의 크기를 가져옵니다
filetype -- 파일의 형식을 가져옵니다
flock -- 파일 잠김에 관한 간단한 도움말
fnmatch -- Match filename against a pattern
fopen -- 파일이나 URL을 엽니다
fpassthru -- 파일 포인터에 남아있는 모든 데이타를 출력합니다
fputs -- 파일 포인터에 기록하기
fread -- Binary-safe 파일 읽기
fscanf -- 형식에 따라서 파일로 부터 분석하여 입력하기
fseek -- 파일 포인터에서 찾기
fstat -- 오픈 파일 포인터를 사용하는 파일에 대한 정보 가져오기
ftell -- 파일포인터의 읽기/쓰기 위치 말하기
ftruncate -- 주어진 길이로 잘라내기
fwrite -- Binary-safe 파일 쓰기
glob -- Find pathnames matching a pattern
is_dir -- filename 이 디렉토리인지 아닌지 이야기하기
is_executable -- filename이 실행가능한 것인지 아닌지 이야기하기
is_file -- filename이 보통 파일인지 아닌지 이야기하기
is_link -- filename이 심볼릭 링크인지 아닌지 이야기하기
is_readable -- filename이 읽기 가능한 것인지 아닌지 이야기하기
is_uploaded_file -- file이 HTTP POST를 통해 업로드된 것인지 아닌지 이야기하기
is_writable -- filename이 쓰기가능한 것인지 아닌지 이야기하기
is_writeable -- Alias of is_writable()
link -- hard link 만들기
linkinfo -- 링크 정보 가져오기
lstat -- 파일이나 심볼릭 링크에 관한 정보를 제공
mkdir -- 디렉토리 만들기
move_uploaded_file -- 업로드된 파일을 다른곳으로 이동하기
parse_ini_file -- Parse a configuration file
pathinfo -- Returns information about a file path
pclose -- 진행되는 파일 포인터 닫기
popen -- 진행되는 파일 포인터를 열기
readfile -- 파일을 출력합니다
readlink -- symbolic link의 target 반환
realpath -- 표준화된 절대 경로명을 반환합니다
rename -- 파일을 새 이름으로 고치기
rewind -- 파일포인터의 위치를 되돌립니다(rewind).
rmdir -- 디렉토리 제거하기
set_file_buffer -- 주어진 파일 포인터에 파일 버퍼링 설정하기
stat -- file에 대한 정보 제공
symlink -- 심볼릭 링크 만들기
tempnam -- 유일한 파일 이름 만들기
tmpfile -- 임시 파일 만들기
touch -- 파일의 수정시간을 설정합니다
umask -- 현재의 umask를 변경하기
unlink -- 파일을 삭제하기

Posted by 동동(이재동)
php2008. 7. 25. 11:56
이번에 eclipse라는 툴을 사용하게 되었는데 jsp 파일을 열때 한글이 깨지는 현상이 있더군요
그래서 찾아본 결과 아래와 같이 설정해주면 됩니다.
 
1. 창 > 환경설정 메뉴로 들어간다.
2. 아래 화면과 같이 왼쪽 트리에서 "컨텐츠 유형"을 선택하고 오른쪽 트리에서 "JSP" 를 선택한다.
3. "기본값 인코딩"이 ISO***로 되어있거나 "EUC-KR"이 아닌경우 "EUC-KR"를 바꾼 후 저장한다.

'php' 카테고리의 다른 글

php 프로그램 실행 속도 구하기  (0) 2008.08.12
php 메소드 안에서는 include를 쓰지 못한다.  (0) 2008.08.06
php한글이 제대로 표현이 안될때  (0) 2008.07.28
php 문자열  (0) 2008.07.25
eclipse에서 php를 쓰는법  (0) 2008.07.23
Posted by 동동(이재동)
php2008. 7. 23. 19:32
http://blog.naver.com/nowtrand?Redirect=Log&logNo=10015146585


이건 설정부분....
http://blog.naver.com/brian2?Redirect=Log&logNo=50005085730

그리고 위에 블러그에 들어가보면 개발자에 맞는 폰트도 나온다.

'php' 카테고리의 다른 글

php 프로그램 실행 속도 구하기  (0) 2008.08.12
php 메소드 안에서는 include를 쓰지 못한다.  (0) 2008.08.06
php한글이 제대로 표현이 안될때  (0) 2008.07.28
php 문자열  (0) 2008.07.25
eclipse에서 한글 되게  (0) 2008.07.25
Posted by 동동(이재동)