PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Bikeralley
New Member
New Member


Joined: Jan 28, 2004
Posts: 2

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

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
Only registered users can see links on this board!
Get registered or login to the forums!

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Bikeralley
New Member
New Member


Joined: Jan 28, 2004
Posts: 2

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Deseroka
Client


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

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

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 to the forums!
. 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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum