Jump to content

PHP processing files without extension


jona2402

Recommended Posts

New to PHP...

Using Apache 2.2.6

Have xhtml files with .html extension. These are mentioned in the vhost .conf file with no extension to use a specific function in a specific module. The module maps the file name to the actual file, reads it, searches for a specific node, processes the contents of the node and replaces the node with the results of its processing. eg, a request for "gallery" is received and the gallery.html file is processed.

When I load mod_php, all these requests cease to be processed and an empty document is returned. Is there a way to force PHP to only process files with a .php/.phtml extension and to leave the other files (specifically those with no extension) alone?

Link to comment
https://forums.phpfreaks.com/topic/224434-php-processing-files-without-extension/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.