either im an idiot, or something's wrong / SSI question

Started by myk, October 04, 2004, 04:47:28 PM

Previous topic - Next topic

myk

could be both... so, i have 1 issue, should be a no brainer

i'm making a test web page that doesnt seem to be processing properly. the ssi.php line is taken directly from my ssi_examples.php and it's above everything. thing is, when i load the page, all i see is ABOVE (empty line) BELOW. now, i have IE 5.5 but my forums work fine. i've already removed cache, to no avail.
<?php require("/home/wootmail/public_html/wootlands/SSI.php"); ?>
<HTML>
<HEAD>
<TITLE>PHP test</TITLE>
</HEAD>
<BODY>
ABOVE
<br>
<?php ssi_recentTopics(); ?>
<br>
BELOW
</BODY>
</HTML>


[edit]
if you saw the 2nd one, i figured it out... idiot for that one. i've removed it for this post...

thanks in advance


Moderator-edit: subject text clarified

Metho

Joshua "Methonis" Frazer
Support Specialist
The Simple Machines Team


[Unknown]

Your server, at least in that directory, is not processing php.  Please try viewing the source...

So, something's wrong with your host/.htaccess...

-[Unknown]

myk

er, not sure what .htaccess is (never used it) but i moved the file to www.wootlands.com (where my index.php for smf is at) and renamed it to test.php ( so http://www.wootlands.com/test.php ) but that didn't help. any ideas?

roboter88

hmm the link http://www.wootlands.com/test/index.php displays the forum .....what is your problem?

And mybe the other link /above/below mybe add some content?

myk

ignore the first link. and as for the second link, there is supposed to be content. that's the issue. it's supposed to list the recent topics from my forums....

roboter88


andrea

Instead of

<?php require("/home/wootmail/public_html/wootlands/SSI.php"); ?>
<HTML>
<HEAD>
<TITLE>PHP test</TITLE>
</HEAD>
<BODY>
ABOVE
<br>
<?php ssi_recentTopics(); ?>
<br>
BELOW
</BODY>
</HTML>


Try this:

<?php 
require("/home/wootmail/public_html/wootlands/SSI.php");
echo 
'
<HTML>
<HEAD>
<TITLE>PHP test</TITLE>
</HEAD>
<BODY>
ABOVE
<br>'
;
ssi_recentTopics();
echo 
'
<br>
BELOW
</BODY>
</HTML>'
;
?>


Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



myk

meh. im an idiot. see, i use Microsoft Development Environment to code in (because i dont have dreamweaver at work) and i saved a file as "Unicode Text" for some reason, and it needs to be saved as "Text". see? i knew i'm an idiot!

thanks for the help tho :D


Advertisement: