 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
|DarkNoise| Guest
|
Posted: Sun Nov 23, 2003 2:25 am Post subject: php include help. |
|
|
to start my url is www.headexplodes.tk or without the popup http://www.quaketf.com/headexplodes
my site is in quaketf/headexplodes
and my blog is in quaketf/heblog2
on the site in the 2 columns i want 2 seperate categories veiwed, ana (1) and drkns (2)
i have written a page called show.php (quaketf.com/heblog2/show.php) that retreives all the postings, same as the b2 index page does.
the main page of my site headexplodes/index.php has all the page info in it and uses php include to retreive the blog information like so:
Code: | <?php include("../heblog2/show.php"); ?> |
to retreive the different categories the file has to be retreived with the category id specified eg.
so i tried to just put that into the include eg.
Code: | <?php include("../heblog2/show.php?cat=1"); ?> |
this doesnt work. i dont know why. it just returns me with Quote: | Warning: main(): Failed opening '../heblog2/show.php?cat=1' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/quaketf/public_html/headexplodes/index.php on line 59 |
i dont know a great deal about php, there has to be something stupid ive missed. any healp would be great |
|
Back to top |
|
 |
David Guest
|
Posted: Thu Dec 18, 2003 5:32 pm Post subject: |
|
|
What has happend is...
Your .. means base directiory right? It has either con all the way back in which case you need a server path, or...
The script wants this file:
(dir).. / (dir)heblog2 / (file)show.php?cat=1
But its needs this one:
(dir)heblog2 / (file)show.php?cat=1
So either way take out the .. and it should work. |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can 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 2 © 2001, 2002 phpBB Group
|