Is there a special library I need to include to use the send mail function. I want users to be able to type their email address in a form, choose subscribe or unsubscribe then click submit and have it send mail doing the appropriate action.
I keep getting the following error: Fatal error: Failed opening required 'mailinglist.php' (include_path='./:/usr/local/lib/php')
mailinglist.php is a file that has the code that I am inserting into my rightcell content in my page.
No, are you administering your on server, it seems someone has screwed with the include path directive and set it to /usr/local/lib/php So any file that you include in your page using include() would have to live in that directory, you need to either set that directive in your php.ini file to equal "" or you need to do it in an .htaccess file in your web root like
a .htaccess file with the following line it
php_value include_path ""
if it is not in the same directory as your php script it cannot find that mailinglist.php.
you should give full path like
hope this helps
gokhana it doesn't matter if you inlcude a full path to the file; if the include_path directive is set to something then your path would either need to be relative to that location or your file would need to be in the dir specified in the directive.
If you give include a full system path and the include directive is set to something odd then the include will find the file as long as you give it the correct path.
Also the include path above included the current directory the . in the include path.
Yes the correct path - relative to the odd setting in the include_path directive. If your include_path directive is set to /usr/local/lib/php
Say you have include("/usr/home/www/somefile.inc");
Unless your file is located at /usr/local/lib/php/usr/home/www/somefile.inc
Your system ain't gonna find it.
Thanks all. I'm new at this php stuff. apparently I was using a require instead of an include. I also changed it so that it is using the complete path from the localhost. Seems to be working. Now let's see if my actual code works the way I want it to!