[PHP] error 405

Pagina: 1
Acties:

  • WiNlUx
  • Registratie: April 2002
  • Laatst online: 12-09-2023
Als ik mijn gastenboek wil tekenen en ik ga hem submitten, dan krijg ik een error 405 --> Bron niet toegestaan
Internet Information Services

Weet iemand hier een oplossing voor??

  • Grum
  • Registratie: Juni 2001
  • Niet online
En ff zoeken op google ? ...

Permissie probleem ?

  • WiNlUx
  • Registratie: April 2002
  • Laatst online: 12-09-2023
Ik denk dat de permissies goed staan.........
Alles heb ik uitvoer lees en schrijfrecten gegeven maar niets...

  • Willem2
  • Registratie: Oktober 2000
  • Laatst online: 16:33

Willem2

Ω is futile

<form method=post action="">

voeg ff de jusite file toe aan action; kan onder sommige browsers een hoop narigheid (zoals 405) voorkomen!

en nee, ik houd niet van voetbal... :)


  • WiNlUx
  • Registratie: April 2002
  • Laatst online: 12-09-2023
Daar heb ik de goede file in staan........

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 20:58

Janoz

Moderator Devschuur®

!litemod

Tja, als je verder niks laat zien blijft het gokken.. Weet je wel zeker dat je ook de juiste rechten bij de juiste gebruiker gegeven hebt? Wat staat er in je webserver log?

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


  • WiNlUx
  • Registratie: April 2002
  • Laatst online: 12-09-2023
Ik weet niet of jullie hier iets aan hebben..
Hier staan de 405 errors met posten.

17:46:30 62.100.41.221 POST /gastenboek-huib/ 405
17:46:42 192.168.0.1 POST /gastenboek-huib/ 405
17:48:12 62.100.41.221 POST /gastenboek-huib/ 405
17:48:28 62.100.41.221 POST /gastenboek-huib/ 405
17:48:35 62.100.41.221 POST /gastenboek-huib/ 405
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2002-05-02 18:07:52
#Fields: time c-ip cs-method cs-uri-stem sc-status
18:07:52 192.168.0.1 GET /index.htm 304
18:08:03 192.168.0.1 GET /gastenboek-huib/ 302
18:08:06 192.168.0.1 POST /gastenboek-huib/ 405
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2002-05-02 18:28:57
#Fields: time c-ip cs-method cs-uri-stem sc-status
18:28:57 192.168.0.1 GET /gastenboek-huib/ 302
18:29:00 192.168.0.1 GET /gastenboek-huib/index.php 200
18:29:02 192.168.0.1 POST /gastenboek-huib/ 405
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2002-05-02 19:34:09
#Fields: time c-ip cs-method cs-uri-stem sc-status
19:34:09 192.168.0.1 GET /index.htm 304
19:34:16 192.168.0.1 GET /gastenboek-huib/ 302
19:34:19 192.168.0.1 GET /gastenboek-huib/index.php 200
19:34:21 192.168.0.1 POST /gastenboek-huib/<br><b>Warning</b>:++Use+of+undefined+constant+PHP_SELF+-+assumed+'PHP_SELF'+in+<b>c:/inetpub/wwwroot/gastenboek-huib/index.php</b>+on+line+<b>133</b><br> 405

Verwijderd

bij de laatste zie ik iets over php_self, probeer eens gewoon de naam van het script...

  • WiNlUx
  • Registratie: April 2002
  • Laatst online: 12-09-2023
Dat gaat ook niet :(
Krijg telkens een 405
Kan het dan zijn dat iis 5.1 geen php scripts wil accepteren of uitvoeren?

  • WOmBaT
  • Registratie: September 2000
  • Laatst online: 30-11-2025

WOmBaT

Nyaaa!!!

Gearoid Griffin is working on a site which takes a callback from worldpay payment system, I have the stuff talking to worldpay fine, but when the callback happens, I get
HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting. Please contact the server's administrator if this problem persists. The box is an IIS4 box with PHP 4.06 installed, and I am calling a php script. Im boggled to whats happening. Is it my script? or the server config.
My callback script
Continue shopping";
?>

Any help would be great

Paul Gregg says it's unlikely to be the php code itself... the 405 is coming from the web server. Check the URL that the worldpay site is redirecting to and stick a phpinfo(); call in it.
Look at the request method variable ($REQUEST_METHOD) if it is anything be GET or POST then check your server configuration for handling such methods (e.g. PUT) - however another common problem is trying to
Het lijkt er dus op dat je request method verkeerd is. Kijk daar eens naar :)
Pagina: 1