move(ROOT_PATH . 'public/uploads');"."> thinkphp ds what does it mean-ThinkPHP-php.cn
Home> PHP Framework> ThinkPHP> body text

thinkphp ds what does it mean

藏色散人
Release: 2022-12-05 10:58:43
Original
1750 people have browsed it

thinkphp ds represents the meaning of slash/; under window, it represents backslash\ or slash/, but for compatibility, it is recommended to use slash/; the usage of ds is equivalent to "$info = $ file->move(ROOT_PATH . 'public/uploads');".

thinkphp ds what does it mean

The operating environment of this tutorial: Windows 7 system, ThinkPHP version 5, Dell G3 computer.

thinkphp ds What does it mean?

Specific problem description:

What is the DS of thinkphp5 Move method?

$info = $file->move(ROOT_PATH . 'public' . DS . 'uploads'); DS seems to be dispensable. This address is in the uploads folder under public under the root directory. ..

Problem analysis and solution:

DS represents slash/

under window represents backslash\ or slash/

stands for slash / under Linux.

But for compatibility with writing, it is recommended to use slash /.

understand.

//等同于 $info = $file->move(ROOT_PATH . 'public/uploads');
Copy after login

Recommended learning: "thinkPHP Video Tutorial"

The above is the detailed content of thinkphp ds what does it mean. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!