PHP getcwd() 函数

PHP 教程 · 2019-01-24 12:58:48

实例

获取当前工作目录:

<?php
echo getcwd()
?>

结果:

/home/php

定义和用法

getchwd() 函数返回当前工作目录。

语法

getcwd();

技术细节

返回值: 成功则返回当前工作目录。失败则返回 FALSE。
PHP 版本: 4.0+

点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

How to Think Like a Computer Scientist: Learning with Python

How to Think Like a Computer Scientist: Learning with Python

Allen B. Downey、Jeffrey Elkner、Chris Meyers / Green Tea Press / 2002-1-4 / USD 24.95

""How to Think Like a Computer Scientist"" is an introduction to programming using Python, one of the best languages for beginners. This is a Free Book -- you can download it from thinkpython.com. But......一起来看看 《How to Think Like a Computer Scientist: Learning with Python》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

随机密码生成器
随机密码生成器

多种字符组合密码