I can't get it to view files i a directory! |
[eluser]behnampmdg3[/eluser]
Hello; Why can't I see anything? I need to see the files in this directory. The directory exists and is accessible. I dont get an error either! Code: $directory_url = base_url('upload/server/php/files'); Thanks
[eluser]CroNiX[/eluser]
Because you're not accessing a directory...you're accessing a URL (using base_url())... Try using the full path to the dir.
[eluser]behnampmdg3[/eluser]
[quote author="CroNiX" date="1357956015"]Because you're not accessing a directory...you're accessing a URL (using base_url())... Try using the full path to the dir. [/quote]Would you please explain? I tired this below but no difference: Code: $directory_url = "http://nickdavis.com.au/sincity/website_admin/upload/server/php/files"; Code: http://nickdavis.com.au/sincity/website_admin/upload/server/php/files Heres the folder Thank you
[eluser]CroNiX[/eluser]
Yes, as I said that's a url. It starts with http. You need the local file path on the server (which is what that url is accessing). Code: /home/users/or/whatever/sincity/website_admin/upload/server/php/files See the examples in the docs for the directory helper. It's not using a url.
[eluser]behnampmdg3[/eluser]
[quote author="CroNiX" date="1357957909"]Yes, as I said that's a url. It starts with http. You need the local file path on the server (which is what that url is accessing). Code: /home/users/or/whatever/sincity/website_admin/upload/server/php/files See the examples in the docs for the directory helper. It's not using a url.[/quote]Many thanks. Got it working. Cheers |
Welcome Guest, Not a member yet? Register Sign In |