php6siva / siva

0 stars 0 forks source link

how to unlink the image in php #1

Open php6siva opened 8 years ago

php6siva commented 8 years ago

$filePath= SiteComponent_BASE_URL.'public/uploads/listinglogo/'.$listing->logo;

                if(file_exists($filePath)) {

                    chmod($filePath, 0677);
                    unlink($filePath);

                } 

and i used this also

$filePath= APP_PATH.'public/uploads/listinglogo/'.$listing->logo;

                if(file_exists($filePath)) {

                    chmod($filePath, 0677);
                    unlink($filePath);

                } 

this two coding are not working