PHP mod_korean extension Reference
  • Introduction
  • Installation
  • APIs
    • Check Functions
      • check_filename_lib
      • check_htmltbale_lib
      • check_uristr_lib
      • get_microtime_lib
      • human_fsize_lib
      • is_email_lib
      • is_hangul_lib
      • is_iis_lib
      • is_url_lib
      • is_windows_lib
      • buildno_lib
      • version_lib
    • Filesystem Functions
      • filelist_lib
      • getfile_lib
      • getfiletype_lib
      • putfile_lib
      • readfile_lib
      • pcregrep_lib
    • HTML Functions
      • agentinfo_lib
      • autolink_lib
      • get_hostname_lib
      • movepage_lib
      • perror_lib
      • pnotice_lib
    • Charset Functions
      • ncrencode_lib
      • ncrdecode_lib
      • uniencode_lib
      • unidecode_lib
      • utf8encode_lib
      • utf8decode_lib
      • substr_lib
      • postposition_lib
    • Image Functions
      • imgresize_lib
    • Mail Functions
      • mailsource_lib
      • sockmail_lib
Powered by GitBook
On this page
  • Proto type
  • Description
  • Arguments
  • Example
  • See also

Was this helpful?

  1. APIs
  2. HTML Functions

perror_lib

Proto type

string perror_lib(string str [, int use_java [, string move_page [, int move second ] ] ])

Description

에러 메세지를 출력하고 이전 화면으로 돌아간다. 쉘에서 이 함수를 사용할 경우에는 use_java 를 0 으로 지정을 하여 java script 가 아닌 문자열 출력으로 되게 할 수 있다. move_page 를 지정했을 경우에는 지정한 페이지로 이동을 하게 된다. move_page 를 지정했을 경우 java 를 사용하는 경우에는 바로 이동을 하며, 자바를 사용하지 않는 경우에는 move second 에 지정한 초가 경과한 후에 이동을 한다. 지정을 하지 않았을 경우 기본값은 5초 이다.

use_java 를 1 로 지정을 했더라도 text browser (lynx, links, w3m) 의 경우에는 use_java 0 으로 작동을 한다. shell 에서 사용을 했을 경우 역시 마찬가지 이다. use_java 는 java script 가 지원이 되는 브라우져에서만 적용이 된다.

Arguments

Example

<?php
if ( ! $string ) perror_lib ("문자열이 비었습니다.");
if ( ! $string ) perror_lib ("문자열이 비었습니다.", 1);
if ( ! $string ) perror_lib ("문자열이 비었습니다.", 1, "http://test.com/login.php");
if ( ! $string ) perror_lib ("문자열이 비었습니다.", 0, "http://test.com/login.php", 3);
?>

See also

Previousmovepage_libNextpnotice_lib

Last updated 5 years ago

Was this helpful?

pnotice_lib ()