News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Totally inexplicable

Started by LoneWolf, March 15, 2011, 10:32:06 PM

Previous topic - Next topic

LoneWolf

Can anyone explain why it is that is I put

<?php
require_once($currentdir . '/SSI.php');
?>

In front of this simple header code below it totally craps out?

Works fine like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="GENERATOR" content="HTML Kit" />
  <meta name="AUTHOR" content="dz Productions" />
  <meta name="DESCRIPTION" content="Freedom Portal" />
  <meta name="KEYWORDS" content="freedomportal, freedom, portal," />
  <title>Freedom Portal</title>
   </head>
   <body>
   <u>"put content here"</u>
   </body>
   </html>


This is what shows in the source code when I include SSI.php

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <HTML><HEAD>
3 <META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
4 <BODY></BODY></HTML>
5 6.2


I have spent the better part of two months trying to make this software work on my forum and every direction I have gone I've run into some little anomaly that has forced me to start over, from trying to integrate a home page into the software and now to trying to make a home page work outside the software. My frustration is beyond measure and my eyes have fallen out of my head reading, testing, reading, testing and reading some more. I've blown all my deadlines and frankly I'm thoroughly fed up with the lack of documentation that doesn't require searching though a search on a keyword to find a problem closely related to the many I have had so far. I know the support is a volunteer effort but I'm not getting paid either.

I have SMF installed at the root of my domain if that makes a difference though why it would is beyond me.

Arekay

What is the extension of the file?  Is it PHP?

SlammedDime

What is the value of '$currentdir' ?  Have you defined it anywhere?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

LoneWolf


LoneWolf

#4
Quote from: SlammedDime on March 16, 2011, 12:02:16 AM
What is the value of '$currentdir' ?  Have you defined it anywhere?

I had it defined as   $currentdir = dirname(__FILE__);

Stupid me... I tried several approaches because I was actually pulling the header from a template file intially and that wasn't going well. Can't believe I missed that. Thanks, that worked fine. been at it too long.

It would seem that trying to put the head and the meta tags into a function in a template file in another directory does not appear to work in SMF2 RC5 though it worked fine for me in RC1 ver 1.1.12

Advertisement: