Crystal Reports – Heterogeneous databases: SQL Server, Oracle, Unidata, Btrieve, Ctree – tips for developer

April 16, 2008 – 9:33 pm

There are different categories of . If you look at the financial reporting – you see such nice instruments as FRx or internal of the (ReportWriter in the case of ). FRx has a link to or Solomon General Ledger (GL). is rather universal , which means that it doesn’t have special setup to be used for something specific, as in the case of financial . is the most on the market and it has . Multiple software vendors offer as the main : Microsoft, Best Software, Oracle to name a few.

Sometimes developers try to use Crystal directly to pull data from multiple - we understand the need to give you additional tips to increase Crystal . Also common case when should pull data from multiple . Assuming that you are creating on Windows platform - we recommend you to use as a database access tool.

1. Use Crystal when you have your query tuned – regardless how good is - it is - not querying environment. Tune your query first and be sure that you are pulling the right data.

2. Use SQL Server Linked . Use , such as , where you can create linked to Oracle, , , MS Access, Unidata, DB2, , Fox Pro, FileMaker Pro and other platforms.

3. Use Distributed Queries – in the case of SQL Server - research the possibilities with OPENQUERY, OPENROWSET clauses to connect to non-SQL Server linked .

4. Create - when you need parameters to be transferred to the - you need stored procedure. You need stored proc if temp tables are required to do intermediate job in your .

5. – when you have report based on the or stored proc - if you need to modify the - you don’t have to change the report - you change your / stored procedure.

6. Create to probe the data – again - we always recommend tuning your query and see that you are getting – in any case – is just a nice tool to show the results of your query.

Happy customizing, querying and designing! if you want us to do the job - give us a call 1-630-961-5918 or 1-866-528-0577! help@albaspectrum.com
About The Author

Andrew is Chief Technology Officer in Alba Spectrum Technologies ( http://www.albaspectrum.com )– USA nationwide , , Microsoft RMS customization company, serving clients in Chicago, Los Angeles, San Francisco, San Diego, Boston, New York, Houston, Dallas, Miami, Atlanta, Minneapolis, Seattle, Canada, UK, Australia, Germany, Russia, Brazil and having locations in multiple states and internationally, he is Great Plains Dexterity, SQL, C#.Net, and SDK developer.

akarasev@albaspectrum.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Issues When Upgrading to Citrix Metaframe 3.0 Presentation Server

April 16, 2008 – 9:32 pm

The article below lists issues we ran into when upgrading from Metaframe to Metaframe 3.0 Presentation .

Issue:

We installed a licensing server and then installed Metaframe 3.0 Enterprise on a 2003 server. Added this server to our farm and made the 3.0 server the Data Collector. Any time a user would click an icon on the the would blow up on the 3.0 server. This occurred on additional 3.0 that were brought up as long as they were . Changing the farm so were the fixed this issue. The event log logged this when the blew up ++ Runtime Library : Runtime Error

Solution:

I’m told that there is an issue in the that causes the 3.0 server acting as a data collector to blow up the . Our fix was to create a new . Create a new farm using the same name and republish all the applications. We then uninstalled and reinstalled Metaframe and pointed the to the new farm. Rather than an upgrade we rebuilt our entire farm into a clean Metaframe 3.0 . While rather extreme this did resolve the issue. We recreated our published applications by hand. You may find a tool for this here http://www.citrix4ge.de/ctxsdk/expimppa.htm

Issue:

When we performed an upgrade on a server from to Metaframe it only upgraded it to Advanced. When we used add/remove programs to add in the installation manager and the server stayed at advanced edition and never registered its proper edition with the . Thus users received errors that the system had reached its license logon limit.

Solution:

Open the management console. Right click the server and choose set edition type. Set it to enterprise then reboot the server TWICE. Check the startup licenses on the licensing server to see that your server is listed as enterprise. What bit us was the two reboots required. The system only asks for one but it took two for the server to register properly.

Issue:

Upon adding a Metaframe 3.0 to our farm changes could only be made to published applications if you pointed your Management Console at the new 3.0 . After the IMA blow up we removed all 3.0 from our farm only to find we could change no application.

Solution:

We had to add 3.0 back to the farm and then instruct admins to point consoles at the 3.0 server.
About The Author

John Gall is a full time IT Manager and IT Consultant in Minnesota. He runs several websites as a hobby featuring content similar to that in this article.
http://www.gallconsulting.com
http://www.sandalspictures.com
http://www.napavalleypictures.com
http://www.winesilove.com
http://www.sturgistravels.com
http://www.gallconsulting.com/blackhills

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

SSI: Why and How to Use Server Side Includes

April 16, 2008 – 9:30 pm

If you are a webmaster or a and have not yet used includes (), I am about to make your life soooo much easier. can save you a lot of time updating your site. Set them up right at the beginning and you will be forever grateful that somebody thought up .

In this article we will look at what is, why it makes life so easy, and exactly how to set up on your website…and then I’ll share two little tricks I’ve discovered.

What is ?

actually covers a number of features to improve your website. I am going to speak here of just one critical improvement, referred to as an “include” file.

Essentially, an “include” file is a separate file that your can include as if it was part of the page file. Let’s take a real-life example. My site at http://www.vitamin-supplements-store.net uses in a number of places.

If you are used to using FrontPage or have recently learned HTML, you probably assume that every is a single html file. The example above is actually five files. There is the main HTML file for the page. There is a (CSS) and there are three “include” files — one for the menu and two for the two across the bottom. I could have, perhaps even should have, used more “include” files, but you can be the judge when you’ve finished reading this article.

Why use ?

makes it easy to bring changes to your website. There are some changes you will need to make to every page or to every page in a specific section. Your website might start out with just 10 pages, and you might figure that it is no big deal to cut-and-paste a change to the 10 times.

But each time you add a page, you have to update that menu. And with each new page added, you have to paste one more time. When you reach 50 pages (Never thought your website would grow that big? You’re not alone.) it becomes very tedious to update.

For instance, when I wanted to add the logo and the link to the at http://www.thehappyguy.com, I had to change just one file, and — presto! — the change appeared on every page of the site bearing that . It was so very much easier than past updates before I began using .

There are two other benefits to “include” files. Because a single line of code replaces what might have been several dozen in each HTML file, your files are much smaller, taking less space on your server. And, because the “include” file has already been loaded with the first page a visitor sees, the next page is much quicker for visitors to load.

How to set up ?

You need three things to set up .

1. Configure your server for
2. Set up your “include” file
3. Call up your “include” file into your HTML file

First, you need your server configured for . Ask your web host if this has already been done. Also ask if it has been set up to parse .html extensions to read .

If your server has been set up for , you are one step closer. If it has also been set up to parse .html extensions to read , you are two steps closer.

Not all hosts support , but most do. If yours does, but it has not been set up for your account, look for the .htaccess file in your root directory (where your index.html or home page file is stored). In my experience, this is not usually viewable using an FTP process; you have to find it through your control panel.

The .htaccess file is a text file. If you do not already have an .htaccess file on your server, you can create one in NotePad or even in Word (just save it with a .txt extension), but whatever you do, make sure not to write over a .htaccess file already on your server. If it is already there, just add the following lines to the file, being careful not to erase anything that is already there:

AddType text/html .
AddHandler server-parsed .
Options Indexes FollowSymLinks Includes

So far, so good. But this will recognize only . files for includes, and you probably don’t want to change the .html extensions to . on all your pages, if for no other reason because it will mess up all your inbound links to those pages.

So add this line. In theory, it should be the second line, but careless me has gotten it to work at the end, too:

AddHandler server-parsed .html

Save the edited .htaccess file to the root directory of your server.

As an aside, there are several ways to configure your server for . This one has worked for me across several hosts.

So much for the techie stuff, now you need the second element: the “include” file itself. Suppose your “include” file is the . You don’t need “head” and “title” and “body” tags. Just type in your text and code just the way it would appear in your webpage. It’s that simple. Save it as an HTML file, and load it to your route directory or to its own directory.

All you need now, is to call up your in each file you want it to appear in. To do this, a simple line suffices where a whole column of code and text once stood.

Here is the line to place in your code:

This assumes that nav1.html is the name of the “include” file and that it is in the same directory as the page it is being inserted into. If you place the file into a directory called “nav”, you would have to include code like this in your file:

That’s all you really need to know. But here are a couple tricks that will make “includes” work even better for you.

Tip #1

You don’t need to stuff everything into a single file. What if some elements you want on some pages and others not? Let me offer two examples of situations that call for splitting the “include” file in two.

The first is on my vitamin site. Return to http://www.vitamin-supplements-store.net and look at the links across the bottom. The first row is typical website stuff: contact, privacy, etc., which one wants access to from every page of the site. The second is the links directory, which a webmaster does not typically want linked from every page. For example, see the bottom of my humor article at http://www.vitamin-supplements-store.net/articles/eggs.html. The row of links directory is not there.

The second example is this article on search engine tips: http://www.thehappyguy.com/SEO-tips.html. Notice again that there are two different navigation consoles. The first is generic to the site, the second is specific to that section of the site. So a second “include” file, using just one additional line of code, can provide interlinking for the section, without affecting other sections of the website. This is very handy for large sites.

Tip #2

You can also use an “include” file to hide some of your source code. I will show you a ridiculously simple way to do this.

There are at least two legitimate reasons why somebody might want to hide parts of their code. The most obvious would be if you are running a proprietary script. The second is if you are running a script that displays content, but shows up as a script in the source code. This was my challenge.

At the bottom of the at http://www.thehappyguy.com/self-actualization-articles.html, there is a “Happiness Quote of the Day”. In fact, it is a random quote that reloads when the page reloads. I had included the random-text script in the “include” file, but the search engines were seeing the script in the source code, not the text that human visitors were seeing. So I placed the script in its own “include” file, which I inserted like this into the main “include” file:

Now the search engines see the same things as humans see. Why would I care? Search engines visit more frequently pages that change more frequently. That does not mean the site will rank higher, unless frequent change is part of the search engine’s ranking algorithm, but it does mean that other changes will be indexed faster.

To sum up, “includes” can save you time and headaches when changes need to be made to your site, plus they reduce the file size and increase the loading time of your pages. Once you’ve set up the server to read , all you need to do is create an “include” file and call it up in your using one line of code.

I can hardly believe I wasted so much time cutting and pasting before I learned about . You won’t believe it either!
About The Author

David Leonhardt is a freelance writer, and an online and offline publicity specialist. Contact him at: mailto:info@thehappyguy.com
For a copy of Don’t Get Banned By The Search Engines:
http://www.thehappyguy.com/SEO.html
For a copy of Get In The News:
http://thehappyguy.com/publicity-self-promotion-report.html .
To promote your website with an ezine:
http://www.thehappyguy.com/ezines.html
Info@thehappyguy.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Time Server Atomic Clock Timing References

April 16, 2008 – 9:29 pm

are extremely complex pieces of equipment created to maintain highly accurate time. Most are so expensive and complex that they are only generally found in National or National . Commercial timing equipment is generally based on GPS or National Time and Frequency broadcasts. By using a relatively low-cost radio or GPS receiver highly accurate timing information can be received without the expense of installing a true atomic timepiece.

This article discusses a number of atomic timing references and how they can be used to provide synchronisation of computer equipment and networks.

National and frequency broadcasts transmit accurate time and date information from a radio transmitter. A number of and frequency broadcasts are available, such as: WWVB, DCF-77 and MSF-60. The time and frequency are referenced to a precise source. By utilising a relatively low-cost radio receiver PC and systems have access to precise timing information. Additionally, can generally obtain a good signal indoors close to the server making installation very straight-forward. However, have a and are generally only available to a .

The DCF77 time broadcast is generated from from Frankfurt, Central Germany. The transmission is a long-wave signal broadcast at 77.5 kHz. The transmitters are maintained by T-Systems, a division of . The time and frequency broadcast is referenced to precise located at the German (PTB) in Brunswick. The DCF-77 signal can be received using a low-cost radio receiver and when decoded provides a precise for computer time .

The MSF and frequency transmission is broadcast from Anthorn, Cumbria in the United Kingdom. The signal is broadcast as a long-wave at 60 kHz. The transmitted time and date information is referenced to sited at the UK National Physics Laboratory. The transmitters are maintained by VT Communications.

WWVB is the US National Time and Frequency radio broadcast. It is a 60 kHz transmission broadcast from Fort Collins, Colorado. The transmission is referenced to installed at the US National Institute of Standards and Technology (NIST). WWVB provides a time and frequency reference to within 100 microseconds of the correct time and has been in operation for 45 years.

The GPS system is a Global Positioning System intended for worldwide navigation. The GPS system consists of 24 satellites in high orbit. By utilising triangulation, the GPS system can provide highly accurate positioning information anywhere on Earth. In order to calculate position, each orbiting satellite has an on-board atomic clock . Atomic time is constantly transmitted from each satellite and is available to a GPS receiver. The GPS signal is available subscription-free anywhere on the face of the Earth. By utilising a low-cost GPS antenna and receiver accurate timing information can be made available to and computer time synchronisation systems. A GPS antenna does however need to be installed ideally on a rooftop with a good 360-degree view of the sky.

The Network Time Protocol (NTP) is the standard means of achieving network time synchronisation. NTP is used to distribute accurate time around the Internet and other computer networks. The standard distribution for LINUX\UNIX is available free-of-charge under the GNU public licence and provides reference clock drivers for many radio and GPS receivers. Radio and GPS receivers are available with serial or USB ports that can interface to a PC or NTP time server to provide an accurate external . Depending on time source, NTP can synchronise to within a few microseconds of the correct time. Depending on network traffic they can synchronise network time clients to within a few milliseconds.

To summarise, there are a number of national and global time and frequency references available for synchronising computers and computer networks. Many can provide synchronisation to within a few microseconds of the correct time. Utilising accurate radio or GPS timing references, precise time is freely available without the expense of installing an atomic time clock.
About The Author
David Evans is a highly experienced technical author who specialises in time server and synchronisation systems to ensure accurate network time. Click here to find out more about atomic clock and GPS systems.

http://www.timetools.co.uk/ntp-/gps-ntp-server-s5100.htm

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Microsoft CRM Integration with Lotus Domino email Server - overview for programmer

April 16, 2008 – 9:27 pm

CRM is in the mode and this CRM solution is using all the recent - 2000, Microsoft Exchange 2003/2000, Active Directory, etc. has connector to Microsoft Exchange to send and receive email from lead, opportunity, account, contact. There is competitor email server: Lotus Domino. Some large and middle , who decided to use - want to use Lotus Domino as their e-. In this we would like to give you top level technical overview.

* When emails are received in Lotus Domino, a trigger in Domino should check if email has a GUID in the header and, if so, should check on the object in MS CRM with this GUID. If the object is found in MS CRM, email activity should be created in CRM and be attached to the object.

* The is processed before delivery by a registered on (Inbox folder) and sent mail (Sent folder).

* The Purpose of the is to transfer a kernel of communications to MS CRM (the information in the received messages such as addressees, recipients, bodies of messages etc).

* For incoming messages, it is necessary to transfer the necessary message RFC-headings for an analysis by the . The analysis consists of checking the (CRM: {GUID}:MRC).

* For outgoing messages, the agent should modify the heading Subject by adding a similar line at the end of the existing data. In this case, the Outgoing Message Connector will carry out from MS CRM to Lotus Notes/Domino

* The carries out the communications with Web Services Front-end by means of asynchronous calls to a web-service. This will prevent a big number of blocking methods when processing messages and it will also allow reducing the load on the

* The Web Services Front end accepts the information and transfers it to a COM + Back end. The COM + Back end is composed of objects which carry out the communications with MS CRM using MS CRM SDK and direct access to MS CRM database

* The COM+ Back end consists of objects written in .NET C#. These objects contain methods for searching users in MS CRM, creation of Email Activity and queue updates, among others.

You can always have us to help you. Give us a call: USA: 1-866-528-0577, 1-630-961-5918, Europe: +49 231 4387600, help@albaspectrum.com
About The Author

Boris Makushkin and Andrew are consultants at Alba Spectrum Technologies ( http://www.albaspectrum.com ) , Great Plains, Navision, Microsoft RMS, Lotus Notes/Domino customization company, serving clients in Illinois, New York, Florida, Arizona, California, Minnesota, Virginia, Texas, Georgia, France, Canada, Germany, Australia, Mexico, Russia.

akarasev@albaspectrum.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Crystal Reports - Microsoft SQL Server

April 16, 2008 – 9:26 pm

is the leader for inexpensive and middle size SQL solutions. Plus it is now capable to serve large enterprise on . is the most on the market and it has . Multiple software vendors offer as the main : Microsoft, Best Software, Oracle to name a few.

Sometimes developers try to use Crystal directly to pull data from multiple - we understand the need to give you additional tips to increase Crystal . Also common case when should pull data from multiple . Assuming that you are creating on Windows platform - we recommend you to use as a database access tool.

1. Use Crystal when you have your query tuned – regardless how good is - it is - not querying environment. Tune your query first and be sure that you are pulling the right data.

2. Use SQL Server Linked . Use , such as , where you can create linked to Oracle, , , MS Access, Unidata, DB2 and other platforms.

3. Use Distributed Queries – in the case of SQL Server - research the possibilities with OPENQUERY, OPENROWSET clauses to connect to non-SQL Server linked .

4. Create - when you need parameters to be transferred to the - you need stored procedure. You need stored proc if temp tables are required to do intermediate job in your .

5. – when you have report based on the or stored proc - if you need to modify the - you don’t have to change the report - you change your / stored procedure.

6. Create to probe the data – again - we always recommend tuning your query and see that you are getting – in any case – is just a nice tool to show the results of your query.

Happy customizing, querying and designing! if you want us to do the job - give us a call 1-866-528-0577! help@albaspectrum.com
About The Author

Andrew is Chief Technology Officer in Alba Spectrum Technologies – USA nationwide , , Microsoft RMS customization company, based in Chicago, Los Angeles, San Francisco, San Diego, Boston, New York, Houston, Dallas, Miami, Atlanta, Minneapolis, Seattle, Canada, UK, Australia and having locations in multiple states and internationally (www.albaspectrum.com), he is Great Plains Dexterity, SQL, C#.Net, and SDK developer.

akarasev@albaspectrum.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Crystal Reports - Geterogeneus databases: SQL Server, Oracle, Unidata, Btrieve – tips for developer

April 16, 2008 – 9:24 pm

is the most on the market and it has . Multiple software vendors offer as the main : Microsoft, Best Software, Oracle to name a few.

Sometimes developers try to use Crystal directly to pull data from multiple - we understand the need to give you additional tips to increase Crystal . Also common case when should pull data from multiple . Assuming that you are creating on Windows platform - we recommend you to use as a database access tool.

1. Use Crystal when you have your query tuned – regardless how good is - it is - not querying environment. Tune your query first and be sure that you are pulling the right data.

2. Use SQL Server Linked . Use , such as , where you can create linked to Oracle, , , MS Access, Unidata, DB2 and other platforms.

3. Use Distributed Queries – in the case of SQL Server - research the possibilities with OPENQUERY, OPENROWSET clauses to connect to non-SQL Server linked .

4. Create - when you need parameters to be transferred to the - you need stored procedure. You need stored proc if temp tables are required to do intermediate job in your .

5. – when you have report based on the or stored proc - if you need to modify the - you don’t have to change the report - you change your / stored procedure.

6. Create to probe the data – again - we always recommend tuning your query and see that you are getting – in any case – is just a nice tool to show the results of your query.

Happy customizing, querying and designing! if you want us to do the job - give us a call 1-866-528-0577! help@albaspectrum.com
About The Author

Andrew is Chief Technology Officer in Alba Spectrum Technologies – USA nationwide , , Microsoft RMS customization company, based in Chicago, Los Angeles, San Francisco, San Diego, Boston, New York, Houston, Dallas, Miami, Atlanta, Minneapolis, Seattle, Canada, UK, Australia and having locations in multiple states and internationally (www.albaspectrum.com), he is Great Plains Dexterity, SQL, C#.Net, and SDK developer.
akarasev@albaspectrum.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Ideas For VMWare ESX Server Virtual Servers

April 16, 2008 – 9:23 pm

Ideas For VMWare ESX Server Virtual

If your like many IT Administrators or Managers you may be wanting to use VMWare ESX Server for virtualizing but may meet from others in your department or . Many people are gun-shy on putting business on VMWare Virtual and may resist if you try to go virtualizing these applications in the face of such . We found a successful introduction to VMWare ESX and virtual could be done by choosing to virtualize older systems and utilize VMWare initially to perform other functions besides replacing for .

Consolidate older systems and stand alone processes: We had many large older that needed to be running but were not worthy of . Everyone in IT wanted these boxes out of the but the data needed to be available in case of an audit or historical need. Some systems performed low level processing on a scheduled basis. We imaged systems to VMWare ESX virtual and an in place upgrade to get them booting again. We were able to run eight on a two processor Dell .

Use VMWare for a Development and Environment: Today most organizations are moving to a structure where they utilize development and in addition to their production . VMWare Virtual running on ESX make great to use Dev and without adding a bunch of to your data center.

Using Metaframe Installation Manager? Use VMWare Virtual for your . If you use Installation Manager for Metaframe Enterprise you will need a clean system running the same as your server. Using VMWare Virtual as your allows you to keep a clean without adding hardware and rebuilding in your data center.

We used the ideas above to get value from VMWare ESX Server and Virtual in a “safe” environment. This provided a proof of concept for the gun-shy doubters and has paved the way for us to use VMWare ESX Server in more critical .
About The Author

John Gall is an internet hobbiest with many web sites his most recent project is http://www.whoinventedmotorcycle.com.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

What the Heck is Server Side HTML?

April 16, 2008 – 9:22 pm

If you’re stuck in the and are still editing the pages of your web site by hand, there’s an easy way to change the look of your web site on a moment’s notice, by editing only one file.

I know, there are all kinds of brand new blogging , forums, CMSes, and other stuff to make your site easy to update. But on the other hand there are just as many desktop-based programs that churn out thousands of for you to put on your server.

What do you do when you have to change these files later? Edit them by hand, one at a time? I don’t think so.

You can save a lot of the road using Includes ().

The point of using HTML is so you can include other pages on your regular , things like a list of links you regularly update OR a .

Try it out. Take one of those static on your site and rename it to something like “filename.” instead of “filename.html.” All we’ve done is changed the “html” at the end to “.”

Now, take the part of that site you want to appear on every page (the header graphic, link sidebar, etc.), that part and save it into a file named “header..” REMOVE that text from your filename. file.

Now, in the filename. file, place this at the top:

[!–#include virtual=”/header.”–]

(IMPORTANT: Replace the [ and ] above with the greater-than and less-than “HTML” … hold shift and press the “” and “period” keys on your keyboard.)

Upload filename. and header. to your server and load header.. If everything went well, the page should look exactly as it did before. The only difference is: you only need that one “include virtual” line to show the top of the page, AND to change that top HTML later on all you have to do is edit header..

If you had this sort of code on 20,000 pages of your web site all you’d have to do was edit that ONE header. file, and your entire site would change as soon as you uploaded that header. file.

Not bad, huh?

Now do the same thing with the bottom of your web site, only save the new file as footer. and at the bottom of filename. place this:

[!–#include virtual=”/header.”–]

Again, not that exact code… replace the hard- with HTML .

But wait, your fancy page generator software will only save the files as .HTM or .HTML, and specifically links to certain files. You can’t just go in and edit everything to link to . files.

Htaccess to the rescue.

Place this in a new text file:

AddHandler server-parsed . .html .htm

Save that as “htaccess.txt”, upload to your web server, and rename that htaccess.txt file you just uploaded to “.htaccess”, WITH the dot in front. Now try renaming filename. to filename.html. Guess what, your includes now work on .html and .htm files too.

Hopefully your page generator software allows you to edit the template and place these server-side include tags in there. (If not, look into a program called BKReplaceEm.) Don’t worry, the pages will look funny and broken on your hard drive but once they are sitting on your web server everything will turn out ok.

If you find yourself doing a bunch of repetitive HTML editing it might be time to look into Includes to make instant changes.
About The Author

Robert Plank

You know what else, you can use a similar bit of HTACCESS code to make PHP act as HTML files. That, plus 35 more “Why Didn’t I Think of Those” secrets are revealed in my upcoming ebook: http://www.affiliatebattleplan.com

articles@jumpx.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • Furl
  • StumbleUpon
  • Technorati