Well, I really appreciate all the help efforts here, but perhaps I am still miscommunicating.
I just setup up a test file on the Unix:
<?
include("../includes/myinclude.php");
?>
And my file to include on the Unix:
<?php
echo "This is from the myinclude.php file";
?>
My Result (one of numerous errors):
Warning: main(../includes/myinclude.php): failed to open stream: No such file or directory in /home/myname/www/mydomain/mytest/mymaintest.php on line 2
Warning: main(): Failed opening '../includes/myinclude.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/myname/www/mydomain/mytest/mymaintest.php on line 2
One of various errors from the following combinations tried:
Putting the mymaintest.php file in:
/home/myname/www/mydomain/mytest/ (subdir)
Putting the myinclude.php file in:
A. /home/myname/nonwww/ (subdir)
B. /home/myname/nonwww/includes (subdir)
C. /home/myname/www/mydomain/ (subdir)
D. /home/myname/www/mydomain/mytest/ (subdir)
E. /home/myname/www/mydomain/mytest/includes (subdir)
My gosh, this should not be THAT difficult I would think???
The objective is to NOT have an include file be an '.inc' file, AND...AND... NOT be in a Publicly assessible directory or sub-directory.
Right now, I can't get squat to work :mad:
Typically, for NOT DBconnect, Password, etc. 'sensitive' files, my regular desire would be to have an 'includes' sub-directory right off the working .php script file (wherever that might be).
But for the DON'T give the World access types, then BELOW 'www' ... on the Unix AND for testing on the PC.
ARRRGGGHHHHH!!!