Asked 8 years, 11 months ago. Active 8 days ago. Viewed 36k times. Improve this question. Add a comment. Active Oldest Votes. What do you mean by "public URL" exactly? I also changed your database query to avoid any SQL injection vulnerable.
Improve this answer. Community Bot 1. Either of the following can be used: 1. Ankit Agrawal Ankit Agrawal 4, 1 1 gold badge 19 19 silver badges 36 36 bronze badges. This is a common misconception that is incorrect. To clarify: my comment is specific to Drupal 7.
Either way, I still stand by my assertion that using the same code as what's inside a deprecated function is no better than just calling the deprecated function. How can I convert a file uri to relative path? Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Adrian Cid Almaguer Add a comment. Active Oldest Votes. Improve this answer. Stefanos Petrakis Stefanos Petrakis 8, 2 2 gold badges 12 12 silver badges 31 31 bronze badges. Thanks for the comment but still I get the same error after using your code. Any idea why its happening?
You're welcome. Just make sure you don't use realpath. Is the code in your question still up to date? Yes my code is up tp date other your suggested code. I added dpm's of all my trail and errors in my question edit.
Can you please have alook into it? Stefanos Petrakis — miststudent Show 2 more comments. Try the following. Thank you for the answer, it creates the file in the private directory but while accessing it through brower it shows different path and shows access denined error while viewing it. It is showing the following URL : example. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Winter Bash
0コメント