Skip to content

Code using $_SERVER['DOCUMENT_ROOT'] might cause issues in CLI #830

@stevenagy88

Description

@stevenagy88

Hi,

I noticed your code is using $SERVER['DOCUMENT_ROOT']. This may cause the code to malfunction when run from the command line, as is the case in cron jobs, for example. Are there any plans to replace the code with DIR and dirname()?

Thanks,
Steve Nagy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions