$main undefined variable
| From: | Richard Frank | Date: | Thu, 02 Aug 2001 15:00:48 +0000 |
| Subject: | $main undefined variable | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8630@lists.php.net to get a copy of this message | ||
I was copying a site from a linux server to a w2k server. the linux has
php3 and w2k has php (4).
one of the files index_frameset_eros.php3 has this code:
<frameset rows="136,*" border="false" frameborder="0"
framespacing="0">
<frame src="banner_eros.htm" marginwidth="1" marginheight="1"
framespacing="0" noresize scrolling="no">
echo $main
<frame src="<?php if ($main == "") {
echo "main_eros.php3";
}else {
echo $main;
} ?>"
name="maineros" marginwidth="1" marginheight="15"
framespacing="0">
</frameset>
</head>
When opening index_frameset_eros.php3 it won't show me the second frame
src. I get the message CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are: (nothing)
When I do <frame src="main_eros.php3"> it does show the page but the
links in the top frame doesn't work anymore. I guess that i can't find
the lower frame (maybe called main) anymore.
I put echo $main in the title and the title says: <br><b>Warning</b>:
Undefined variable: main in
<b>d:/inetpub/www.eros.nl/website/index_frameset_eros.php3</b> on line
<b>10</b><br>main_eros.php3