Skip to content
Advertisement

Tag: remote-server

Delete image file from directory in PHP on remote server and localhost

I’m trying to figure out, how to delete correctly image file with summernote from directory folder on remote server and localhost. So, image successfully uploaded from summernote editor and located by directory path: and C:xampphtdocsuserblogadmineditor-delete.php code: or Warning: unlink(): http does not allow unlinking in C:xampphtdocsuserblogadmineditor-delete.php Localhost correct path must be C:/xampp/htdocs/blog/uploads/img-uploads/154_20220702.png, but with unlink($_SERVER[‘DOCUMENT_ROOT’] .’/’. $file_name); the path contains

Advertisement