Steven Sun's Blog

A dream land of peace.

Network and Protocol Functions in PHP

  1. file_get_contents($url);

  2. urlencode() function.This function takes a string and converts it to the proper format for an URL

  3. parse_url($url)

  4. gethostbyname

  5. ftp_fget