Page 1 of 1

index.php file - textpad vs. wordpad, notepad and MS Word

Posted: Mon Aug 25, 2008 4:45 am
by billgreene
The below text is what appears in Text Pad when opening the index.php with Text Pad:
require('./wordpress/wp-blog-header.php')
(fyi, this is what I want the text file to contain).

In REALITY, the real value of this specific line, related to wordpress is:
require('.wp-blog-header.php');

If I open the same file in notepad, wordpad or MSWord, the text is rendered as:
require('./wp-blog-header.php');


I derive the "real" value of the text in my index.php file by a) view it with notepad; b) view it with word pad; c) view it with MS Word; d) my word press site generates an error in apache's access log on this specific file and line number.

Each of these programs "claim" the value to be:
require('./wp-blog-header.php');

However, opening this file with Text Pad shows:
require('./wordpress/wp-blog-header.php');

I KNOW I AM NOT HALLUCINATING.

I have solved my problem with this (simply don't use Text Pad); however, I would like to use Text Pad. I like many of its features, but this situation is driving me crazy.

Comments????????????????????









/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wordpress/wp-blog-header.php');
?>

Posted: Mon Aug 25, 2008 2:27 pm
by talleyrand
Probably not the appropriate forum for your post as this is for Enhancement suggestions. But now that I've posted here, only a mod can move it.

At any rate, are you certain that you are looking at the same file? Within TP, Right-click the background, select Properties and look at the full name. Actually, copy that Full name and then open notepad, hit Ctrl-O and paste that full path into the selector. What does the require line indicate?

Could Wordpress be doing some localization/relativization mumbo-jumbo to make the path look like it thinks it should? The reason I ask this is that TP doesn't really have the power to change the contents of a file or make it appear differently on disk without you typing away.