A
|
Ace Drummond author 5/10/2022 |
I found a solution that will work on my web hosting server by using php realpath to find the path to a file in the directory where I wanted to output. It starts out line this: '/home/public_html/' then add directory information and filename.ext Still trying to figure out how I can make this easily work for both testing on my windows PC and webserver? |
admin 5/11/2022 | |
The recommended approach is to use a relative path to the template file like email_templates\template.txt. This way it will work without any changes on both localhost and on your live server. Since PHP will require a full path to the file you can use one of the many available ways to convert a relative path to the absolute one. One of the options is to use PHPRunner's getabspath() function.
|
A
|
Ace Drummond author 5/12/2022 |
Problem solved - thank you! |