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.
local php scripts in windows
Re: local php scripts in windows
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
@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
Greetings ... Peter
thanks
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:
maybe that information should be added somewhere 
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";
?>
