From an online form we interpret the content of a message by extracting tags and including the result inside a temporary mysql table. We then retrieve and display the html result on a page.
This script parses elements from a remote XML file. The xml file is encoded in ISO and elements are extracted and structured inside a table in UTF-8. The design can be adapted to the needs and the script adpated to different xml dataset.
This script shows you a way to connect to a server via a remote place using the fsockopen function of Php. The example posts some data throught a socket and retrieve the resulting page along with headers.
From a given path, this code provides a way to list all files and rename each one while extracting unwanted files. It uses serveral Php File I/O functions such as rename, is_dir...
Using the Curl library, the script reads the content from a web page and if it does not find the meta tags, it extracts some information to finally obtain a title, a description and few keywords about the page. The script also uses the iconv function to take care of the different charset.
This simple example uses the urlencode and urldecode functions of Php. It takes an Url and encodes so it can be sent over http as a variable. It then decodes it to take back the Url to its original form.
This script reads the content of a file and outputs its content into a string. It uses the file_get_contents() function which opens, reads and closes the file automatically.
This online tool can set cookies from values sent by an online form. It uses the setcookie function. It also retrieve the data stored inside the cookies for 10 minutes.
This script generates the sitemap from an Url. It uses the CURL library and the preg_match Php function. This sitemap is generated in xml and it's used by Google as a way to analyse the structure of a website.