I Think the .php.php is the problem but I don't know have to fix it.
Let me know if you won't to see the full src page.
Thomas
Mark Cain wrote:
Perhaps the path to the included files is incomplete:
according to your error message you are trying to open links/index.php.php
Does it need both of the dot php's ??
Would it help to include the full path to the includes such as: /home/bonhamli/public_html/links/index.php.php
so something like that.
Mark Cain
----- Original Message ----- From: "Thomas Bonham" <freeswimfreak@xxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Sunday, May 01, 2005 10:39 PM
Subject: Newbie Help
Hello All,
First of I'm new to this a hop I'm doing this right.
If some one can help me with my web site page. I'm trying to make it call a page and I get a error line 42. Error: http://bonhamlinux.org/idex.php?page=links/index.php
The code that I'm trying to do this is the following: <?php if(isset($_GET ['page'])) {include($_GET ['page'].".php");} else {echo("Page Not Set.");} ?>
My site is: http://bonhamlinux.org My email is: freeswimfreak@xxxxxxxxx
Thanks for all the help. Thomas
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php