Like I said before, it is considered very bad practice to list the contents
of a directory on your server and you should not do it. If you really need a
way to list the contents, its very simple to create a PHP script to read the
contents of a directory and list just the contents

On Tue, Jan 18, 2011 at 1:17 PM, Cornelius Parkin <
cornelius.par...@gmail.com> wrote:

> Hi
>
> It works if I do that, I can for example access
> http://symfonyproject.localhost/images/image.jpg<http://symfonyproject.localhost/custom.php>without
>  a problem, but let's say there are 10 images and I want to list all
> 10 images, accessing just 
> http://symfonyproject.localhost/images<http://symfonyproject.localhost/custom.php>gives
>  an internal 500 server error. I need to allow all files in a directory
> to list. Is there a way to do this?
>
> Regards
> CAP
>
>
> On Tue, Jan 18, 2011 at 12:48 PM, Gareth McCumskey 
> <gmccums...@gmail.com>wrote:
>
>> So why not just use the scripts directly? If one of the non-symfony
>> scripts you want to use is called custom.php put it into web and then call
>> it as http://symfonyproject.localhost/custom.php
>>
>> On Tue, Jan 18, 2011 at 12:32 PM, Cornelius Parkin <
>> cornelius.par...@gmail.com> wrote:
>>
>>> Hi
>>>
>>> Thanks for responding...
>>>
>>> Basically we have a few files that we need to make available within the
>>> same web application for Google harvesting. The application is stored as a
>>> unit in SVN, so we do not want to split the files into a non-symfony,
>>> non-versioned folder.
>>>
>>> Thus, I am not sure if the web folder is the right place but it makes the
>>> most sense to me because we are making the files available on the web
>>> through direct access and because of security reasons.
>>>
>>> Thus, basically I want to be able to list the files in the directory
>>> http://symfonyproject.localhost/abstract but when calling that url it is
>>> giving a 500 internal server error.
>>>
>>> Regards
>>> CAP
>>>
>>> On Tue, Jan 18, 2011 at 11:46 AM, Gareth McCumskey <gmccums...@gmail.com
>>> > wrote:
>>>
>>>> My first question is why you would want to? The web folder is meant to
>>>> store only your app assets such as images, css files and javascript files
>>>> for example.
>>>>
>>>> On Tue, Jan 18, 2011 at 11:02 AM, corneliusparkin <
>>>> cornelius.par...@gmail.com> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> Hope someone can help...
>>>>>
>>>>> I have a Symfony project which contains a folder web/abstracts. I
>>>>> would like to be able to access this folder directly with
>>>>> http://symfonyapp.localhost/abstracts/. When doing this, I receive an
>>>>> internal 500 server error.
>>>>>
>>>>> Please let me know if you have a solution for this.
>>>>>
>>>>> Thanks in advance...
>>>>>
>>>>> Regards
>>>>> CAP
>>>>>
>>>>> --
>>>>> If you want to report a vulnerability issue on symfony, please send it
>>>>> to security at symfony-project.com
>>>>>
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "symfony users" group.
>>>>> To post to this group, send email to symfony-users@googlegroups.com
>>>>> To unsubscribe from this group, send email to
>>>>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/symfony-users?hl=en
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Gareth McCumskey
>>>> http://garethmccumskey.blogspot.com
>>>> twitter: @garethmcc
>>>> identi.ca: @garethmcc
>>>>
>>>>  --
>>>> If you want to report a vulnerability issue on symfony, please send it
>>>> to security at symfony-project.com
>>>>
>>>> You received this message because you are subscribed to the Google
>>>> Groups "symfony users" group.
>>>> To post to this group, send email to symfony-users@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/symfony-users?hl=en
>>>>
>>>
>>>
>>>
>>> --
>>> Warm Regards
>>>
>>> C.A.Parkin
>>>
>>> *~"When you innovate, you've got to be prepared for everyone telling you
>>> you're nuts" - Larry Ellison~*
>>>
>>> --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony users" group.
>>> To post to this group, send email to symfony-users@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>
>>
>>
>> --
>> Gareth McCumskey
>> http://garethmccumskey.blogspot.com
>> twitter: @garethmcc
>> identi.ca: @garethmcc
>>
>>  --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Warm Regards
>
> C.A.Parkin
>
> *~"When you innovate, you've got to be prepared for everyone telling you
> you're nuts" - Larry Ellison~*
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
identi.ca: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to