Include not functioning like I am expecting
Posted
by bobber205
on Stack Overflow
See other posts from Stack Overflow
or by bobber205
Published on 2010-04-29T18:43:45Z
Indexed on
2010/04/29
18:57 UTC
Read the original article
Hit count: 141
The below gives me a fatal error saying that "mymail" was not found.
Any ideas why? Looks right to me.
mailreq.php
include("mail.php");
$r = mymail("test","test");
mail.php
function mymail($body, $reqtype)
{
//blah blah
}
EDIT:
For some reason, this version of php doesn't see <? ?>
as valid shorthand tags. I changed it to <?php ?>
and it sees the functions now.
© Stack Overflow or respective owner