Page 1 of 1
PHP interactive stories *without* MySql
Posted: Fri Oct 18, 2002 10:30 pm
by p3aul
Help! I need a free simple PHP script of an interactive story that I can use on my website. I do NOT have access to MySql . I have searched the web and cannot find any that meet my criteria. I would prefer one that i have permission to hack, as I am a beginner and can't create one of my on yet.
Thanks in Advance!
Paul

Posted: Sat Oct 19, 2002 4:51 am
by volka
i.e. go to
http://www.hotscripts.com/PHP/Scripts_and_Programs/ and search for a appropriate script that uses flat files.
and welcome to this forum

Posted: Sat Oct 19, 2002 9:34 am
by p3aul
I already have, I've searched every archive that google has uncovered!

Posted: Sat Oct 19, 2002 2:38 pm
by volka
Help! I need a free simple PHP script of an interactive story
like an online adventure (such as MUD) ?
Posted: Sat Oct 19, 2002 5:48 pm
by Bennettman
I think he means something like this:
[content of page 1]
What do you do?
Choice 1: (goes to page 2, where there's more content and other choices)
Choice 2: (goes to page 3, ditto)
etc etc as your choice affect the outcome of a flat text story.
Posted: Sat Oct 19, 2002 6:01 pm
by p3aul
Yep! thats what I mean alright

Does anyone know of any?

Posted: Sat Oct 19, 2002 6:44 pm
by cheatboy00
wel.. i dont but you should try doing ti yourself shouldn't be that hard... if you ahve the story already then all it really is, is passing the variables throughout the links..
Code: Select all
echo "<a href="page1.php?choice1=$answer1&choice2=$answer2..."></a>";
though i dont know if that'll help cause i do not know where you intend to go with the story...
Posted: Sat Oct 19, 2002 6:58 pm
by p3aul
Thats just it. in an interactive story, the readers of the story, are themselves the writers. each reader reads the story. when they come to the end, they add another chapter. It's also called interactive fiction, such a s the "Choose your own adventure" books a while back, maybe before your time. I have found several, written in perl but could not get them to work. I have seen only one written in PHP, but it used MySql which my server doesn't have and isn't planning on getting. There was one written in PHP without MySql but the link doesn't work, apparently it doesn't exist anywhere.