question about INCLUDE behavior
| From: | Romulo Roberto Pereira | Date: | Tue, 26 Dec 2000 17:59:10 +0000 |
| Subject: | question about INCLUDE behavior | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-31858@lists.php.net to get a copy of this message | ||
Hello!
I have this include file:
include.inc
--------- (line is not included)
<table>
<tr>
...
</tr>
</table>
--------- (line is not included)
In my code I am doing the following:
...
if ($publication_type == "magazines") {
$print_data = include ('included.inc');
echo $print_data;
}
...
and the results are the following
--------- (line is not included)
<table>
<tr>
...
</tr>
</table>
1
--------- (line is not included)
I have this " 1 " there that I don't know where come from... Could you
please tell e what is that?
BTW the work around that I found is the following (it is dirty but is
working):
--------- (line is not included)
<table>
<tr>
...
</tr>
</table>
<!--
--------- (line is not included)
and is printing the following now:
--------- (line is not included)
<table>
<tr>
...
</tr>
</table>
<!--
1
--------- (line is not included)
problem solved...
I know that is veeery ugly, but I don't understand RegEx (by the way, where
I can find info about this?) and I could not figure out a string function
that will take out this last character...
Heeeeelp!!!
;-)
thank you!!
Rom