HTML Category
The Power of CSS For Design
By trade I’m not a designer, I’m a programmer. There is a definite dichotomy between programming and design, however, the design layout still needs to be coded in a logical manner to make it scalable for easier maintenance in the future. Simply put, the more complex the design, the more time and care needs to be put into the planning of the design, but it doesn’t mean that the code has to be more complicated. Read the rest or post a comment »
A Different Approach to Parsing HTML as PHP
On occasion it’s necessary for me to process HTML files as PHP. Reasons vary, but usually it’s because the clients web site was originally set up as static HTML and we need to process dynamic content, but due to SEO reasons, we can’t change the file extensions.
Generally a simple .htaccess file can handle this process for you and make simple work of the informing the server to parse HTML as PHP. Some people complain of the load that this can put on the server, but I think this argument is unfounded.
What should be a simple solution, can often turn into an enormous problem. Things being what they are, we ran into a server where our simple two line .htaccess file failed to do the job. All manner of adjustments made between the .htaccess file, changes made by our server admin to the Apache httpd.conf file, all failed.
So in the event that these lines don’t work (while all of the Google results say that they do…)
