Miscellaneous > Programming & Networking
PHP guestbook
Laukev7:
I have PHP on my webserver, and I am testing my webpages. It seems to work, but when I try to use the guestbook, it returns me the following message:
quote: Method Not Allowed
The requested method POST is not allowed for the URL /addguest.php.
--- End quote ---
Is the problem in the PHP code? Or is there some configuration I have to change in my server?
Here is the file:
http://laukev7.sytes.net/addguest.php
Refalm:
I think you should chmod 777 addguest.php and try again...
Laukev7:
Great! Thanks! But I now I get this message:
quote:
Warning: mail(): SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in c:\website\www\addguest.php on line 16
--- End quote ---
OK, this is PHP code. How do you do the authentification in PHP?
xyle_one:
I think that php is configured by default to use sendmail to send mail (lol?). And I do not believe you have sendmail installed as you are using windows right now.
quote:php.net says:
Requirements
For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary.
--- End quote ---
http://us4.php.net/manual/en/ref.mail.php
[ June 03, 2004: Message edited by: xyle_one ]
Laukev7:
The server is on a Slackware box right now.
Navigation
[0] Message Index
[#] Next page
Go to full version