develop gold website with codeigniter |
[eluser]MohamedFawzy[/eluser]
hello i'm newbe for codeigniter use it from one month ago this is my second software on it all i need to do is forex website like this one i want to make it with codeigniter what can i do for that to do something like this one ? in this website people see gold price every one minute for example and they can see analysis for gold and charts too then they can login and sell or buy for gold price with current price
[eluser]adityamenon[/eluser]
What do you think you should do? Have you considered making a plan by yourself? If you have absolutely no idea where to start, you must check out the excellent CodeIgniter series on Nettuts by Jeffrey Way.
[eluser]MohamedFawzy[/eluser]
i did i can make login now for this and permssions login too for users and admins and i can add paypal for codeigniter too but i want people to buy or sell with current price for gold how can i do this function ?
[eluser]adityamenon[/eluser]
Make a library to fetch the live gold rate. Then use functions from that library every time you make a user go for a purchase. It is best if you try this on your own and come back with Code Problems, or even specific architectural issues...
[eluser]boltsabre[/eluser]
I fully agree with adityamenon. Get your hands dirty, play around with different options, see what you can come up with - it's the only way you'll learn (but if your doing logins with diff auth levels and stuff sounds like your well on your way). I've never looked into it personally, but if you want to get 'live gold rates that update every minute' you may want to google for a widget or something, and have a look at it's code. Or you may have to build a script that scraps this data from another site and use a AJAX call once a minute. Best advice would be is to grab a pen and paper and nut out your logic flow, requirements, etc. Once you know what step one is then and only then can you take your first step. Good luck with it.
[eluser]cideveloper[/eluser]
Code: select * from html where url="http://finance.yahoo.com/q?s=GCM11.CMX" and xpath='//*[@id="yfs_l10_gcm11.cmx"]' YQL!!! curl library jquery PeriodicalUpdater This will give you a good start
[eluser]TWP Marketing[/eluser]
You can obtain current spot prices on gold, silver, platinum or palladium from Goldmoney Ltd. This is a link, which Goldmoney provides for current users of the system (I am such a user). http://www.goldmoney.com?gmrefcode=twpmarketing I believe they still offer a set of text files which are updated every 10 minutes with current spot prices. You may parse these files for the fiat currency of your choice (US Dollars, Dinars, Euros, etc.) You may need to have an account to access these files. If you want to use the CI shopping cart, you will need to modify it accept gold or silver in quantities denominated in grams or ounces. These values are specified to at least a milligram, so your fields should use a format of x.xxx to do reasonable conversions to today's devalued fiat currencies. Note that today a gram of gold is worth about $49.00 (US Dollars) which means that a milligram of gold is worth about 2 US cents ($0.02). |
Welcome Guest, Not a member yet? Register Sign In |