Jump to content

PHP to respond to "questions"


Bodo

Recommended Posts

I am making an open-source software. I would like a web app (PHP and HTML) that responds to questions about my project. The question (predefined questions - like How to use ...?) comes from an HTML form (I guess I'll use POST). I would also like urls like that /ask.php?q=How%to%use?... I think a kind a config file would be good. Something like (I have an idea but i dont have an idea in PHP):

 
if q= How to use FEATURE 1? echo ...(my text comes here)
if q= How to create an account? echo ... (my text comes here)


  • If it goes good I would like also to integrate some APIs (in the future), like this:
    • if q starts with Search, **search on google - using API**
    • if q starts with Calculate, **Wolfram Aplha calculation - using API**
    • if q=Weather for *city*, use API to show weather for *city* - or even current location

But first I want with predefined questions.

 

My Open-Source project is actually a Linux Distro and I want to make this like an virtual assistant for it. (I'll further integrate the Nuance Voice API for Speech-to-text assistance)

 

Thanks in advance.

 

P.S.: If it matters, I got my own server (not hosting or VPS, a real machine) running Windows 7 with Apache (PHP and CGI enabled), MySQL and all these server stack things.

Link to comment
https://forums.phpfreaks.com/topic/263342-php-to-respond-to-questions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.