Re: Newbie Help

From: Date: Mon, 02 May 2005 03:31:35 +0000
Subject: Re: Newbie Help
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-214312@lists.php.net to get a copy of this message
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@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


« previous php.general (#214312) next »