Quote:
Originally Posted by deathemperor
the page must be save as .php page, .html page won't work.
|
I have saved the page as a .php page. The file being called for the IFRAME is text.php and has the following inside it:
PHP Code:
<? require_once('/forums/global.php'); ?>
<html>
<head>
<? echo $style['css']; ?>
</head>
<body>
<span class="alt1"><strong>Blah</strong><br /><br />Blah Blah</span>
</body>
</html>
When I view this text.php in the browser, not trying to view it in the IFRAME, to test it, I get a blank page. I then view the source and get:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>
If I just put
PHP Code:
<? phpinfo(); ?>
into my text.php file, to see if anything works at all, I see the php information whether I view it in my IFRAME or if I just view it normally. What is happening with the call to the global.php? Am I doing this wrong?
- Sid