Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1694 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

phpincluding and all that good stuff

Thread title: phpincluding and all that good stuff
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
02-15-2005, 07:42 PM
#1
sliceandcode is offline sliceandcode
Status: Request a custom title
Join date: Aug 2004
Location: California
Expertise:
Software:
 
Posts: 1,004
iTrader: 0 / 0%
 

sliceandcode is on a distinguished road

  Old  phpincluding and all that good stuff

So I'm using CuteNews for one of my sites and I want the news to display on the site without having to use an iframe so I'd have to do a phpinclude thingie..

Anyway, this is what I would have to put:

Code:
<?PHP
 $number = "5";
 $category = "2";
 include("path/to/show_news.php");
?>
The problem is that it's not in the same directory as my site so it won't show up. I'm a total newb at this and would appreciate any solutions that you guys come up for me.

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed