UPDATE:
Actually, I did not enter the code myself. I wish I understood the PHP language and will learn it slowly. For now I am using a theme from ElegantThemes that is joined with Wordpress. Sometimes I want to find and change design elements in Dreamweaver, once I learn how to better do this. I can only learn so fast.
Meanwhile I MUST get my site up soon because I know information that MANY people need, like how to deal with the radioactive isotopes...anyway, here's my report:
I do not "see the error" because I am just learning the language, and it's all in code - lol.
I do see the "\" mixed with "/" in the error reported by the browser. I didn't do it. The browser reported it. In fact, I wonder why sometimes a path includes
http://localhost/doctoreq/wordpress/ and sometimes displays as D:\xampp\htdocs\doctoreq\wordpress (<--like in DW). Where do "\"s come from?
RE: " require_once(D:\xampp\htdocs/wp-load.php). Ok, in PHP programming, IT IS NOT ALLOWED TO SPECIFY SUCH PATH."
OK, I didn't do it. Such a path as what? the mixed "/" and "\", or something else? Whoever did it, what is the fix?
RE: " all php codes reside in ONLY ONE FOLDER (=in this case is yourWordpress'Foldername)"
Only one folder??? I have .php files in the following folders:
D:\xampp\htdocs
index.php file is here and it contains the following code (remember, I am using a theme from ElegantThemes):
-------------------------------------
<?php
/**
* 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('./wp-blog-header.php');
?>
---------------------------------------------
.php files also in all these folders........
D:\xampp\htdocs\doctoreq\wordpress
D:\xampp\htdocs\doctoreq\wordpress\wp-admin
D:\xampp\htdocs\doctoreq\wordpress\wp-content
D:\xampp\htdocs\doctoreq\wordpress\wp-includes
You can't really mean
one folder.
ALSO of note: In Dreamweaver, I looked for the index.php and as noted, found the file outlined above. With my site fully open in DW, I see another "index" file with this name: index_98b0wh2yp.php.
Is that important to you? When I click on it (in DW) to see if the code might lend a clue, a message says: " ' index_98b0wh2yp.php' is not on the local disc. Get ?"
I searched my computer and have no such file and have NO idea what it is or why it's sort of present in DW.
RE: I want to make my site in the index.php looks like this: (then you have your index.php code)
I don't understand that code yet, inside, outside, etc...and suspect that mine (as posted above) is different because of the theme.
RE: "Or you can try as follows: require_once $_SERVER['DOCUMENT_ROOT']."/ClassFolder/myphpclass.php";"
You are giving me too much credit. Remember I am a baby with all this. I have no idea where to "try" it. I need precise instructions.
RE: #7 I found the file with "require_once" and it's in the "wp-blog-header.php found here (written two ways)
http://localhost/doctoreq/wordpress/ ~or~
D:\xampp\htdocs\doctoreq\wordpress\wp-blog-header.php shows the following
This is the code it contains:
------------------------------------------------------------------------------------------
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
?>
----------------------------------------------------------------------------------
Is something different supposed to replace "__FILE__" ? (which happens to be on line 12). If so,
exactly what?
RE: wp-load.php - yes it does exist and it is found here: D:\xampp\htdocs\doctoreq\wordpress
Is that the right folder? I suspect so because WP can open it...and DW works with it (as long as permalinks isn't changed)
Thanks for your help and for your kind words (where are you located? just curious)
What's next?
Thanks,
doctorEQ