WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox 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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-24-2008, 10:59 AM
kgun's Avatar
kgun kgun is online now
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 4,701
kgun RepRank 3kgun RepRank 3
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, 09:50 PM
able able is offline
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.
__________________
Glasgow SEO
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 08:16 AM
kgun's Avatar
kgun kgun is online now
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 4,701
kgun RepRank 3kgun RepRank 3
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

vB 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 11:21 AM
301 in htaccess inertia Search Engine Optimization Forum 7 01-07-2008 03:49 PM
.htaccess apwade Web Programming Discussion Forum 2 10-12-2007 06:05 AM
.htaccess issues Sub Rosa IT Discussion Forum 1 07-06-2007 06:28 PM
.htaccess troubles. Sub Rosa Internet Security Discussion Forum 3 06-22-2007 05:32 PM


Search Engine Friendly URLs by vBSEO 3.0.0