Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. That just had to happen.....

That just had to happen.....

Scheduled Pinned Locked Moved The Back Room
databasephpcomxml
14 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nnamdi Onyeyiri

    i have been designin a shopping website for my aunt. I have spent the last few days on it, spending probably around 7-8 hrs a day [i know little PHP and had to learn about most of what i wrote]. my aunts web package did not have DB access, i knew that, so i was using XML. anywaz, after a few days, i had tested what i had done on my comp, and decided to test it out on the net, only to find it did not work there, yet it worked on my comp. so i sent the webhost and email, and they replied, that the package that my aunt had, does not allow you to run your own scripts :mad: :mad: . so i spoke to my aunt, and she was prepered to pay the little extra a month ao my scrupts can be run. then i carried on coding, when suddenly, about 30mins ago, i thought, a file based system is much slower than database, my aunt new package has database access, so I should make it in that.:mad: :mad: :mad: i would not be so bothered, if not for the fact ive spen sooooo many hours on it.:mad: :mad: :mad:


    :bob: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk:bob:

    J Offline
    J Offline
    Jeremy Falcon
    wrote on last edited by
    #4

    Try getting into the habit of coding with some modularity. For instance, I have a PHP API set I've been keeping around and working on for a couple of years now. Wrap the process of whatever into something external, so if you need to change it later on, it won't be as a big pain the arse. But, for performance's sake, don't get too carried away with it because PHP is not compiled. For instance, I have several DB include files. They are mysql.inc, mssql.inc, oracle.inc, and odbc.inc. They all encapsulate the functionality needed to work with these DBMSs, and I can change my programs to work with anyone of them with a simple change in the include. I'm about to add a couple more too (like xml.inc) when I get off my butt. Jeremy L. Falcon Homepage : Sonork = 100.16311
    "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

    S N 3 Replies Last reply
    0
    • J Jeremy Falcon

      Try getting into the habit of coding with some modularity. For instance, I have a PHP API set I've been keeping around and working on for a couple of years now. Wrap the process of whatever into something external, so if you need to change it later on, it won't be as a big pain the arse. But, for performance's sake, don't get too carried away with it because PHP is not compiled. For instance, I have several DB include files. They are mysql.inc, mssql.inc, oracle.inc, and odbc.inc. They all encapsulate the functionality needed to work with these DBMSs, and I can change my programs to work with anyone of them with a simple change in the include. I'm about to add a couple more too (like xml.inc) when I get off my butt. Jeremy L. Falcon Homepage : Sonork = 100.16311
      "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

      S Offline
      S Offline
      SimonS
      wrote on last edited by
      #5

      Jeremy Falcon wrote: Try getting into the habit of coding with some modularity. Yup, hindsight is wonderful! :rolleyes: Cheers, Simon "Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)

      N 1 Reply Last reply
      0
      • J Jeremy Falcon

        Try getting into the habit of coding with some modularity. For instance, I have a PHP API set I've been keeping around and working on for a couple of years now. Wrap the process of whatever into something external, so if you need to change it later on, it won't be as a big pain the arse. But, for performance's sake, don't get too carried away with it because PHP is not compiled. For instance, I have several DB include files. They are mysql.inc, mssql.inc, oracle.inc, and odbc.inc. They all encapsulate the functionality needed to work with these DBMSs, and I can change my programs to work with anyone of them with a simple change in the include. I'm about to add a couple more too (like xml.inc) when I get off my butt. Jeremy L. Falcon Homepage : Sonork = 100.16311
        "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

        N Offline
        N Offline
        Nnamdi Onyeyiri
        wrote on last edited by
        #6

        well, i already have an xmlish type system that i can convert, once the code is neatened up a lot, and with a little variation, so that it can be used with any project. The DB system that im making now, is generic, so it can be used in any project, i learnt from my previous mistake.


        :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
        :suss:"All programmers are playwrights and all computers are lousy actors."

        J 1 Reply Last reply
        0
        • S SimonS

          Jeremy Falcon wrote: Try getting into the habit of coding with some modularity. Yup, hindsight is wonderful! :rolleyes: Cheers, Simon "Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)

          N Offline
          N Offline
          Nnamdi Onyeyiri
          wrote on last edited by
          #7

          SimonS wrote: Yup, hindsight is wonderful! why would you want to be looking at at an animals back-end. ;P


          :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
          :suss:"All programmers are playwrights and all computers are lousy actors."

          1 Reply Last reply
          0
          • J Jeremy Falcon

            Try getting into the habit of coding with some modularity. For instance, I have a PHP API set I've been keeping around and working on for a couple of years now. Wrap the process of whatever into something external, so if you need to change it later on, it won't be as a big pain the arse. But, for performance's sake, don't get too carried away with it because PHP is not compiled. For instance, I have several DB include files. They are mysql.inc, mssql.inc, oracle.inc, and odbc.inc. They all encapsulate the functionality needed to work with these DBMSs, and I can change my programs to work with anyone of them with a simple change in the include. I'm about to add a couple more too (like xml.inc) when I get off my butt. Jeremy L. Falcon Homepage : Sonork = 100.16311
            "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

            N Offline
            N Offline
            Nnamdi Onyeyiri
            wrote on last edited by
            #8

            u would mind sharing would u?


            :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
            :suss:"All programmers are playwrights and all computers are lousy actors."

            J 1 Reply Last reply
            0
            • N Nnamdi Onyeyiri

              u would mind sharing would u?


              :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
              :suss:"All programmers are playwrights and all computers are lousy actors."

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #9

              I don't mind at all. I want to revamp some (maybe this'll motivate me to get off my arse), but I need to set-up Apache 2.0 with PHP on my Unix box at home to code and test the new stuff. I'll shoot you a zip file when I get home and cover the details and my plans for updates, etc. and just collaborate in general about web dev. This way, I'll feel better about gettin' you to help me with my site. I don't like the something for nothing policy too much. :) Jeremy L. Falcon Homepage : Sonork = 100.16311
              "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

              N 1 Reply Last reply
              0
              • N Nnamdi Onyeyiri

                well, i already have an xmlish type system that i can convert, once the code is neatened up a lot, and with a little variation, so that it can be used with any project. The DB system that im making now, is generic, so it can be used in any project, i learnt from my previous mistake.


                :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                :suss:"All programmers are playwrights and all computers are lousy actors."

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #10

                Nnamdi Onyeyiri wrote: i learnt from my previous mistake. That's the best way to learn. The teachings stick with us that way. :) Jeremy L. Falcon Homepage : Sonork = 100.16311
                "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

                1 Reply Last reply
                0
                • J Jeremy Falcon

                  I don't mind at all. I want to revamp some (maybe this'll motivate me to get off my arse), but I need to set-up Apache 2.0 with PHP on my Unix box at home to code and test the new stuff. I'll shoot you a zip file when I get home and cover the details and my plans for updates, etc. and just collaborate in general about web dev. This way, I'll feel better about gettin' you to help me with my site. I don't like the something for nothing policy too much. :) Jeremy L. Falcon Homepage : Sonork = 100.16311
                  "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

                  N Offline
                  N Offline
                  Nnamdi Onyeyiri
                  wrote on last edited by
                  #11

                  i dont mind, although, i am developing my aunts site [which i'll get paid for on completion] so i will not be able to devote complete attention to yours, as i also have my site. right now, ive just found out about templates, and am contemplating if they will be effective in the site im making.


                  :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                  :suss:"All programmers are playwrights and all computers are lousy actors."

                  J 1 Reply Last reply
                  0
                  • N Nnamdi Onyeyiri

                    i dont mind, although, i am developing my aunts site [which i'll get paid for on completion] so i will not be able to devote complete attention to yours, as i also have my site. right now, ive just found out about templates, and am contemplating if they will be effective in the site im making.


                    :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                    :suss:"All programmers are playwrights and all computers are lousy actors."

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #12

                    Nnamdi Onyeyiri wrote: i dont mind, although, i am developing my aunts site [which i'll get paid for on completion] so i will not be able to devote complete attention to yours, as i also have my site. Understandable. We can talk about your plans via email/chat I guess. I'm in no hurry; I just wanted you to know I didn't forget about ya. :) Jeremy L. Falcon Homepage : Sonork = 100.16311
                    "The height of your accomplishments will equal the depth of your convictions." - William F. Scolavino

                    1 Reply Last reply
                    0
                    • N Nnamdi Onyeyiri

                      i have been designin a shopping website for my aunt. I have spent the last few days on it, spending probably around 7-8 hrs a day [i know little PHP and had to learn about most of what i wrote]. my aunts web package did not have DB access, i knew that, so i was using XML. anywaz, after a few days, i had tested what i had done on my comp, and decided to test it out on the net, only to find it did not work there, yet it worked on my comp. so i sent the webhost and email, and they replied, that the package that my aunt had, does not allow you to run your own scripts :mad: :mad: . so i spoke to my aunt, and she was prepered to pay the little extra a month ao my scrupts can be run. then i carried on coding, when suddenly, about 30mins ago, i thought, a file based system is much slower than database, my aunt new package has database access, so I should make it in that.:mad: :mad: :mad: i would not be so bothered, if not for the fact ive spen sooooo many hours on it.:mad: :mad: :mad:


                      :bob: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk:bob:

                      N Offline
                      N Offline
                      Nish Nishant
                      wrote on last edited by
                      #13

                      Cheer up Nnamdi! At least it must have improved your coding, huh? Nish


                      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                      N 1 Reply Last reply
                      0
                      • N Nish Nishant

                        Cheer up Nnamdi! At least it must have improved your coding, huh? Nish


                        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                        N Offline
                        N Offline
                        Nnamdi Onyeyiri
                        wrote on last edited by
                        #14

                        yer, ive been recoding it all day, so that it is more generic, and can be switched from XML to MySQL easily. Nishant S wrote: Cheer up Nnamdi! i like it when people use my name in reply posts, it makes it feel more personalised.


                        :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                        :suss:"All programmers are playwrights and all computers are lousy actors."

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups