Code used with permission from JPEXS http://www.jpexs.com/php.html
void load( $uri)
void save( $handle, [ $uri = null])