![]() |
PHP eval support in templates
I'd like to see support for evaluating php that's built in to the template for phpDig.
|
Here are two methods to include PHP in templates using XML-like tags.
|
I know a very good method, in which: You don't need to alter all the other search_functions.php files etc. but only need to make a .HTACCESS file and it will parse PHP into HTML documents! Sneaky....
Anyway here it is: Make a file name called .htaccess and add this code in it: <Files phpdig.html> ForceType application/x-httpd-php </Files> If you're using a different template than phpdig.html ,change the 'phpdig.html' into the file name (Only include for example template.html , not http://www.your_site.com/template.html) And upload the .htaccess file into the 'templates' directory, I've tried it and it worked! Cool! |
.htaccess
not working for me! |
All times are GMT -8. The time now is 12:07 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.