|
09-13-2003, 11:14 PM | #1 |
Green Mole
Join Date: Sep 2003
Posts: 1
|
PHP eval support in templates
I'd like to see support for evaluating php that's built in to the template for phpDig.
|
09-14-2003, 09:46 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Here are two methods to include PHP in templates using XML-like tags.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
10-21-2003, 08:16 PM | #3 |
Former Member
Join Date: Sep 2003
Posts: 34
|
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! |
12-08-2003, 11:37 PM | #4 |
Green Mole
Join Date: Dec 2003
Location: Mumbai, India
Posts: 1
|
.htaccess
not working for me! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP includes in templates | gman | How-to Forum | 14 | 12-03-2004 11:02 PM |
Problems with PHP in templates with version 1.8.3 | guynemer | How-to Forum | 21 | 09-23-2004 01:02 AM |
Unicode support & PHP...ironic? | viclee8888 | How-to Forum | 1 | 04-15-2004 02:51 PM |
Using PHP include in templates | sid | How-to Forum | 3 | 11-23-2003 07:06 AM |
Templates - cannot get index.php to display different one | jirving | How-to Forum | 9 | 09-29-2003 06:57 AM |