"PHP urlencode()"의 두 판 사이의 차이

(새 문서: ==개요== ;PHP urlencode() <source lang='PHP'> echo urlencode('개요'); # %EA%B0%9C%EC%9A%94 echo urlencode('hello 123 http://zetawiki.com 한글'); # hello+123+http%3A%2F%2Fzetawik...)
 
9번째 줄: 9번째 줄:


==같이 보기==
==같이 보기==
* [[PHP urldecode()]]
* [[PHP urldecode()]] - URL-인코딩된 문자열을 디코딩
* [[PHP htmlentities()]] - 적용가능한 문자들을 HTML 엔티티로 변환
* [[PHP rawurlencode()]] - RFC 3986에 따른 URL 인코딩
* [[PHP rawurldecode()]] - URL-인코딩된 문자열을 디코딩
* [[함수 urldecode()]]


==참고==
==참고==
*  RFC 3986
* https://www.php.net/manual/en/function.urlencode.php
* https://www.php.net/manual/en/function.urlencode.php


[[category: PHP]]
[[category: PHP]]

2019년 11월 25일 (월) 23:33 판

1 개요

PHP urlencode()
PHP
Copy
echo urlencode('개요');
# %EA%B0%9C%EC%9A%94
echo urlencode('hello 123 http://zetawiki.com 한글');
# hello+123+http%3A%2F%2Fzetawiki.com+%ED%95%9C%EA%B8%80

2 같이 보기

3 참고

  • PHP 파일 다운로드 구현 2 (한글 파일명 지원)
    제가 파일다운로드 관련된 것이 서툴러서 파일 다운로드 부분을 인용하였습니다. 죄송합니다.
  • PHP에서 오라클 DB 사용
    감사합니당. YoWu
  • PHP 파일 업로드 구현
    파일정보 출력에서 $name $ext 가 정상적으로 출력되나요? 전부 echo의 쌍따옴표안에 있는데? 일리단사오육칠
  • PHP 파일 업로드 구현
    PHP echo에서 쌍따옴표 안의 변수는 해석되어 출력됩니다. 위 소스에서도 $name와 $ext가 두껍게 나와있죠? 일반 문자열과는 다르다는 표시죠.J Jmnote
  • PHP 파일 다운로드 구현 2 (한글 파일명 지원)
    'Windows NT 6.1' << 이부분은 접속한 윈도우의 플랫폼을 뜻하는걸로 압니다. ie11 접속하면 다음과 같이 바뀌었고 Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko rv:11.0 << 이부분이 Anmkst
  • Lib my.php
    Fatal error: Uncaught Error: Call to undefined function insert_rows() in D:\xampp\htdocs\naru\import_excel.php:38 Stack trace: #0 {main} thrown in D:\xampp\htdo 신정섭
  • Lib my.php
    함수 query()를 사용하면 됩니다. 예시 추가했으니 참고바랍니다.J Jmnote
  • 로또번호 생성
    초보를 위한 개발 실습 과제로군요 ㅎㅎ Pinkcrimson