The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

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 ""

Please don't PM me with questions.
Use the forums, that is what they are here for.

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.

Please don't PM me with questions.
Use the forums, that is what they are here for.

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!