웹프로그램286 PHP 프레임 안쪽에서 새로고침 해도 페이지 안변하게 $LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME])); header("Last-Modified: $LastModified GMT"); header("ETag: ".$LastModified); 2008. 10. 15. PHP exec 함수로 권한 설정 exec('chmod -R 777 /home/test/test/*'); 2008. 10. 14. PHP setcookie setcookie -- 쿠키를 전송합니다 bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]]) $value = 'something from somewhere'; setcookie("TestCookie", $value); setcookie("TestCookie", $value,time()+3600); /* 1시간 뒤에 만료 */ setcookie("TestCookie", $value,time()+3600, "/~rasmus/", ".example.com", 1); 2008. 10. 14. PHP While 문을 For 문으로 1. $result = mysql_query($query); $total = mysql_affected_rows(); for($i=1; $i 2008. 10. 14. 이전 1 ··· 56 57 58 59 60 61 62 ··· 72 다음