Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hi everyone
I'm new here and need some help. I'm trying to use some php include codes in my html pages.
And this is what I have:
In the .htaccessCode: Select all
AddType text/html .php .html
AddHandler server-parsed .html
Options All -Indexes
<Files ".ht*">
order allow,deny
</Files>In my html pages, I have these:
Code: Select all
<?php
define(NUMBER_SHOW, 2);
$text = glob('http://www.domain.com/randomarticle/*.txt');
shuffle($text);
for ($i = 0; $i < NUMBER_SHOW; ++$i) {
include($text[$i]);
}
?>Code: Select all
<?php include('http://www.domain.com/adsense.php'); ?>I don't think there's any problem with the htaccess because there was no error generated, meaning it was able to read the php lines.
However, nothing gets displayed, be it the random files, or the adsense code.
I've no idea what went wrong. Can someone please advise me?
TQ
- Darren
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]