Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.