Bodo Posted May 29, 2012 Share Posted May 29, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/263342-php-to-respond-to-questions/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.