Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying News Feed.. HowTo?

Status
Not open for further replies.

xWastedMindx

Technical User
Sep 3, 2002
67
US
I'm trying to set up a Slashdot news feed within a column on my site, and I cant figure out how to incorporate it into the table structure using whatever code I'm suppose to.

I can view the PHP file by itself by linking directly to it from the URL, but I'd like to only link to the file and have it displayed in a small column in my site.

Would I use an IFRAME, and link to the Slashdot PHP file and display it through the IFRAME?

Or is there a way I can just diplay the PHP file using <link> maybe? or something similar.

If any of you know how to do this, which way is easiest? Which would require less hassle to set up?

Thanks
 
Not fully understanding your set up, but.

If your page is php and you're pulling in a &quot;php code&quot; then why not use the

include(&quot;file.php&quot;)


when I need it in a specific place on my site, I can use a table to format it (and css to change the look)

ie
Code:
<TABLE>
<TR>
<TD class=&quot;tddatafont&quot;>
<?
include(&quot;file.php&quot;)
?>
</TD>
</TR>
</TABLE>
 
That's exactly what I was looking for! Thanks alot! :)

I tried using an IFRAME.. but it doesnt work correctly.
I didn't know the PHP code.. as I'm still a beginner!

Thanks again!
kenny
 
Just realized i forgot to include ; after the include(&quot;file.php&quot;);

You'll get a parse error otherwise.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top