seclog | A secure log tool fo go
kandi X-RAY | seclog Summary
kandi X-RAY | seclog Summary
A secure log tool fo go.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Init the config .
- addExtLogInfo adds the file to the current log format .
- NewLoggerExt creates a new lager . LoggerExt .
- Session returns a new logger
- Main entry point
- Dial creates a connection to the syslog server
- Convert log level to string
- unixSyslog opens a connection to a Unix syslog connection .
- NewWriterSink returns a sink that implements io . Writer .
- DefaultConfig returns a default configuration .
seclog Key Features
seclog Examples and Code Snippets
Community Discussions
Trending Discussions on seclog
QUESTION
I have a php script that is checking the result of a virustotal scan. If the scan returns positive for malicious code it changes the value to 0 in the db. I have another php script which checks the value and if it is 0 it removes the entry from the db and then removes the file from the directory. When I run this through the command line it works perfectly, however when cron runs it, it does remove the db entry as it should however it does not delete the file from the directory.
Any help would be much appreciated.
Here is the end of the php file with the unlink:
...ANSWER
Answered 2018-May-10 at 18:14The problem almost certainly is the path $pat = str_replace('../','', $row['fileName']);
. Crons execute PHP cli, that is not the same PHP that Apache executes, also is another context. Try setting absolute path:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install seclog
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page