I could solve the issue with multi-level structure on the ftp by myself. There's no need to do it with a php script.
I exported the settings from the camera and opened it with wordPad:
Now you find the following:
Files","Name":"ReadWrite","OverWrite":true,"PicturePathRule":"%y-%M-%d/%s[%E][%O@%S][%R].jpg","RecordPathRule":"%y-%M-%d/%c/dav/%h/%h.%m.%s-%h.%m.%s[%E][%O@%S][%R].dav"},{"Channels":[{"MaxPictures":0,"Path":null}],"FileHoldTime":0,"Memo":"For FTP Files","Name":"FTP","OverWrite":true,"PicturePathRule":"%y-%M-%d/%s[%E][%O@%S][%R].jpg","RecordPathRule":"%y-%M-%d/%c/dav/%h/%h.%m.%s-%h.%m.%s[%E][%O@%S][%R].dav"}],"Comm":[{"Address":8,"Attribute":[
I only need the picture path, so i reduced the 2 entries like in the text above to the path: "%y-%M-%d/%s[%E][%O@%S][%R].jpg[/b]"
Maybe it's helpful for someone...
Cheers