Bluehost.com Web Hosting $6.95

[Q] Best Practices Question - Directory Structures for WEB site dev using PHP

This is a discussion on [Q] Best Practices Question - Directory Structures for WEB site dev using PHP within the PHP General forums, part of the PHP Programming Forums category; Hi, I'm new to PHP and WEB site development, but have coded in C/C++, Java, and multiple shells ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-23-2003
Michael T. Peterson
 
Posts: n/a
Default [Q] Best Practices Question - Directory Structures for WEB site dev using PHP

Hi,

I'm new to PHP and WEB site development, but have coded in C/C++, Java, and
multiple shells for over 20 years. So far I've found this stuff really neat
(and challenging). Anyway, I have a few questions dealing with file
locations, [de facto] directory structures, etc., when designing a WEB Site
whose content will be managed, for the most part, using PHP. BTW, I've read
Welling and Thompson, a lot of the docs on www.zend.com, and various other
useful PHP web sites. I've also written some simple functions, played with
templates (inc smarty), etc. About the only info I've been unable to find
are suggestions as to how to layout the *.php files in a WEB Site.

I develop with Dreamweaver MX on Windows XP Pro using IIS. When complete, I
upload to my WEB host. On Linux, I use a text editor (Visual Slick Edit)
and Apache. Both systems have the latest stable MySQL and PHP releases.
Sources are managed with CVS.

1) How do experienced developers layout their [dev] directory hierarchy?
For example, is there an accepted place to put one's function libraries? On
IIS (Windows XP), the default directory structure is

c:\inetpub\
AdminScripts
iissamples
mailroot
Scripts
wwwroot\
myproject1
myproject2
...
myprojectN

where the myproject* directories are my current WEB Site designs.

2) When using CVS, I should think that the PHP files would be checked-out
into a directory that IS NOT in a [local] WEB Site directory (i.e., to avoid
littering the structure with CVS directories). When the files are ready to
be uploaded to WEB site they would then be exported into the WEB Site
directory for uploading. Is this how you guys do things?

If one can point me to docs/books/webs that cover these (and other similar
questions) I would be very grateful. Also, if you just want to tell me how
you do it, I would appreciate that very much.

Thanks, in advance.

Michael
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0