Blog Posts on php snippets
Percent:
Geo Targetting Php Script That Works by filipino recipe on Nov 19, 2011Im searching for a script that will display my content to a specific country. The Script will detect visitor’s ip address, check what country the ip address belong and display the content to that visitor. I found some working script and tes...
PHP Snippets: Connecting to a Web Service by ColdBuffer Blog on Jul 17, 2011The World Wide Web Consortium (W3C), an international community that develops web standards, defines a web service to be a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described...
PHP Snippets: Converting HTML to PDF by ColdBuffer Blog on Jun 14, 2011Photo Credits: veign.com A number of open-source PHP libraries are available over the internet that converts Hypertext Markup Language (HTML) to Portable Document Format (PDF). One of these is dompdf which effectively converts HTML with CSS 2.1 compl...
PHP Snippets: Converting XML to array by ColdBuffer Blog on Jun 10, 2011XML or Extensible Markup Language is now being used widely by developers in transporting and storing data. This can be useful in returning a response to an Asynchronous Javascript and XML (AJAX) request, RSS feed, or in passing complex data to and fr...
PHP Snippets: Publishing story on a Facebook wall by ColdBuffer Blog on Jun 6, 2011Publishing story on a Facebook user’s wall, or simply post to wall, is the most common way of sharing over the social networking site. This is visible to all users connected with the one posting the story so it is sometimes used to promote a...
PHP Snippets: Sending emails by ColdBuffer Blog on May 30, 2011An electronic direct mail (EDM) or simpy email is a powerful tool in communicating with your site users. This is of great use, for example, in confirming them of their registration, sending them instructions on how to reset their password, notifying...
PHP Snippets: Identifying content type of a file by ColdBuffer Blog on May 23, 2011For the force download script to work properly, you need to know the content type of the file you want to make downloadable. (Click here to read the related post). This post will show how to determine the content type of any file. <form method="p...
PHP Snippets: Reading data from txt file by ColdBuffer Blog on Apr 28, 2011This post shows how to read data from a flat file (.txt) line per line. The code snippet below uses the explode() PHP function to put contents of the properly-delimited line of the txt file into an array. This is a perfect alternative for csv files e...
Keeping with me, a helpful PHP Snippets by Anything to Fix on Sep 28, 2010First of all i would like to thanks to this blog ( http://www.catswhocode.com/blog/10-life-saving-php-snippets ) for giving this very nice php snippets info to keep. (w/c took me to other php site codes to ponder) I am not a hardcoder of php so i w...


