I am using Typo3 cms. Under the main folder I have different other folders such as typo3, typo3conf, fileadmin etc...
I have created two php files named myphp.php
, and myantoher.php
inside the main folder, and I used require()
in myphp.php
. But when that line is reached during execution, I am receiving the following errors:
Warning: require(doc/PHPMailer/class.PHPMailer.php): failed to open stream: No such file or directory in /var/www/domainname.com/doc/contactform.php on line 3 Fatal error: require(): Failed opening required 'doc/PHPMailer/class.PHPMailer.php'
Why am I receiving an error when I try to require()
this file?