| Author |
Message |
Bikeralley New Member


Joined: Jan 28, 2004 Posts: 2
|
Posted:
Wed Jan 28, 2004 8:36 pm |
|
Hope you can help with this, I have been looking for days trying to make this work.
this is what i have come up with after all my searching but still it dont work..
| Code: | <?PHP
if (eregi("block-Top_50.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content.= <<<_ANYHTMLCODE_
<table>
<!--#include virtual="../top50/compact/compact.ssi"-->
</table>
_ANYHTMLCODE_;
|
What am i doing wrong??
and BTW im useing dreamwever MX and Cute
not sure this is an issue or not as i have no clue what im doing LOL
What it is i am trying to do is git the .ssi to show up in a block.
it is a compact list of the top 50 sites on my site.
It is AutoRank.php and it builds the .ssi file at every rerank.
it tells me:
| Quote: | To include the list on a .php page, use the following code:
<?PHP include('/home/username/public_html/compact/compact.ssi'); ?>
In this case compact.ssi is the Compact List Filename you entered in setup.php, and /home/username/public_html/compact is the Compact List Directory you entered in setup.php. With the default compact list HTML included with the software you will also need to include the proper opening and closing table tags to make it work:
<table>
<?PHP include('/home/username/public_html/compact/compact.ssi'); ?>
</table> |
But this is not the case in a php nuke site. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Jan 28, 2004 8:48 pm |
|
Syntax wise your block code looks ok - sorta. I would try something like this | Code: | <?PHP
if (eregi("block-Top_50.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$ssi = file_get_contents("../top50/compact/compact.ssi");
$content.= <<<_ANYHTMLCODE_
<table>
$ssi
</table>
_ANYHTMLCODE_;
?> |
|
|
|
|
 |
Bikeralley New Member


Joined: Jan 28, 2004 Posts: 2
|
Posted:
Wed Jan 28, 2004 10:06 pm |
|
Thanks Raven.
I used your code and it did not work the first time so i opened up in Dreamwever and found that when i uploaded it with cute ftp it added a space after every line, so i just back spaced every line and uploaded it with dreamwever and BOOM there it was.
You dont know how much help you where..
im broke right now but i will send you some cash soon.
Thanks |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Jan 28, 2004 10:11 pm |
|
I, and others, have posted several posts about cuteFTP and its bad habits. You might check the settings to see if there is any setting relating to that. I recommend WSFTP  |
|
|
|
 |
Deseroka Client

Joined: Apr 15, 2003 Posts: 454 Location: FL
|
Posted:
Thu Jan 29, 2004 5:26 am |
|
I agree on the WSFTP---I use the pro version and wouldn't use anything else.
For editing I use . It allows both text and HTM editing, find and replace, alot of great features for editing the php files--it never distorts my text. I use the old standard version, and not the new java one. I would not be without it--maybe it's just secuity blanket for me, but I love it. |
|
|
|
 |
|
|
|
|