Results 1 to 3 of 3

Thread: How to manage and organize the web application in appropriate way

  1. #1
    Join Date
    Dec 2011
    Posts
    70

    How to manage and organize the web application in appropriate way

    Hi guys
    I am a small time developer and I need a bit help from you guys . Actually the thing is I need to know how can I structure my web directory in a correct way so there I wont find any trouble . now my way of work is that the main page goes to the root directory and the included file stays in the include folder . but I think that is little bit messed up and don’t know what to do. The way I structure the file is

    PHP Code:
    <?php include "includes/includes.php";?>
    <?php 
    include "includes/header.php";?>
    Body
    <?php include "includes/footer.php";?>
    So guys what do you suggest for this . is the any way to make it simple , the structure in general plus in queries.php I would be really appreciating this thanks in advance

  2. #2
    Join Date
    Nov 2010
    Posts
    73

    Re: How to manage and organize the web application in appropriate way

    If you ask me, I myself working on the project and use nearly about hundred of PHP files which I think will reach about thousands of file at the end of the works and this all time I just used the include just two or three times . for me the most important thing is __autoload function . this function allow you to write the class name as a argument and you write logic to include the appropriate file containing that class

    With having all the code in the class , naming the file with the class after that the namespacing the classes to equal the folder structure and this becomes a very unimportant procedure .i will advise you to make use of the the absolute path in place of the relative path. And if you familiar with the relative path on the root of folder of your site, then you can familiar with the absolute path by adding with the $_SERVER['DOCUMENT_ROOT'] I hope this will help you

  3. #3
    Join Date
    Jan 2011
    Posts
    356

    Re: How to manage and organize the web application in appropriate way

    This is how the autoloading looks like
    PHP Code:
    /root
        
    /App
            
    /Page
                Standard
    .php
                Advanced
    .php
            Application
    .php
            Page
    .php
            User
    .php 
    Autoloading works on the Object oriented based system , see th e Zend Framework you will get the idea of how this works better as it the lot of information on this .

Similar Threads

  1. How to manage application panes in Samsung Galaxy Note.
    By Drew barry in forum Portable Devices
    Replies: 6
    Last Post: 28-12-2011, 01:21 AM
  2. Organize photo in PC but cannot organize album on Nokia N8
    By McKenzie! in forum Portable Devices
    Replies: 5
    Last Post: 26-09-2011, 12:24 AM
  3. How to organize kindle in a better way
    By Carita Carlos in forum Portable Devices
    Replies: 6
    Last Post: 08-07-2011, 10:51 PM
  4. Application to manage SMS on the iphone
    By KALIDA in forum Portable Devices
    Replies: 4
    Last Post: 12-04-2010, 06:40 PM
  5. Organize and Manage Music Collection With TagScanner
    By Damien25 in forum Tips & Tweaks
    Replies: 0
    Last Post: 29-12-2008, 05:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,899,013.27494 seconds with 17 queries