Page 1 of 1

Final year project, please point me in the right direction

Posted: Thu Nov 27, 2008 1:44 pm
by oriental_express
hi there for my final year project I'm aiming to build a php script shell to use as an expert system ( I got a feeling this is gonna be difficult, VERY )

The idea is that i create txt / csv file with questions like

1, "How old are you?" , "10", 2 ,"11", 3 , ( where 2 and 3 is the next set of nodes )
2, "Do you like sports?", "yes", 4 , "No", 5
3, "Do you like music?, "Yes", 6 , "No" , 7

At the end of the questions it will somehow produce some html files i've already created which would be the knowledge.

Using this file I need to create a script that supposedly will use the fgetcsv function. I know in the script will need some html code to produce check boxes for the questions and choices. So basically this script can be used by anyone that doesn't know how to program. All the user would have to do is create a decision tree and edit the txt file. I will be using this for my own project.

This is the spec My project handing deadline is 1st May 2009 so ideally I want to be able to finish this by about 1st April for evaluation. The earlier the better.

I've been trying to study php but I just can't seem to piece it together and don't know where to start.
I would like some help please. I not asking for you guys to do it for cause I want to prove to myself I can do this. What I would like is if you guys could kindly give me some pointers such as areas I should look at more. I'm prepared to work hard for this, i just need a tiny bit of help :)

Re: Final year project, please point me in the right direction

Posted: Thu Nov 27, 2008 6:27 pm
by Apollo
Uhm, no disrespect, but I doubt if this is a suitable final year project with a deadline at May next year. This should cost a decent php programmer like 30 minutes or so, rather than 6 months :)

Nonetheless, what are you struggling with? Perhaps you should start off by just reading the questions and answer lists from the csv data, and print them.

Re: Final year project, please point me in the right direction

Posted: Fri Nov 28, 2008 11:28 am
by oriental_express
Im a beginner but am prepared to work hard at this. This is my biggest challenge at uni so far.
What am struggling with is know what area to look at. eg am I looking at how to use fgetcsv ? if so how do i get it to only read out the first line which has the questions and answers and the next node depending on aswer ? And then how does the php script work in producing the radio buttons as well as the submit button. Am finding it difficult to understand what variable the script will use for each line in the txt file.
Thank you for your reply
much appreciated

Michael