Call to undefined function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jamesm
Forum Newbie
Posts: 6
Joined: Sun Aug 18, 2002 1:47 am
Location: UK

Call to undefined function

Post by jamesm »

I think I may have a settings problem.

If I use the mail function:
$mail($to,$subject,$msg,$mailheaders);

I receive:
Fatal error: Call to undefined function: () in C:\Apache Group\Apache2\htdocs\mailit.php on line 19

Also a similar thing happens with cURL calls.

Running Win98 Apache HTTP Server Version 2.0, PHP4.2.2

Any ideas?
Thanks
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

why do you have a $ before the function


try


mail()

instead of

$mail()
jamesm
Forum Newbie
Posts: 6
Joined: Sun Aug 18, 2002 1:47 am
Location: UK

Progress!

Post by jamesm »

Thanks, I assumed it was the same as my cURL problem!
Post Reply