1. Modify $ config ['enabled'] = true in editor \ filemanager \ upload \ PHP \ editor \ filemanager \ browser \ Default \ connectors \ PHP \ config. php;
2. Modify $ config ['enabled'] = true in editor \ filemanager \ upload \ PHP \ config. php;
3. Modify the getrootpath function in util. php under editor \ filemanager \ upload \ PHP.CopyCodeThe Code is as follows:
Function getrootpath () {$ srealpath = realpath ('. '); $ srealpath = str_replace (' \ ','/', $ srealpath); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); return $ srealpath. '/';}
The getrootpath function in Io. php under editor \ filemanager \ browser \ Default \ connectors \ PHP is also available.Copy codeThe Code is as follows:
Function getrootpath () {$ srealpath = realpath ('. '); $ srealpath = str_replace (' \ ','/', $ srealpath); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath ,'/')); $ srealpath = substr ($ srealpath, 0, strrpos ($ srealpath, '/'); return $ srealpath. '/';}
Then modify the config in editor \ filemanager \ browser \ Default \ connectors \ PHP. the $ config ['userfilespath'] variable of the PHP file and the config under editor \ filemanager \ upload \ PHP. the $ config ['userfilespath'] variable in PHP is enough. However, the image cannot be seen in the editor, but there is no problem when it is displayed as content.