Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged xml



« Prev 1 2
  1. FAV getDoctype.inc.php

    With this snippet you will have the ability to display the `<DOCTYPE>` while sending the correct headers with support for content type negotiation. It also will correct itself for the W3C validator which does not send the correct Accept header for...
    PHP html xhtml xml
    posted 4 months ago by daemondevin
  2. FAV Convert XML to Array in PHP

    Convert easily XML File or String to Associative Array in PHP
    PHP array php xml
    posted 4 years ago by kavikms
  3. FAV Creating an RSS Feed From Your Site

    If you syndicate your content with an RSS feed it can help to drive additional traffic to the content pages.
    PHP php xml
    posted 4 years ago by COBOLdinosaur
  4. FAV Implement Simple Mail Merge or MailMerge with Regions in Cloud Using PHP

    Mail merge allows you to produce document (potentially large numbers of documents) from a single template and a structured data source. The letter may be sent out to many recipients with small changes, such as a change of address or a change in the g...
    PHP Business mail php simple template xml
    posted 6 years ago by johansonkatherine
  5. FAV Lambda function to create XML from Array

    This snippet is a lambda function (anonymous function) to create an xml from an array. It uses recursiveness.
    PHP array php xml saved by 3 people
    posted 6 years ago by abrahamsustaita
  6. FAV Parsing XML File with PHP

    This code shows how to parse XML file in easy way using PHP.
    PHP php xml
    posted 6 years ago by apphp-snippets
  7. FAV Fix CDATA blocks in XML files after reformatting with Tidy

    For some reason tidy inserts new lines before/after <![CDATA[ content in XML files. Since I like the benefits of a reformatted, readable XML... ... i run tidy first, then remove the spaces before/after the CDATA block:
    PHP xml
    posted 7 years ago by iroybot
  8. FAV Read/Write data to an XML file

    A simple code to read/write an XML file by using Cakephp 1.3.
    PHP php xml
    posted 7 years ago by tucq88
  9. FAV Extract PitchFX from MLB.com

    Open PHP file and enter User Credentials for localhost. The default dates are set to negotiate the 2011 season, but change the date variables to match your desired season data. The start date should be the day before opening day, and the end date t...
    PHP DOM mysql php xml
    posted 8 years ago by wa-rufio
  10. FAV Log down all loaded layout handles in Magento on each request

    Snippet for getting the layout handles in Magento on each request, helpful for front-end developers.
    PHP layout magento php xml saved by 4 people
    posted 8 years ago by zoranmk
  11. FAV How to log all xml layout updates in Magento on each request

    Snippet for logging down all of the layout updates loaded on each request in Magento.
    PHP layout magento php xml saved by 4 people
    posted 8 years ago by zoranmk
  12. FAV PHP - cURL receives xml

    PHP curl xml
    posted 8 years ago by focal55
  13. FAV Image files to xml

    Checks for image files in directory and creates a XML file of the contents
    PHP images xml
    posted 8 years ago by Don_Jarmo
  14. FAV Twitter Followers Image List

    A simple script to show a followers list in Wordpress. (It can be used in other places also, you have to change the WP specific variables). The script needs to create a cache file to not overload Twitter API.
    PHP api twitter xml
    posted 8 years ago by jhonqwerty
  15. FAV Zend output XML

    PHP php xml
    posted 8 years ago by stur
  16. FAV XML Feed - Monthly Archives of Wordpress Articles

    In case you need to create your own listing of the last # of trailing months of Archived Wordpress Articles. This one is being used to pull the info onto a Magento page.
    PHP date wordpress xml
    posted 8 years ago by cpres
  17. FAV Flickr Recent Photos to HTML with PHP

    It’s been driving me crazy that there’s no definitive script written to take out a user’s Flickr recent photos and parse it for formatting into HTML with a larger size than the standard 75 x 75 dimensions that the public_photo.gne Flickr script...
    PHP html php xml saved by 3 people
    posted 8 years ago by jakekimpton
  18. FAV Example XML representation of Zend_Form

    the link explains how the XML is generated.
    PHP php xml saved by 2 people
    posted 8 years ago by iroybot
  19. FAV Create a Basic Web Service Using PHP, MySQL, XML, and JSON

    PHP json service web xml saved by 8 people
    posted 8 years ago by mb2o
  20. FAV SimpleXML and PHP Error Handling - Tumblr RSS Example

    PHP xml
    posted 8 years ago by marshall
  21. FAV print xml feed to page

    PHP php xml saved by 2 people
    posted 8 years ago by mchadwick
  22. FAV Using PHP in XPath

    I'm using this out of laziness. PHP is slowing things down here, since it's not as close to C as XPath. A better solution would be to have an attribute specifically for search purposes (either in upper or lowercase).
    PHP php xml
    posted 9 years ago by iroybot
  23. FAV addChild and attribute with simpleXml

    PHP xml
    posted 9 years ago by hejaaa
  24. FAV Use JParameter to manually write a form field item

    For instance when you want to leverage the JElements in a admin view form...
    PHP forms joomla xml
    posted 9 years ago by harikaram
  25. FAV Matching an XHTML/XML tag with a certain attribute value

    PHP xml
    posted 9 years ago by newsok
  26. FAV Matching a XML/HTML tag

    PHP xml
    posted 9 years ago by newsok
  27. FAV generate XML from Object... AND... XML from Array... AND XML from Array

    PHP array convert object xml saved by 8 people
    posted 9 years ago by flashmac
  28. FAV chunk - Break A Large XML File Into Manageable Chunks

    I’ve recently had to parse some pretty large XML documents, and needed a method to read one element at a time. Here’s a fairly simple solution in PHP.
    PHP php xml
    posted 9 years ago by dom111
  29. FAV How to use Google HTTP Geocoding

    PHP api code csv data google php post xml
    posted 9 years ago by adampatterson
  30. FAV Get the contents of a specified tag from an XML file in PHP

    Simple piece of PHP to get the contents of a specified tag from an XML file and return it
    PHP php xml saved by 6 people
    posted 9 years ago by ollie101
« Prev 1 2