Monthly Archives: August 2010

htaccess to deny access, except for includes

It’s usually a bad idea to allow php include files to be directly accessed. My general method is to either declare a constant in the index.php and check for that constant in the included file or make sure that the … Continue reading

Posted in Programming | Tagged , | 2 Comments

Dynamically link to CSS with JavaScript

Needed a way to add a CSS file with JavaScript, so I went out a-Googling like I normally do.  Problem is everything I found either worked in Internet Explorer and not in FireFox or the other way around.  Nothing I … Continue reading

Posted in Internet, Programming | Tagged , | Leave a comment