Web Site Directory Layout
Web Site Directory Layout
am 26.09.2009 00:50:34 von Caner Bulut
------=_NextPart_000_0009_01CA3E4B.BDD6F110
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi All,
Is there a stable or standart directory layout for PHP project (like web
sites)?.
Example;
index.php
img/
css/
js/
lib/
doc/
tools/
Thanks.
------=_NextPart_000_0009_01CA3E4B.BDD6F110--
Re: Web Site Directory Layout
am 26.09.2009 01:18:52 von Phpster
On Sep 25, 2009, at 6:50 PM, "Caner Bulut" wrote:
> Hi All,
>
>
>
> Is there a stable or standart directory layout for PHP project (like
> web
> sites)?.
>
>
>
> Example;
>
>
>
> index.php
>
> img/
>
> css/
>
> js/
>
> lib/
>
> doc/
>
> tools/
>
>
>
> Thanks.
It depends. Using of the many frameworks will force you to userheir
layout. If you are coding your own site without one, the you can use
whatever you want.
Thanks
Bastien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Web Site Directory Layout
am 26.09.2009 01:21:45 von Caner Bulut
Thanks Bastien for your advice,
But i still waiting some more advice from experienced developers, maybe this
is related about security and directory permissions?
Thanks.
-----Original Message-----
From: Phpster [mailto:phpster@gmail.com]
Sent: Saturday, September 26, 2009 2:19 AM
To: Caner Bulut
Cc: ;
Subject: Re: [PHP] Web Site Directory Layout
On Sep 25, 2009, at 6:50 PM, "Caner Bulut" wrote:
> Hi All,
>
>
>
> Is there a stable or standart directory layout for PHP project (like
> web
> sites)?.
>
>
>
> Example;
>
>
>
> index.php
>
> img/
>
> css/
>
> js/
>
> lib/
>
> doc/
>
> tools/
>
>
>
> Thanks.
It depends. Using of the many frameworks will force you to userheir
layout. If you are coding your own site without one, the you can use
whatever you want.
Thanks
Bastien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Web Site Directory Layout
am 26.09.2009 01:28:02 von List Manager
Caner Bulut wrote:
> Hi All,
>
> Is there a stable or standard directory layout for PHP project (like web
> sites)?.
>
> Example;
>
> index.php
> img/
> css/
> js/
> lib/
> doc/
> tools/
>
> Thanks.
>
Here are a few references that I found with a quick G search
http://www.shorewalker.com/blog/naming_conventions.html
http://www.haas.ca/Intranet/Naming_Conventions.cfm
http://www.llslim.com/users/slim/blog/2009/directory-structu re-and-naming-conventions-web-development
http://lvsonline.com/online-website-class/?page_id=15
http://www.ryerson.ca/cmssupport/standards/Ryerson_guideline s_naming_conventions_version2.0.pdf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Web Site Directory Layout
am 26.09.2009 01:30:11 von Daniel Brown
On Fri, Sep 25, 2009, Caner Bulut wrote:
>
> Is there a stable or standart directory layout for PHP project (like web sites)?.
The very plain, simple answer is: no. There are similarities
between projects, and common, logical reasons for doing them.... but
nothing that would quite earn the description "standard." It's what
makes sense to you, and what you think will make sense to future
developers who will inherit your project.
--
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Web Site Directory Layout
am 26.09.2009 01:44:22 von Daniel Brown
On Fri, Sep 25, 2009 at 19:30, Caner Bulut wrote:
>
> I will be out of office between 18th - 28th of June.
That's fantastic. Have a nice ten-day vacation nine months from
now. Thanks for letting us know so far in advance! ;-P
--
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Web Site Directory Layout
am 26.09.2009 04:26:14 von Robert Cummings
Caner Bulut wrote:
> Hi All,
>
> Is there a stable or standart directory layout for PHP project (like web
> sites)?.
>
> Example;
>
> index.php
> img/
> css/
> js/
> lib/
> doc/
> tools/
>
> Thanks.
There's no standard. My advice is to use easily identifiable names. The
above are quite obbvious. My own preference though is to not shorten
names. For instance, I would use the following in place of what you have
provided as examples:
index.php
images/
css/
javascript/
lib/
documents/
tools/
That's just personal preference though :)
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Web Site Directory Layout
am 26.09.2009 10:38:26 von Ashley Sheridan
On Fri, 2009-09-25 at 22:26 -0400, Robert Cummings wrote:
> Caner Bulut wrote:
> > Hi All,
> >
> > Is there a stable or standart directory layout for PHP project (like web
> > sites)?.
> >
> > Example;
> >
> > index.php
> > img/
> > css/
> > js/
> > lib/
> > doc/
> > tools/
> >
> > Thanks.
>
> There's no standard. My advice is to use easily identifiable names. The
> above are quite obbvious. My own preference though is to not shorten
> names. For instance, I would use the following in place of what you have
> provided as examples:
>
> index.php
> images/
> css/
> javascript/
> lib/
> documents/
> tools/
>
> That's just personal preference though :)
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>
I tend to usually go with the following, using what fits with the
project:
index.php
styles/
images/
scripts/
includes/
sometimes I might add directories where it makes sense to, other times
I'll compartmentalise the existing directories further. There's not any
standard, but I think if you yourself decide on some sort of convention
you will use that makes sense to you, it makes things a lot easier in
the long run.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Web Site Directory Layout
am 26.09.2009 13:34:37 von daniel danon
--001636ed6e4914329a047479737b
Content-Type: text/plain; charset=UTF-8
There is no standard for that - Its your choice,
I usually use something like
index.php
configuration.php
template/
template/NAME/template.html
template/NAME/template.css
template/NAME/images/ ....
modules/
modules/connection/MySQL.php
etc.
On Sat, Sep 26, 2009 at 1:50 AM, Caner Bulut wrote:
> Hi All,
>
>
>
> Is there a stable or standart directory layout for PHP project (like web
> sites)?.
>
>
>
> Example;
>
>
>
> index.php
>
> img/
>
> css/
>
> js/
>
> lib/
>
> doc/
>
> tools/
>
>
>
> Thanks.
>
>
>
>
>
>
--
Use ROT26 for best security
--001636ed6e4914329a047479737b--
RE: Web Site Directory Layout
am 26.09.2009 19:13:31 von Caner Bulut
------=_NextPart_000_0013_01CA3EE5.D20A8C60
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
Thanks for help.
=20
Caner.
=20
_____ =20
From: ãðéà=EC ãðåï [mailto:danondaniel@gmail.com]=20
Sent: Saturday, September 26, 2009 2:35 PM
To: Caner Bulut
Cc: php-general@lists.php.net
Subject: Re: [PHP] Web Site Directory Layout
=20
There is no standard for that - Its your choice,
I usually use something like
index.php
configuration.php
template/
template/NAME/template.html
template/NAME/template.css
template/NAME/images/ ....
modules/
modules/connection/MySQL.php
etc.
On Sat, Sep 26, 2009 at 1:50 AM, Caner Bulut wrote:
Hi All,
Is there a stable or standart directory layout for PHP project (like web
sites)?.
Example;
index.php
img/
css/
js/
lib/
doc/
tools/
Thanks.
--=20
Use ROT26 for best security
------=_NextPart_000_0013_01CA3EE5.D20A8C60--
Re: Web Site Directory Layout
am 28.09.2009 01:06:34 von George Langley
--Apple-Mail-2-907687603
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
On 26-Sep-09, at 2:38 AM, Ashley Sheridan wrote:
>
> I tend to usually go with the following, using what fits with the
> project:
>
> index.php
> styles/
> images/
> scripts/
> includes/
---------------
Add files/ for any download-able files.
Then for multi-lingual projects, I'll add a content/[language]/
structure, to put my content php files in, while leaving the
structural php files on the root. User preferences and cookies form
the path to grab the content, but this way you get similar (and
shorter) URLs.
George Langley
Multimedia Developer
www.georgelangley.ca
--Apple-Mail-2-907687603--