Skip to content

Instantly share code, notes, and snippets.

@mikey179
mikey179 / release-svn.php
Last active May 19, 2017 08:39
Release script
#!/usr/bin/env php
<?php
echo "Release script\n";
echo " (c) 2013 Frank Kleine\n";
echo " This software is Drinkware. If you happen to meet the author spend him a drink.\n\n";
$pwd = getcwd();
if (false === $pwd) {
error("Can't retrieve current directory - please check file permissions.");
exit(1);
}
@mikey179
mikey179 / example1.xml
Created October 12, 2011 14:26
XML file with XIncludes: with example1.xml the second XInclude is not resolved properly. When changing the order as in example2.xml all XIncludes are resolved properly.
<?xml version="1.0" encoding="utf-8"?>
<parts>
<part name="content">
<h1>XML xinclude example</h1>
<div>
<h2>some some blog entry</h2>
<p>blog entry comment</p>
<p>2011-10-12</p>