Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged xml
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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...
0
10956
posted 5 years ago by daemondevin
If you syndicate your content with an RSS feed it can help to drive additional traffic to the content pages.
0
985
posted 9 years ago by COBOLdinosaur
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...
0
1290
posted 10 years ago by johansonkatherine
This snippet is a lambda function (anonymous function) to create an xml from an array. It uses recursiveness.
1
1047
posted 11 years ago by abrahamsustaita
This code shows how to parse XML file in easy way using PHP.
0
982
posted 11 years ago by apphp-snippets
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:
0
1036
posted 11 years ago by iroybot
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...
0
896
posted 12 years ago by wa-rufio
Snippet for getting the layout handles in Magento on each request, helpful for front-end developers.
1
942
posted 12 years ago by zoranmk
Snippet for logging down all of the layout updates loaded on each request in Magento.
1
973
posted 12 years ago by zoranmk
Checks for image files in directory and creates a XML file of the contents
0
969
posted 13 years ago by Don_Jarmo
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.
0
856
posted 13 years ago by jhonqwerty
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.
0
785
posted 13 years ago by cpres
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...
1
986
posted 13 years ago by jakekimpton
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).
0
807
posted 13 years ago by iroybot
For instance when you want to leverage the JElements in a admin view form...
0
831
posted 14 years ago by harikaram
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.
0
1729
posted 14 years ago by dom111
Simple piece of PHP to get the contents of a specified tag from an XML file and return it
3
1587
posted 14 years ago by ollie101