Skip to content

Tag: php

Using PHP as template language

Edit: Great points all around, dedicated templating language is obviously the way to go. Thanks! I wrote up this quick class to do templating via PHP — I was wondering if this is easily exploitable …

Creating an XML sitemap with PHP

I’m trying to create a sitemap that will automatically update. I’ve done something similiar with my RSS feed, but this sitemap refuses to work. You can view it live at http://designdeluge.com/sitemap….

PHP file_exists and wildcard

Is there a way to write the PHP file_exists function so that it searches a directory for a file with an arbitrary extension. For instance, suppose I knew that a file were called “hello”, but I didn’t know the extension, how would I write a function that searched for a file called hello.* and…

What is mod_php?

While going through a Zend tutorial, I came across the following statement: Note that the php_flag settings in .htaccess only work if you are using mod_php. Can someone explain what that means? Answer mod_php means PHP, as an Apache module. Basically, when loading mod_php as an Apache module, it allows Apache…