Author Topic: PHP guestbook  (Read 4244 times)

Laukev7

  • VIP
  • Member
  • ***
  • Posts: 2,834
  • Kudos: 495
PHP guestbook
« on: 3 June 2004, 19:04 »
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.


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

  • Administrator
  • Member
  • ***
  • Posts: 5,183
  • Kudos: 704
  • Sjembek!
    • RADIOKNOP
PHP guestbook
« Reply #1 on: 3 June 2004, 22:01 »
I think you should chmod 777 addguest.php and try again...

Laukev7

  • VIP
  • Member
  • ***
  • Posts: 2,834
  • Kudos: 495
PHP guestbook
« Reply #2 on: 3 June 2004, 23:21 »
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


OK, this is PHP code. How do you do the authentification in PHP?

xyle_one

  • VIP
  • Member
  • ***
  • Posts: 2,213
  • Kudos: 135
PHP guestbook
« Reply #3 on: 4 June 2004, 00:28 »
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.

http://us4.php.net/manual/en/ref.mail.php

[ June 03, 2004: Message edited by: xyle_one ]


Laukev7

  • VIP
  • Member
  • ***
  • Posts: 2,834
  • Kudos: 495
PHP guestbook
« Reply #4 on: 4 June 2004, 01:16 »
The server is on a Slackware box right now.

flap

  • Member
  • **
  • Posts: 1,268
  • Kudos: 137
PHP guestbook
« Reply #5 on: 4 June 2004, 01:49 »
So why does the error message give a windows path name?
"While envisaging the destruction of imperialism, it is necessary to identify its head, which is none other than the United States of America." - Ernesto Che Guevara

http://counterpunch.org
http://globalresearch.ca


Laukev7

  • VIP
  • Member
  • ***
  • Posts: 2,834
  • Kudos: 495
PHP guestbook
« Reply #6 on: 4 June 2004, 03:49 »
Oops. I forgot to transfer it!  

[ June 03, 2004: Message edited by: Laukev7 ]


Laukev7

  • VIP
  • Member
  • ***
  • Posts: 2,834
  • Kudos: 495
PHP guestbook
« Reply #7 on: 4 June 2004, 03:57 »
Argh.

   
quote:
Method Not Allowed
The requested method POST is not allowed for the URL /addguest.php.

Apache/1.3.28 Server at laukev7.sytes.net Port 80


Back to the beginning.  :mad:  And yes, I did chmod the addguest.php to 777.

[ June 03, 2004: Message edited by: Laukev7 ]


flap

  • Member
  • **
  • Posts: 1,268
  • Kudos: 137
PHP guestbook
« Reply #8 on: 4 June 2004, 04:46 »
Why can we view the php code for that page? Does the server actually support php?
"While envisaging the destruction of imperialism, it is necessary to identify its head, which is none other than the United States of America." - Ernesto Che Guevara

http://counterpunch.org
http://globalresearch.ca


Laukev7

  • VIP
  • Member
  • ***
  • Posts: 2,834
  • Kudos: 495
PHP guestbook
« Reply #9 on: 4 June 2004, 04:49 »
quote:
Originally posted by flap:
Why can we view the php code for that page? Does the server actually support php?


Yeah, I'm trying to get that to work. I just set it up. Oh, wait, it was on the Windows computer that I set up PHP. I didn't even configure PHP on the Linux server yet...

Oh, damn, I'm so mixed up in my configurations...

[ June 03, 2004: Message edited by: Laukev7 ]


Laukev7

  • VIP
  • Member
  • ***
  • Posts: 2,834
  • Kudos: 495
PHP guestbook
« Reply #10 on: 4 June 2004, 05:42 »
Aha, solved the problem! Yup, I had simply forgotten to configure PHP on the Linux server! Silly me.  :D