douluoxiao2286 2018-12-25 19:11
浏览 4
已采纳

尝试在路径中使用$ value来移动基于此php文件的文件

I am trying to get the file to upload an image or audio file to the following directory

$dir='sites/default/documents/"$patientID"/' but I don't know how to use the exact syntax with the $ sign inside a path.

I used the get method to get the patientID from the controller but still nothing is working

  • 写回答

2条回答 默认 最新

  • dongquan8753 2018-12-25 19:15
    关注

    Use this instead : $dir="sites/default/documents/$patientID/";

    In your case the variable is considered as a text.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?