Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

Re: [PHP3] too complicated for a newbie? From: .:..:..:...Modest 013.::...:..:..: (modest013 <email protected>)
Date: 03/30/00

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>