![]() |
||
Data Mining Php programmingdatamining Scripts & FunctionsPreg_match examples The preg_match function of php is a very handy tool for string manipulation and data mining. The source code provided shows some good examples of use. datamining category Url Encoder 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. datamining category Description, title and keywords of a page 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. datamining category Dealing with content of a posted message 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. datamining category Random display of embed videos This function retrieves the source code of an embed video randomly from an array of several videos. It simply uses the array_rand() function of Php. datamining category Generating an excel file This script uses the content-type headers to launch a Microsoft excel sheet containing numbers formatted with tab in Php. datamining category Tags cloud Using temporary tables and a small mathematic calculation, we display a tag cloud. CSS covers the design of the elements. datamining category Html Encoder
This script retrieves the html formatted text from an online form and encodes the html tags. It's commonly used to save html text inside databases. datamining category |
|
Categories |