I'm a long time learner php and web programming.. once every year, in my annual vacation like now (😃 I'm in two weeks national holiday for celebrating Ied), I have enough time to revisit my script. And off course, I kind of restarting a whole new chapter again for so many thing has change every time i look upon web tech.
So, I actually finished one cms system back in 2003.. I kinda like it, but thats it.. for about 2-3 years back, i redeveloped it from scratch. Now, each time i found an interested enough site, there's always ajax incorporated. As I never interested in javascript since they invented annoying mouse trail on websites, frankly i dont even understand javascript/DOM the way i do it in PHP. :queasy:
To cut it short I asked you how to do it easiest way:
1. Can i just do regular PHP coding and add ajax thing later or should i bear it in mind while coding the PHP? eg: break down the functions into smaller chunk of file where Ajax could invoke it directly from browser? Is it possible for adding it at a later time at all?
2. what should i take into consideration (security wise) when developing an ajax application?
3. I modified an ajax shoutbox script attached to my frontend. This script refresh every 1 second. Does this kind of script affecting significant load on server? The script currently hosted on my pc, but i dont wanna get suspended when it goes live on my webhost.
These question has bothering me quite few days now. Thanks in advance for your response.