Clients

knowledge base  

 
Domain Registration Windows Hosting Plans Linux Hosting Plans
Control Panel View Server Features Online Order From
Knowledge Base Support Client Login

Select a Category

Domain Registration | Windows Hosting | Linux Hosting | Download

 

Download

Best Coding Practices

Optimising Codes

Optimising your server side scripts such as ASP and PHP is very important for better utilisation of server resources. Even a high end server can fail to deliver the speed and performance that you look for, if the codes are not optimised.

For ASP & MS Access 2000 Websites:

1. It is a good method to store connection string in a common file. This common file can be included as a header in all the pages, wherever it is required.

2. Do not use multiple recordsets in a single page. If your program requires mulitple recordsets in a single file, close the already opened recordsets before opening the new one. [ Use rs.close ]

3. Always close the connection at the end of each asp page. [ Use conn.close ]

4. Always use provider based or dsnless connection. DSN connections use direct system resources. Moreover, the website is not portable if a System DSN is used.

5. IMPORTANT : Avoid using multiple loops in a single pages. Most of the programmers make mistakes in handling loops thus the asp pages will not be executed after few hits.

6. Do not unnecessarily use asp pages. It is strongly adviced to keep the home page as ".html" and not as ".asp"

7. Access database has a very high restriction on simultaneous users. Hence, if your site receives higher number of hits, plan for migrating to MS SQL as Access cannot handled too many simultaneous users.

8. Table Size should be kept at minimum. Avoid opening multiple tables at a time. Moreover, avoid querying a single large table.

For PHP & My SQL:

1. It is a good method to store connection string in a common file. This common file can be included as a header in all the pages, wherever it is required.

2. IMPORTANT : Avoid using multiple loops in a single pages. Most of the programmers make mistakes in handling loops thus the asp pages will not be executed after few hits.

3. Do not unnecessarily use asp pages. It is strongly adviced to keep the home page as ".html" and not as ".php"

4. Table Size should be kept at minimum. Avoid opening multiple tables at a time. Moreover, avoid querying a single large table.

       
  Web Design  
    Standard & Flash, Data base and interactive, Ecommerce, Shopping Cart and Payment integration etc.  
       
  Graphic Design  
    Logo, Envolope, letterhead, Business Card, Banners, Brochures, Flyers, Pormotional materials, Package Design etc.  
       
  Multimedia  
    E-brochures, PPT Presentations, Corporate Presentations, CBT, Screen Savers etc.  
       
  3D Animation  
    3D Product modeling, Architectural walkthrough , 2D Animations etc.  
       
  Web Hosting  
    Domain registration, Windows & Linux hosting, Corporate email solutions.  
       
 
 
Request Free Quote
Submit a request online.We will give you a free Quote and timeline on your requirement.
 
 
       
    Brains Technologies
Kaloor, Cochin-17 INDIA.
Tel: +91 93 88628351
email: contact@brainsindia.com
 
   

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
 
                                                                                                 © Copyright Brains Technologies- India. All rights Reserved.