Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Bikeralley
New Member
New Member



Joined: Jan 28, 2004
Posts: 2

PostPosted: Wed Jan 28, 2004 8:36 pm Reply with quote

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 ftp.
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.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Jan 28, 2004 8:48 pm Reply with quote

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_;
?>
 
View user's profile Send private message
Bikeralley







PostPosted: Wed Jan 28, 2004 10:06 pm Reply with quote

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







PostPosted: Wed Jan 28, 2004 10:11 pm Reply with quote

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 Smile
 
Deseroka
Client



Joined: Apr 15, 2003
Posts: 466
Location: FL

PostPosted: Thu Jan 29, 2004 5:26 am Reply with quote

I agree on the WSFTP---I use the pro version and wouldn't use anything else.
For editing I use Only registered users can see links on this board! Get registered or login!. 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.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©