iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-24-2008, 11:59 AM
kgun's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 5,723
kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10
Default What is this: phtml and .htaccess?

I downloaded code from a site with the following .htaccess code:

# For "YOURDOCROOT", substitute your document root. php_value include_path
# ".:/usr/lib/php:/usr/local/lib/php:YOURDOCROOT/run/Lib/php" php_value
# log_errors 1 AddType application/x-httpd-php .php .phtml DirectoryIndex index.phtml index.html
  1. What is this?
  2. File type phtml
  3. index.phtml "Can't find a valid editior for this file extension" Dreamweaver message when I click the file.
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 10:50 PM
WebProWorld New Member
 
Join Date: Feb 2008
Location: Glasgow
Posts: 10
able RepRank 0
Default Re: What is this: phtml and .htaccess?

1) It's just a way to setup files to be included by the app. It should read something like:

php_value include_path ".:/usr/lib/php:/usr/local/lib/php:YOURDOCROOT/run/Lib/php"
php_value log_errors 1
AddType application/x-httpd-php .php .phtml DirectoryIndex index.phtml index.html

Change YOURDOCROOT in the above, to the root directory of the site you are putting the app on

2) It's a less common name for .php files

3) You can go into windows and add .phtml as a filetype to be edited with dreamweaver, or just rename it to .php while editing, and rename after.
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 09:16 AM
kgun's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 5,723
kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10
Default Re: What is this: phtml and .htaccess?

Quote:
Originally Posted by able View Post
It's just a way to setup files to be included by the app. It should read something like:
That was what l thought, comparabple to a good old DOS Bat file. Very nice feature. Will use that on my sites.

Quote:
Originally Posted by able View Post
2) It's a less common name for .php files

3) You can go into windows and add .phtml as a filetype to be edited with dreamweaver, or just rename it to .php while editing, and rename after.
That was again what I expected, but would not continue on the project
  1. Main Page - Ajax Patterns
  2. Michael Mahemoff Homepage - Software, Psychology, HCI, Patterns
  3. Ajax Demos Illustrating Patterns @ AjaxPatterns.org Ajax Demos and code download
before I have tried an explicite answer at WPW.

Thank you very much: Positive rep point added.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess Help!! garyglow IT Discussion Forum 8 01-16-2008 12:21 PM
301 in htaccess inertia Search Engine Optimization Forum 7 01-07-2008 04:49 PM
.htaccess apwade Web Programming Discussion Forum 2 10-12-2007 07:05 AM
.htaccess issues Sub Rosa IT Discussion Forum 1 07-06-2007 07:28 PM
.htaccess troubles. Sub Rosa Internet Security Discussion Forum 3 06-22-2007 06:32 PM


All times are GMT -4. The time now is 02:40 AM.



Search Engine Optimization by vBSEO 3.3.0