You are here: Re: [PHP] Newbie Help « PHP « IT news, forums, messages
Re: [PHP] Newbie Help

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
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация