You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 62 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Just a simple "fail" statement needed - Thanks! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
zao
Nuke Soldier
Nuke Soldier


Joined: Apr 16, 2004
Posts: 26


PostPosted: Fri Oct 22, 2004 9:07 am Reply with quoteBack to top

Hi, Hows it going? I need help with a fail code.. Here's the situation:
In my index.php file, I have a include("home.html"); code going.
Then in my index.html I have another include:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Site Name</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#eeeeee">
<center>--------------------<b>Family Feeds:</b>--------------------</center><p>
               <?php include("http://www.winterhaventhecommunity.com/modules.php?name=InterviewStream&pa=list_pages_categories&cid=1"); ?>
      </body>
</html>



This include is for a news/content feed that we have set up.. The problem is, a few times now, his site has crashed, and that left my site with a lot of WARNINGS on my index.php.. They made it look horrible and distorted.

If anyone can take the time to change this code around for me so that if the include file on his site doesnt work, then it will say something like "Problems with the feed right now".. That would be so cool..

Thanks for any time..
Peace.
Find all posts by zaoView user's profileSend private message
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Fri Oct 22, 2004 10:23 am Reply with quoteBack to top

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Site Name</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#eeeeee">
<center>--------------------<b>Family Feeds:</b>--------------------</center><p>
<?php
ob_start();
@include_once("http://www.winterhaventhecommunity.com/modules.php?name=InterviewStream&pa=list_pages_categories&cid=1");
$page_content = ob_get_contents();
ob_end_clean();
if (($page_content != '') && !preg_match('/warning\:/i', $page_content))
{
  echo $page_content;
}
else
{
  echo 'Problems with the feed right now';
}
?>
</body>
</html>

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
zao
Nuke Soldier
Nuke Soldier


Joined: Apr 16, 2004
Posts: 26


PostPosted: Fri Oct 22, 2004 2:49 pm Reply with quoteBack to top

Hey Thanks! You Rock!
Find all posts by zaoView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.180 Seconds - 157 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::