URL Functions - PowerPoint PPT Presentation

About This Presentation
Title:

URL Functions

Description:

Decodes any %# encoding in the given string. Syntax: string urldecode ( string str ) ... The decoded data. strict. Returns FALSE if input contains space or some ... – PowerPoint PPT presentation

Number of Views:56
Avg rating:3.0/5.0
Slides: 6
Provided by: raje49
Category:
Tags: url | decodes | functions

less

Transcript and Presenter's Notes

Title: URL Functions


1
URL Functions
2
urlencode()
  • This function is convenient when encoding a
    string to be used in a query part of a URL, as a
    convenient way to pass variables to the next
    page.
  • URL Encoding is used when placing text in a query
    string to avoid it being confused with the URL
    itself. It is normally used when the browser
    sends form data to a web server.
  • URL Encoding replaces spaces with "" signs,
    and unsafe ASCII characters with "" followed by
    their hex equivalent
  • Eg"Hello World/ AfterEncoding22HelloWorld
    2F
  • Eg

3
urldecode()
  • Decodes any encoding in the given string
  • Syntax
  • string urldecode ( string str )
  • Eg22HelloWorld2F
  • After DecodingHello World/
  • Eg

4
base64_encode()
  • Encodes data with MIME base64
  • Base64-encoded data takes about 33 more space
    than the original data.
  • Eg

5
base64_decode
  • Decodes data encoded with MIME base64
  • data
  • The decoded data.
  • strict
  • Returns FALSE if input contains space or some
    other separator
  • Eg
Write a Comment
User Comments (0)
About PowerShow.com