Search the Community
Showing results for tags 'online'.
Found 4 results
Online / Offline system for basic POS system
CamaroMan posted a topic in Application DesignHi there - Im busy putting together a basic POS system for a client. Thing is all my prev work has been online, so now I have to face several challenges getting this to work in all circumstances - I want your opinion if this seems to be a fairly legit approach - bear in mind im not familiar with any frameworks - I code ground up procedural style with functions (have been for years - and now is not the time to lecture me about it or digress - please bear with me).. Lets briefly cover the main operations of the POS system: Read current products / prices / stock Create supplier orders / receive orders / process new stock (to reflect on all other systems / locations) Capture customer orders and counter sales / invoices etc In a perfect world this will all run directly from/to the main online server - from any terminal anywhere with complete data synchronicity across all terminals. Now in one location there might be say - 3 stations and a local server.. So this is my plan of action: The Main live server will be the primary data source (ultimately) Each physical location will have a local server (network shared) <- more on this below Each POS terminal will / must be able to run the data without even a network connection Problem 1 / Solution: Now lets say the internet connection drops - Now we have a situation where the main server is unreachable.. The terminals and server now have no connectivity to the products etc - and are operating "blind". My solution is to store a copy of all products in a json/xml/csv file on the main server - so when the system goes offline they switch immediately to the local stored copies. This will be a fixed filename on the local server read only to all POS stations - so they can continue pulling products. (bear in mind this will apply to suppliers, orders, whatever else will be need to perform the base functions). Problem 2 / Solution: Similar as above - except now the POS station is running completely as a single unit. Once again - there will be a copy of the json/xml files stored locally to read from. For each of the above cases - there will also be a unique json/xml/csv file for new captures - ie, a new supplier order from a single station would be stored into the local file a new product created would also be stored locally soon as the local server is accessible a sync can be done as soon as the main server becomes available - a sync can be done to that unique transaction and operation codes will be created to avoid duplicate entries. So in scenario 1 - all POS stations will be saving to the main local server, in scenario two they will be storing everything to local files. When reading / writing the files - i will create php arrays and loop each one, look for a duplicate in table and insert / clear file - so each insert / sync will be removed from local file - be it station to local server, station to main server, or local server to live server. Im not sure if theres a magic button to press that could sync a mysql database - the reason Im using files is because: the use of files might bypass certain security issues sharing data between mutliple sources faster performance using files rather than running a db server on station, local server AND live server the product list is only about 3-4 thousand and maybe i can cache the files plus i dont think they would be too big? In a nutshell - if connectivity is lost, the system will resort to using flat files.. One argument against is perhaps it might be easier to have the same databases all over, then the code wont change - just the location / db server.. that could be a very small piece of code. Id just have to magically sync the dbs tho... this is one issue im having to consider - flat files vs db - So thats the short of it - id like to know some suggestions, queries and comments - if you think I should consider a different approach please let me know what you think - many thanks! aaarr
legendofpie posted a topic in Application DesignI want to create a text based real time strategy game. I would like to know how I can create an ingame mine that produces x amount of resources/h. And then to make the mine upgrade able. Witch wil take y amount of time to upgrade and cost z amount of resources to upgrade. And then increase the production per hour by a new amount per hour. Any one willing to help or even show me code that will do this or even direct me to a tutorial please.
Coding School help needed
Tradedog posted a topic in MiscellaneousHi all, I am looking at the possibility of setting up a coding school for young people in the third world. I am not a coder or programmer at all and would like suggestions as the best way to teach these skills. Do I need a competent teacher or are there reputable comprehensive online courses available. I could certainly provide the IT hardware and connectivity. How do most coders in the USA gain their skills? Are most of them graduates? Lastly, which institutions in the US might provide funding for a project like this? Where could I start looking? This will be a non profit venture. Any help/advice will be gratefully received.
CMS Shop - storeadmin
R3N posted a topic in MiscellaneousHello, Does anyone have the "cms storeadmin" by "Adam Khoury" from developphp? Is there any way that I can find a custom cms? Any ideas to build an online store with custom/ create my own cms? Please reply me as soon as possible! Thank you!