move(ROOT_PATH. 'public/uploads');". Specific problem description: What is the DS of thinkphp5Move method? $info=$file->move(ROOT_PATH.'public'.DS.'uploads');DS"/> move(ROOT_PATH. 'public/uploads');". Specific problem description: What is the DS of thinkphp5Move method? $info=$file->move(ROOT_PATH.'public'.DS.'uploads');DS">

Home >PHP Framework >ThinkPHP >what is the meaning of thinkphp ds

what is the meaning of thinkphp ds

WBOY
WBOYforward
2023-06-03 10:46:47797browse

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');

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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete