Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Trying to use Members only


Message #1 by Jefferis Peterson <jefferis@p...> on Thu, 17 May 2001 10:53:36 -0400
 I've run into a problem with an include and thought someone might be
able to tell me what I'm doing wrong:

I'm trying to use a Members only access code from Weberdev

But I am getting include errors :
>Fatal error: Call to unsupported or undefined function  include() in /
>usr/www/users/jefferis/new/photos/newmember.php on line 1

the php is    <? include("header.txt"); ?>  
on line 1 of  newmember.php

my header.txt is as follows
<?
<html>
<head>
 
</head>
<body>
?>
It has no bottom half since that is in the footer.txt which reads
<? 
</body>
</html>
?>

I'm getting a similar error from the code for the members area:

>Parse error: parse error in /usr/www/users/jefferis/new/photos/
>authenticate.php on line 3

<?  

    include("my_const.h");  

each of the "included" files are in the photos' directory so that
shouldn't be the problem... 



Any help appreciated.

Thanks

Jeff

-- 
Jefferis Kent Peterson
www.PetersonSales.net
Flash, Web Design and Marketing 
ICQ 19112253
_______
"Happy is the person who finds wisdom, and the one who gets
understanding, for the gain from it is better than gain from silver and
its profit better than gold."  - Proverbs 3:13,14.




  Return to Index