Welcome Guest, Not a member yet? Register   Sign In
is it possible to make command to delete debugbar json files?
#4

In CI 4 the log files extension is .log not .php 

This is what worked for me:

PHP Code:
<?php
    
# CLEANER -  only shows last error logs and debugbar JSON files
    
$ok = @array_map('unlink'glob("../writable/logs/*.log"));
    
$ok = @array_map('unlink'glob("../writable/debugbar/*.json")); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: is it possible to make command to delete debugbar json files? - by InsiteFX - 03-11-2020, 04:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB