PHP realpath function question

后端 未结 3 603
迷失自我
迷失自我 2021-02-11 09:43

I cant seem to get the realpath function to work with variables is there a way I can fix this? When I use variables in the function it returns nothing I know the pathname works

3条回答
  •  长情又很酷
    2021-02-11 10:05

    Does the path really exist? As for the realpath function to work, the path has to be a valid and existing location.

    So if you are using .htaccess to create "pseudo" paths, the realpath function will not work on them. The use of variables inside should not matter (given that they are populating fine and are correct), as all it really requires is a valid string.

提交回复
热议问题