|
|
||
Php - Data MiningData Mining Scripts & FunctionsTags cloud
Using temporary tables and a small mathematic calculation, we display a tag cloud. CSS covers the design of the elements.
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
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
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
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.
Data Mining 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.
Data Mining category
Preg_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.
Data Mining category
Html Encoder
Using the htmlentities function of php, the script takes the html formatted text from an online form and encodes it. This function is widely used each time there is interaction between html and database.
Data Mining category
|
|
Categories |