Where do I find the php.ini set in the downloaded scripts?

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
18 years 10 months ago #32 by Anonymous
Forgive me for being obtuse, but..................

$notify_admin = 0; // Set "1" to notify administrator through email
// when a new guestbook entry is written.
// Warning: To use this feature you will have to have
// your "SMTP" and "smtp_port" setting in php.ini set.

This notification of a needed setting is in the config.php file. I can't seem to find the php.ini set?

Thank you
SFD

Please Log in or Create an account to join the conversation.

More
18 years 10 months ago - 11 years 2 weeks ago #33 by Pete
Here is the information you are looking for:
Code:
[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = admin@localhost ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path =


just make sure that your SMTP is set to either localhost if you have a mail server locally or the URL of your mail serer if you don't. In addition, make sure that the "sendmail_from" email address is correct. Lastly, make sure to specify the "sendmail_path" correctly if you are running a Unix Server.

Either way (with both Windows and Unix / Linux), you will HAVE to have a mail server for your web server to send email. With most web host, this feature is automatically setup, so that you don't have to do anything. The only time you have to do the above modifications is if you are running your site locally at home.

DigiOz Webmaster
www.digioz.com
Last edit: 11 years 2 weeks ago by Pete.

Please Log in or Create an account to join the conversation.

More
18 years 7 months ago #54 by Quest
Does the above code work if your website is in conjunction with others, and you have a 'parent' site that is the one that pays the bills and so on.

My friends have the website and the whole whatever for the web address, and under that unbrella there are a number of us that have our own website tied to it (eg, for the sake of argument their one is "original.org", and ours is "mine.original.org" and "his.original.org" and so on).

Could this also be why spam codes dont work as well?

I just create my website, and have no idea about anything other than that which I can google when it comes to permissions, registering sites, whose in charge and so on, so if this is really obvious, well... c'est la vie.

Please Log in or Create an account to join the conversation.

More
18 years 7 months ago #55 by Quest
"You will have to have the SMTP settings in php.ini file of your server configured
to use this feature."

Where is this file? I have looked through the guestbook code and I can't find it.
Thanks

Please Log in or Create an account to join the conversation.

More
18 years 7 months ago #56 by Pete
The php.ini file is in your C:\Windows or C:\WinNT\ directory, not the guestbook folder. :)

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
18 years 7 months ago #57 by Quest
Do you only have the file if you are the person who owns the web domain? I know its probably obvious but I have to ask.
cheers

Please Log in or Create an account to join the conversation.

Time to create page: 0.126 seconds
Powered by Kunena Forum