Go Back   CodingForums.com > :: Server side development > MySQL > Other Databases

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-14-2004, 07:25 PM   PM User | #1
JamieR
Senior Coder

 
JamieR's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 3,161
Thanks: 0
Thanked 5 Times in 5 Posts
JamieR is on a distinguished road
Arrow Customising PHP script to work with Flatfile

Hey
I have this PHP script that consists of these files:
login.php
db_connect.php
register.php

It uses a MySQL database as it's database but I only have one database, and I am using that for my Forum so I can't use that.
How easy would it be to customise it to use flatfile as it's database?

Regards, and thanks in advance

-Jamie
__________________
-Jamie
JamieR is offline   Reply With Quote
Old 10-14-2004, 10:06 PM   PM User | #2
hemebond
Senior Coder

 
Join Date: Jul 2004
Location: New Zealand
Posts: 1,315
Thanks: 0
Thanked 2 Times in 2 Posts
hemebond is an unknown quantity at this point
SQLite?
hemebond is offline   Reply With Quote
Old 10-15-2004, 01:59 AM   PM User | #3
Kiwi
Regular Coder

 
Join Date: Oct 2002
Posts: 380
Thanks: 0
Thanked 0 Times in 0 Posts
Kiwi is an unknown quantity at this point
It's likely to be tricky. Every time your script uses any SQL, it would need to be modified for work with the flat-file. It could be done, and it you've got a nice abstrtaction layer, it'd be relatively easy. But it's more likely that you won't and it'll be difficult.

A simpler approach would be to run this script in the same database instance as your forum. You might been to mess around with table names - I generally try and prefix all table names with a short application identifier (or two), which makes it fairly easy to run multiple applications off a single database instance.
__________________
Strategy Conscious
Kiwi is offline   Reply With Quote
Old 10-17-2004, 02:35 PM   PM User | #4
JamieR
Senior Coder

 
JamieR's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 3,161
Thanks: 0
Thanked 5 Times in 5 Posts
JamieR is on a distinguished road
ok cheers
im going to have a play around with it this evening to see if i can get them both to run on the same database
-Jamie
__________________
-Jamie
JamieR is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:31 AM.


Advertisement
Log in to turn off these ads.