php3-list | 200003
Date: 03/30/00
- Next message: Matthew Clark: "RE: [PHP3] Multiple configs??"
- Previous message: Greg Billock: "Re: [PHP3] Session Management"
- In reply to: Jason Brooke: "Re: [PHP3] too complicated for a newbie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
thanks much for your help. I feel like I'm an inch away from getting this
done, but I may be interpreting your instructions wrong. this is where i am
currently.
the page I am testing this at is http://www.heroineonline.com/home.php3
href="home.php3?include=info.inc"
<td width="401" rowspan="2" colspan="6" VALIGN="top" BGCOLOR="#000033"
CLASS="size1">
<?
if ($include)
{
if (!file_exists("inc/info.inc"))
print("Invalid option\n");
else
include($include);
}
?>
</td>
I am getting this error--Warning: Failed opening 'info.inc' for inclusion in
/home/heroine/heroineonline.com/home.php3 on line 150
I do know that the path to the inc is correct.
thanks again.
Quinn
> You can do your links like this: <a href="your.php3?include=yourinclude">
>
> then do something like this to prevent ugly errors if people mess with the
> url:
>
> if ($include)
>
> if (!file_exists("path/to/$include"))
> print("Invalid option\n");
> else
> include($include);
> }
>
> jason
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Matthew Clark: "RE: [PHP3] Multiple configs??"
- Previous message: Greg Billock: "Re: [PHP3] Session Management"
- In reply to: Jason Brooke: "Re: [PHP3] too complicated for a newbie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

