Unable to include a php file in typo3 -
i using typo3 cms. under main folder have different other folders such typo3, typo3conf, fileadmin etc...
i have created 2 php files named myphp.php, , myantoher.php inside main folder, , used require() in myphp.php. when line reached during execution, receiving following errors:
warning: require(doc/phpmailer/class.phpmailer.php): failed 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 receiving error when try require() file?
it's easy add php or other files in typo3
you have script
includelibs.cookie = fileadmin/cookie/cookie.php page.20 = user_int page.20 { userfunc = user_setcookie } for more information typo3 stuff may visit blog
https://jainishsenjaliya.wordpress.com/2015/04/01/how-to-include-custome-php-file-in-typo3/
regards,
jainish senjaliya
Comments
Post a Comment