PHP interactive stories *without* MySql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
p3aul
Forum Newbie
Posts: 10
Joined: Fri Oct 18, 2002 10:30 pm

PHP interactive stories *without* MySql

Post 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 :lol:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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 Image
p3aul
Forum Newbie
Posts: 10
Joined: Fri Oct 18, 2002 10:30 pm

Post by p3aul »

I already have, I've searched every archive that google has uncovered! :cry:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Help! I need a free simple PHP script of an interactive story
like an online adventure (such as MUD) ?
Bennettman
Forum Contributor
Posts: 130
Joined: Sat Jun 15, 2002 3:58 pm

Post 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.
p3aul
Forum Newbie
Posts: 10
Joined: Fri Oct 18, 2002 10:30 pm

Post by p3aul »

Yep! thats what I mean alright :P Does anyone know of any? 8)
User avatar
cheatboy00
Forum Contributor
Posts: 151
Joined: Sat Jun 29, 2002 10:36 am
Location: canada
Contact:

Post 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...
p3aul
Forum Newbie
Posts: 10
Joined: Fri Oct 18, 2002 10:30 pm

Post 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.
Post Reply