使用php在Windows中获取“我的文档"路径 [英] Get 'My Documents' path in windows using php

查看:28
本文介绍了使用php在Windows中获取“我的文档"路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 php 在用户的我的文档"文件夹中创建临时文件.PHP 中是否有可用的内置函数?

I want to create temp files inside users 'My Documents' folder using php. Is there any inbuilt function available in PHP?

推荐答案

答案在这里.

<?php echo getenv("HOMEDRIVE") . getenv("HOMEPATH"); ?>

这篇关于使用php在Windows中获取“我的文档"路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆