dongnan1989 2019-06-03 12:35
浏览 86

使用“%u”来表示php.ini文件中的当前用户?

I'm currently installing xdebug profiler in my server. All my collaborators are SFTP-chrooted in their folders. In order to enable xdebug profiler, we need to provide a path in php.ini file where xdebug can store all "profiled" php sessions. Though, in my case, this folder depends on the developper name (developer name = folder name where they are sftp-chrooted). So I'm looking for something like this in my php ini :

xdebug.profiler_output_dir = "/var/www/html/myproject/usr-dev/%u/content/profiler-files/"

Where %u is the user that currently loading php program in the CLI.

This way, my collaborators would be able to retrieve their profiler files in PHPStorm, on their local machines, to analyse it.

If it's not possible, another way to achieve that is to store all profiler files in the same folder, but this folder must be accessible from all the users, despite their sftp-chroot. It would be an "exception folder" to chroot.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度