I am sorry that I never resolved the Server Side Include with Apache2 yesterday. I moved on to write a php include that I could add to the header of each file. I initially had trouble because I’m currently hosting 5 sites, and using the $_SERVER['PHP_SELF'] element, many of the inserts would appear as “index.php” without telling me which domain they were associated with. I was foolish enough to try some superceding directories, like
“/../” . $_SERVER['PHP_SELF']
which would return (predictably) “/../index.php”. So I eventually got the bright idea that there MUST be an array element in PHP to address this - and I lucked out! I used
$_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
and got neat results like “www.sl7pm.com/index.php” which is EXACTLY what I wanted to see! now I can tell the difference between hits to www.sl7pm.com/index.php and www.huanix.com/index.php, which previously looked the same.
I will continue to work on the Server Side Include issue when I get more steam. I hate planting the same repetitive include in every file, especially when I know that I will forget where I placed in in highly-included software like phpBB and WordPress.
I have been thinking about taking a programming class through my local university.. I know a little, but I feel like a formal class would help me build a firm foundation. I’m looking at taking Programming I. Any feedback would be appreciated. I am currently MOST proficient with PHP, which isn’t much, but I am picking up a lot of fundamentals like arrays, switch & case, and loops that I know are ubiquitous in programming.

0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment