Thread: Im a newb
View Single Post
Old 10-09-2002, 10:37 PM   #1 (permalink)
basementman
Registered User
 
Join Date: Oct 2002
Posts: 3
basementman is on a distinguished road
Im a newb

yo i just started php today and i wanna be able to include files using GET but im doing something wrong and i cant figure out how to fix it.
I have a file called index.php
and somewhere in there the code is
PHP Code:
<a href=index.php?body=news.htm>Test</a>
<? include("$body");?>
when i click test it loads it fine but just index.php is giving me this error
Warning: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/psa/home/vhosts/basementman.ppnhost.ws/httpdocs/new/index.php on line 65

how do i fix it so that it loads the news with the index and im able to have links that use GET, but dont show the news?

( take a look at http://basementman.ppnhost.ws/new/ )
basementman is offline   Reply With Quote