> OK, I have a file called page.php that has the following code in it > (example but same layout and concept). > > > <?PHP > require("membercheck.php"); > ?> > <html> > <head> > <title>Page Title</title> > </head> > <body> > This is the text in the body of the page. > </body> > </html> > > The membercheck.php file contains a login form that is used if a session > variable doesn't exist, i.e. the user is not logged in. What happens is > when I run file() to read in the contents of page.php it reads in the code > that is in the membercheck.php file, and never reads in any code that is > in the page.php file. What I would need is a way to read in the contents > of the page.php file without reading the membercheck.php file. > > Better explanation?
Yeah, kind of, but you should show your actual code. I have a feeling your using a command like file('http://www.yourdomain.com/page.php'); to read your data, instead of file('/path/to/file/on/system/htdocs/page.php'); ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php