开发者

Upload a file to public_html folder

I have a joomla component that fetches the audio songs from the music fol开发者_开发知识库der on the server and plays them in the front end. And the users can upload their songs from the front end.

But the problem is that, the component settings are such that the music folder path must be outside of the web root.

The path looks like:

/home/username/public_html/audio

But i am confused how to upload the files to a location inside 'public_html' folder, using php. What should be the destination address that i can use in my code?


To get the server path in the Joomla environment:

echo JPATH_SITE;

Examples of usage

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜