Hi, im using phpmailer to send email, what is confusing me is that: (this actually is not a problem about phpmailer, but is what did i face when i tried to call phpmailer class in my php file)

firstly, i tried to include the phpmailer class file by:require_once($_SERVER['DOCUMENT_ROOT'].'/config.php');require_once($_SERVER['DOCUMENT_ROOT'].'/lib/MailClass.inc');it didn't work. it said "files can't find".

then i tried: require("config.php"); require "lib/MailClass.inc"; it works