changed put content function back to PHP core version again...