Filed under: php
go to installed folder of dreamweaver->configuration->document
types->MMDocumentTypes.xml
find “PHP_MySQL” change parameter
winfileextension ->add ‘ctp,thtml’ after ‘php,php3,php4,php5′ parameter look
like this “php,php3,php4,php5,ctp,thtml”
macfileextension->add ‘ctp,thtml’ after ‘php,php3,php4,php5′ parameter look
like this “php,php3,php4,php5,ctp,thtml”
open Extensions.txt in configuration folder
find “All Documents” add “CTP,THTML” before “All Documents”
save it.
Enjoy
Filed under: 1
.htaccess or search engine friendly URL.htaccess is the filename of a special configuration file that provides a number of directives (commands) for controlling and configuring the Apache Web Server, and also to control its many modules like mod_rewrite (for htaccess rewrite), mod_alias (for htaccess redirects), and mod_ssl. Htaccess allows for decentralized management of configuration when placed inside the web tree. Htaccess is sometimes called: “HyperText Access”because one of the main functions of Htaccess files are to control access of HTTP (HyperText Transfer Protocol), which we know as the WWW. Htaccess is a very ancient configuration file, and is also one of the most powerful configuration files you will ever come across. |
|
The Apache Web server provides a feature called .htaccess file, which provides commands to control a Web site. This file is simply a text file containing Apache directives. Those directives apply to the documents in the directory where the file is located, and to all subdirectories under it as well. Other .htaccess files in subdirectories may change or nullify the effects of those in parent directories. You have to be careful when editing .htaccess files, as a small mistake can make your Web site stop working. You should immediately test the site to be sure it works.
.htacce mostly uses for the extension hidding for example if websites are running on php and developer are not want to display .php extension then it is useful to use .htaccess file and make it as directory structure or you can also display as .html or .hml .htm or .html file are search engine friendly so it is useful for SEO working |
|
Sometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with a .htaccess file containing the following lines: RewriteEngine On RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] Please, note that the .htaccess should be located in the web site main folder. In case you wish to force HTTPS for a particular folder you can use: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} somefolder RewriteRule ^(.*)$ https://www.domain.com/somefolder/$1 [R,L]
The .htaccess file should be placed in the folder where you need to force HTTPS. |
|
Here are the most notable and useful .htaccess examples… Custom error pagesThe most common errors are 404 (Not Found) and 500 (Internal Server Error). Design your custom Web pages for these errors (you aren’t limited to these errors, you can create an error page for each and every error). Add the following commands to your .htaccess file… RewriteEngine On ErrorDocument 404 /404.html |
RedirectsYou can use .htaccess file to redirect any request for a specific page to a new page… Redirect /domain/old.html http://site.com/new.html
Server-side redirects are very useful for shortening affiliate links. Your visitors won’t be turned off by long links that are obviously affiliate links. For example, to create a redirect at the URL: |
Redirecting domain.com to www.domain.comIf search engines find both www and non-www links from other sites to your site, they may treat http://domain.com and http://www.domain.com as two different websites with the same content. This means that your site can be penalized for duplicate content. Many experts recommend to set up a 301 redirect (permanent redirect) from YourSite.com to www.domain.com… RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com [nc] RewriteRule (.*) http://www.domain.com/$1 [R=301,L] Replace “domain.com” with your real domain name. |
|
The .htaccess file is very obscure and extremely useful when used properly. The above htaccess examples cover only a few possible uses of this powerful tool. For more information, see… |
Filed under: 1
|
|
| How to Install SQL Server 2005 – A Quick Guide |
![]() |
|
Purpose: To describe how to perform a basic installation of SQL Server 2005. Version Information: Although this document addresses SQL Server 2005 Developer Edition, the instructions are very similar or the same for other editions of SQL Server 2005. Important Notes: Before installing SQL Server 2005, SQL Server 2000 databases software should be completely un-installed through the Control Panel, UNLESS there is a technical requirement for it to exist on the same machine. |
![]() |
|
Although SQL Server 2000 and 2005 can exist side by side on the same machine, they have to be installed as separate named instances. This document does not attempt to address the details of SQL Server named instances – if in doubt, consult the DBA for the project for which the installation is being performed. Should a user require SQL Server 2000 AFTER SQL Server 2005 has been installed, it can be installed as a separate named instance, however a check should be made to ensure that any critical applications that require SQL Server 2000 are capable of supporting named instances – not all are. |
| 1. Insert the DVD into the DVD drive and double-click on the icon: |
![]() |
| 2. The installation screen should appear: |
![]() |
|
For most installations, if installing on standard 32 bit Windows XP Professional, click on the x86-based operating systems option. |
| 3. Click on Server components, tools, Books online and samples: |
![]() |
|
4. Read the terms and conditions of the license agreement and click the check box to accept them: |
![]() |
| Then click Next. |
| 5. The Installing Prerequisites screen appears: |
![]() |
|
Click on the Install button and wait whilst the system components are configured. This may take 10-20 seconds. |
| 6. Once the prerequisites are installed, click on the Next: |
![]() |
|
7. Wait for a few seconds for the following screen to appear, and then click on Next: |
![]() |
| 8. The System Configuration Check screen appears: |
![]() |
| If the configuration check completes successfully (Success appears in the top panel, all ticks in the Details panel), click on Next. |
| 9. Fill in the Registration Information details: |
![]() |
| Click on Next. |
| 10. Select the components to install: |
![]() |
|
Note that the components selected in the screen shot above are the most common components that will be needed for most developers and development DBAs. However, if another component such as Analysis Services is needed, it can be added easily afterwards by re-inserting the installation DVD and re-running the setup program. Click on the Advanced button to open up further options. |
| 11. The advanced Features Selection screen opens: |
![]() |
|
IMPORTANT NOTE path or the Developer Edition installation, unless your organisation has a standard which is different. If in doubt, check an existing PC or server at your site. Click on Next. |
| 12. Select the Default instance: |
![]() |
|
IMPORTANT NOTE that there is another, default instance of SQL Server 2000 or SQL Server 2005 already installed on this machine. In this case, consult the DBA for the project as it may not be necessary or desirable to re-install the database components. Click on Next. |
| 13. Select the radio button “Use the built-in System account”: |
![]() |
|
The first step will change the Windows account under which the SQL Server service executes to the Local System account. In a production environment or certain development environments, it may be desirable to change this to a domain user account, but this is not usually necessary for local developer installations. Note that the service account settings can be changed through the Services applet in the Control Panel at any point after installation, however SQL Server will require re-starting in order for these changes to take effect. Click on Next. |
|
14. Change Authentication Mode to Mixed Mode and set a password for the sa logon. The user’s NT logon name could be used as an initial password, but note that whatever is used, it should NOT be the same for each machine as the sa account gives sysadmin privileges to any user who uses it: |
![]() |
| Click on Next. |
|
15. Keep the default collation settings, UNLESS the DBA for the project specifies that they should be changed. Be aware that certain applications require non-default settings: |
| Click on Next. |
|
16. Select Error Reporting and Usage options – it does not matter what these are set to, as they are completely at your discretion: |
![]() |
| Click on Next. |
| 17. The pre-installation screen will now appear: |
![]() |
| Click on Install. |
|
18. The Setup Progress screen will appear, inform
|
![]() |
|
This step ususally takes 10-30 minutes, but requires no user intervention – so now’s a good time to take a break and make some coffee. |
| 19. The Setup steps have completed: |
![]() |
| Click on Next. |
| 20. The “Completing Microsoft SQL Server 2005 Setup” screen will now appear: |
![]() |
|
If you only want the database server to be accessible from the machine on which it is installed, click on Finish. installation is now complete. However, if you wish the database server to be accessible from other machines, click on the Surface Area Configuration tool link. |
| 21. The “Help Protect Your SQL Server” screen will appear: |
![]() |
| Click on the Surface Area Configuration for Services and Connections link. |
| 22. The SQL Server 2005 Surface Area Configuration screen will appear: |
![]() |
|
Click on the Remote Connections node in the left hand tree pane, then click on Local and remote connections. only is selected and is usually sufficient in most development environments, but if you suspect that you may need SQL Server 2005 to host legacy applications which require support for the named pipes SQL Server communication protocol, click on “Using TCP/IP and Named Pipes”. If in doubt, consult the DBA for the project. In addition, if you wish this installation of SQL Server to automatically announce itself on the network to automatic database server directory queries, click on the SQL Server Browser Service, set the Startup type to ‘Automatic”, click on “Apply”, then click on the Start button.
Click on OK, and then close the “Help Protect Your SQL Server” screen. on the “Completing Microsoft SQL Server 2005 Setup” screen. SQL Server 2005 setup is now complete. |
![]() |
| Top of Page |
























