move(ROOT_PATH. 'public/uploads');". Specific problem description: What is the DS of thinkphp5Move method? $info=$file->move(ROOT_PATH.'public'.DS.'uploads');DS"> what is the meaning of thinkphp ds-ThinkPHP-php.cn
Home> PHP Framework> ThinkPHP> body text

what is the meaning of thinkphp ds

WBOY
Release: 2023-06-03 10:46:47
forward
668 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 method of ds is the same At "$info = $file->move(ROOT_PATH . 'public/uploads');".

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

What is thinkphp

thinkphp is a free development framework that can be used to develop front-end web pages. The earliest thinkphp was created to simplify development. Thinkphp also followed the Apache2 protocol. Initially It evolved from Struts and also makes use of some good foreign framework patterns. It uses an object-oriented development structure and is compatible with many tag libraries and other patterns. It can develop and deploy applications more conveniently and quickly, and of course it is not only enterprise-level. Applications, any PHP application development can benefit from the simplicity, compatibility and speed of thinkphp.

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

Related labels:
source:yisu.com
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!