tringate
03-20-2004, 04:56 AM
I have been using phpmailer for some time now on my home server, and have switched to a hosting company. I need to install three files for phpmailer to work in the "includes" directory.
I do not have access to this directory, but there is a comment on the phpmailer site giving me these instructions.
I am not a linux person, so knowing how to point to directories is foreign to me.
Their instructions tell me to add the following statement to my script.
ini_set("include_path", ".:/path/to/phpmailer/dir");
I did so with this statement:
ini_set("include_path", ".:/includes");
require("class.phpmailer.php");
class.phpmailer.php is in the includes directory.
I get this error when executing this script:
Warning: main(class.phpmailer.php): failed to open stream: No such file or directory in /home/semmesd/public_html/roster/register.php on line 85
Fatal error: main(): Failed opening required 'class.phpmailer.php' (include_path='.:/includes') in /home/semmesd/public_html/roster/register.php on line 85
I placed a directory in my /public_html directory called "includes" and it has the proper files in it.
Have I correctly pointed to this directory?
On my hosting company, the actual full path is:
/home/semmesd/public_html/includes
I tried using that as well, and get the same error.
I am sure my problem is I just don't know how to point to the directory correctly.
I hope someone can help me with this.
Tom R.
I do not have access to this directory, but there is a comment on the phpmailer site giving me these instructions.
I am not a linux person, so knowing how to point to directories is foreign to me.
Their instructions tell me to add the following statement to my script.
ini_set("include_path", ".:/path/to/phpmailer/dir");
I did so with this statement:
ini_set("include_path", ".:/includes");
require("class.phpmailer.php");
class.phpmailer.php is in the includes directory.
I get this error when executing this script:
Warning: main(class.phpmailer.php): failed to open stream: No such file or directory in /home/semmesd/public_html/roster/register.php on line 85
Fatal error: main(): Failed opening required 'class.phpmailer.php' (include_path='.:/includes') in /home/semmesd/public_html/roster/register.php on line 85
I placed a directory in my /public_html directory called "includes" and it has the proper files in it.
Have I correctly pointed to this directory?
On my hosting company, the actual full path is:
/home/semmesd/public_html/includes
I tried using that as well, and get the same error.
I am sure my problem is I just don't know how to point to the directory correctly.
I hope someone can help me with this.
Tom R.