Page 1 of 1
local php scripts in windows
Posted: Tue Feb 16, 2016 1:15 pm
by Motu
when you have php files on your local disc under windows and try to load them with the HTTPRequest command you get a 500 (Internal Server Error) in the browser.
Shouldn't Spiderbasic tread local php file as flat text? Renaming the files to txt does not result in server errors.
Re: local php scripts in windows
Posted: Tue Feb 16, 2016 1:22 pm
by Fred
It's not spiderbasic which handle these files, it's sbmongoose, the small webserver shipped with SB. It doesn't handle php natively, so I think it's why you get the error. It's a serverside error, not a SpiderBasic error.
Re: local php scripts in windows
Posted: Tue Feb 16, 2016 1:52 pm
by Peter
@Fred: As far as i know mongoose can handle php (via CGI) in principle. See:
https://www.dokuwiki.org/install:mongoose. Or am i wrong?
Greetings ... Peter
thanks
Posted: Tue Feb 16, 2016 3:36 pm
by Motu
thanks for the reply,
I finaly got it to work - i installed wamp on the system and added the php path to the header of the php file:
Code: Select all
#!C:\wamp64\bin\php\php5.6.16\php.exe
<?php
echo "Content-Type: text/html";
echo "\r\n";
echo "\r\n";
?>
maybe that information should be added somewhere
