Posted by Mark Cain on 05/02/05 06:24
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@yahoo.com>
To: <php-general@lists.php.net>
Sent: Sunday, May 01, 2005 10:39 PM
Subject: [PHP] 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@yahoo.com
>
> Thanks for all the help.
> Thomas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
[Back to original message]
|