Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts

    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

  • #2
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Posts
    380
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •