×ðÁú¿­Ê±¹ÙÍøµÇ¼

thinkphp dsµÄ¼ÄÒåÊÇʲô

thinkphp ds´ú±íб¸Ü/µÄÒâ˼£»ÔÚwindowÏÂÊÇ´ú±í·´Ð±¸Ü\»òÕßб¸Ü/£¬¿ÉÊÇΪÁ˼æÈÝд·¨½¨ÒéÓÃб¸Ü/£»dsµÄʹÓÃÒªÁìµÈͬÓÚ¡°$info = $file->move(ROOT_PATH . ‘public/uploads’);¡±¡£

ÏêϸÎÊÌâÐÎò£º

thinkphp5 Move ÒªÁìµÄ DS ÊÇʲô£¿

$info = $file->move(ROOT_PATH . ‘public’ . DS . ‘uploads’); DSËƺõÎ޹ؽôÒª£¬Õâ¸öµØµãÊǸùĿ¼ÏÂÃæ publicÏÂÃæµÄuploadsÎļþ¼ÐÀï…

ÎÊÌâÆÊÎö½â¾ö£º

Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»

DSÊÇ´ú±íб¸Ü /

ÔÚwindowÏÂÊÇ´ú±í·´Ð±¸Ü \ »òÕßб¸Ü /

ÔÚlinuxÏÂÊÇ´ú±íб¸Ü / ¡£

¿ÉÊÇΪÁ˼æÈÝд·¨½¨ÒéÓÃб¸Ü /¡£

Ã÷ȷô¡£

//µÈͬÓÚ
$info = $file->move(ROOT_PATH . 'public/uploads');

µÇ¼ºó¸´ÖÆ

thinkphpÊÇʲô

thinkphpÊôÓÚÒ»ÖÖÃâ·ÑµÄ¿ª·¢¿ò¼Ü£¬Äܹ»ÓÃÓÚ¿ª·¢Ç°¶ËÍøÒ³£¬×îÔçthinkphpÊÇΪÁ˼ò»¯¿ª·¢¶ø±¬·¢µÄ£¬thinkphpͬʱҲÊÇ×ñÕÕApache2ЭÒ飬×î³õÊÇ´ÓStrutsÑݱä¹ýÀ´£¬Ò²°ÑÍâÑóһЩºÃµÄ¿ò¼Üģʽ¾ÙÐÐʹÓã¬Ê¹ÓÃÃæÏò¹¤¾ßµÄ¿ª·¢½á¹¹£¬¼æÈÝÁËÐí¶à±êÇ©¿âµÈģʽ£¬ËüÄܹ»¸üÀû±ãºÍ¿ì½ÝµÄ¿ª·¢ºÍ°²ÅÅÓ¦Óã¬ËäÈ»²»µ«½öÊÇÆóÒµ¼¶Ó¦Óã¬ÈκÎphpÓ¦Óÿª·¢¶¼¿ÉÒÔ´ÓthinkphpµÄ¼òÆÓ¡¢¼æÈݺͿìËÙµÄÌØÕ÷ÖÐÊÜÒæ¡£

ÒÔÉϾÍÊÇthinkphp dsµÄ¼ÄÒåÊÇʲôµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ