Web Application VS Windows Application
-
@dafyre i just take a look over RedBeanPHP framework, it looks great, but it is working with OOP method not procedural method, so i supposed you are following OOP method isn't it ???
-
it is similar to EJB in J2EE, modeling framework that facilitate DB managment
-
-
great, so i will tried to use this framework because really i liked it, wow it reduce a massive amount of time of coding SQL queries, everything function is ready(store, delete, update ) thank you for this advice
-
do you use json and ajax in your PHP code ?? for me i really liked them both,
-
they allow you to fetch data and display data from DB without refreshing the page
-
@IT-ADMIN said:
great, so i will tried to use this framework because really i liked it, wow it reduce a massive amount of time of coding SQL queries, everything function is ready(store, delete, update ) thank you for this advice
There's a command you should issue once you get things closer to production ready... It will prevent RB4 from making any changes to the database structure. I forget what it is, but I haven't gotten any apps that far with it yet, lol.
-
i know that command, hhhh
it is :
R::freeze(1); -
@wirestyle22 said:
@dafyre said:
@scottalanmiller said:
@IT-ADMIN said:
@scottalanmiller said:
@wirestyle22 said:
@IT-ADMIN said:
anyway it is another discussion about hypervisors we made it 6 months ago,
why it is recomended to make apache and mysql in seperate servers ??
because they compete heavily for physical resources and they scale at different rates
No, that's not an issue. Specifically the issue is the potential to write code that relies on locality.
please dear scott can you clear you point here, i'm not sure i understood you
Running local you can very easily get into doing things like copying database files, trying to look at file instead of properly database interfaces, trying to use local files instead of network interfaces, etc.
By writing your code to expect the database server to be on a different server than the web interface, it makes the system more scaleable as well... Even if you are just writing this to be used internally.
You mean because it assumes that single system running VM's will eventually not be enough, correct?
Eventually or at least, potentially.
-
@johnhooks said:
@scottalanmiller said:
@johnhooks said:
@scottalanmiller said:
@johnhooks said:
@scottalanmiller said:
@johnhooks said:
Ya mine's using close to 2GB
Are you sure? I don't think that tool tell syou how much is used.
That's the RAM for each VM and the host. 8% is allocated for the dom0.
I mean, didi you run free to see what was REALLY used?
Used is like 702, I changed the response above.
I'm not going to be confident in that number till someone shows me the real free -m output rather than something translated for me.
ok......
I see you using 497, not 702. More than expected, less than stated.
-
-
@IT-ADMIN said:
great, so i will tried to use this framework because really i liked it, wow it reduce a massive amount of time of coding SQL queries, everything function is ready(store, delete, update ) thank you for this advice
LOL, yes. Writing queries is pretty uncommon for the last... decade or so
-
@IT-ADMIN said:
do you use json and ajax in your PHP code ?? for me i really liked them both,
The framework does that, not you.
-
@IT-ADMIN said:
they allow you to fetch data and display data from DB without refreshing the page
We know what they do. But you are talking about them like it's the late 1990s. Think of them like your SQL code... not something you need to worry about anymore.
-
i mentioned them in order to tell me guys whether they are effective or maybe you know another method more powerful to achieve that,
but wait you told me that my php code can handle this, how ?? because i think if i use sql only i have to refresh the page in order to get the data from the DB, but ajax for example send an xmlhttprequest with the argument needed into another php file without refreshing the page,
please if you know something new that do the same thing update me, because i'm expired hhhhh -
@IT-ADMIN said:
i mentioned them in order to tell me guys whether they are effective or maybe you know another method more powerful to achieve that,
MangoLassi uses websockets.
-
@IT-ADMIN said:
but wait you told me that my php code can handle this, how ?? because i think if i use sql only i have to refresh the page in order to get the data from the DB, but ajax for example send an xmlhttprequest with the argument needed into another php file without refreshing the page,
SQL is the database on the backend. AJAX is for the GUI on the front end. One does not affect the other. You are tying components in your mind that aren't related.
-
@IT-ADMIN said:
please if you know something new that do the same thing update me, because i'm expired hhhhh
Every modern web application framework does all of this automatically. You are talking about "underpinnings" that are no longer things that the developers need to really think about, especially not at this level.
-
It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.
-
@dafyre said:
It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.
yeah myself using jquery to update only some element in the DOM, but off course after receiving the data via ajax, is there any framework in php that does this ?? how do you deal with this scenario dear @dafyre ?? maybe you are using websocket as Mr scott mention ?? because me i'm still using ajax and json but based on Scott i'm expired lol, i wan to update myself