View Single Post
Old 08-01-2011, 12:42 PM   #1
czc3v6a8p
 
Posts: n/a
Default Guess| Asynchronous JavaScript and XML&quot

A couple of months ago,Christian Louboutin Cheap Suede Ankle Boots Onsale, I knew nearly naught about PHP, only namely is was a programming language that I needed apt study. Today, my entire site relies above PHP and I have gained the confidence that almost everything namely feasible using PHP. I realized this finishing using means that I will depict in this treatise.
Set Small Goals That You Can Achieve
One of the maximum disastrous entities a programmer tin do is to try to develop an widespread agenda or complicated website always at once. When I began to establish my fashionable site, I began with a simple goal--to make a members' district that users could log into and out from. I didn't resolve what features the members place would have, I equitable wanted to successfully code the restricted area. I made a very easy form of registration--a database for users and the PHP functions that were necessitated to convey the data to the MySQL database. It was no a 'mission impossible' goal, yet it was someone that I knew I could accomplish and then I could migrate ashore to the afterward goal.
At that point I determined how to secure the data that was entered by users in the form. Keeping in mind that hackers might try to mess up my database by abusing the auto-registration or filling it with spam, I decided to make a simple security key using an image. The user is essential to enter the text from the image in order to prevent spam/robotic registrations.
My next task was to decide how folk can login and logout and how to validate the form to make sure someone did not enter waste data in the email field. Then I needed to diagram out how to send an email when the user finished the registration process. This was needed in order to determine that the user entered a valid email.
After I worked out the features mentioned above,Philippe Starck, I started to calculate about my next task. I decided to allow members to post their own tutorials on the site and store them in the MySQL database. I wanted to be able to:
- rate these tutorials
- create a profile for each user
- allow users to comment on several pages
- permit users to search via these areas
- integrate the JavaScript with the PHP code
The PHP code forward with the JavaScript provided me with dynamic content, which enabled me to insert the new tutorial titles into a JavaScript drop down menu. I enhanced the method I secondhand for rating to use "Asynchronous JavaScript and XML", usually referred to as AJAX,JACQUES LEMANS, so the page would not need to be reloaded if user rated a tutorial or silhouette.
The Internet Is a PHP Developer's Friend
Even if you don't have any PHP manuals or writings, if you're perusing this article, you're in fortune! Internet search engines, discussion forums and the PHP manuals located at www.php.web can be your best tools. The 1st area I look in any PHP function syntax or implementation methods is at the PHP manual site mentioned above. Then I try out the PHP code myself, and if I haven't found what I need or am faced with a problem, I use search engines or forums to find the question to my problem.
Keep in mind that along searching the dispute forums, I have too found some very complicated solutions to problems that I was able to solve in a much simpler means. Nevertheless, the bbs posts can provide you with an mind of what is working on with your code, or what you need to do to accomplish your goal.
One of the issues I faced that took a lot of time was while I made the security opener because my site. An instance of PHP was mysteriously scampering twice, so the key that was shown as one image to the consumer was differ from the substantial key that was sent to the PHP form processing sheet. This issue was occuring only with the Mozilla browser. I didn't understand at the initially that PHP was running double and I didn't guess that it was related to the explorer until I searched online and base some posts in forums from folks that had alike problems. They unraveled that Mozilla requests HTML and images using detach requests. Using this info, I was competent to come up with a going solution.
Everything You Want, You Must Code
While you do not want to use other developers' code, you can naturally learn from their work. If you depend on using other programmers' work, it will only take you longer to learn the tricks of the commerce, so to speak. For sample, if I had used the open source forums as a tool for creating my tutorial obedience mechanism, I would have finished up not knowing how to cache the caret in a form's textarea.
Hack Your Own Site
Security issues are very important for any developer, even for the most rudamentary applications. For instance, you do not want to wake up 1 a.m. to ascertain your site's guestbook full of junk and ######## advertisements.
If there is any possibility of an application not working properly, your site has a defect. One of the best things about PHP is that it is a server side language,Christian Louboutin Fashion Jean Paul 120 Wedge Sa,Baume & Mercier, which means that users will not be able to penetrate the code directly--things will work back the scenes. Conversely,Christian Louboutin Black Astraqueen Boots Onsale, if you jot wrong code,Christian Louboutin Fashion Morden Lady Page Velvet-Bow Pumps, you might inevitably allow your users to actually muff things up on your site. For instance, you would not want to allow the transfer of a variable that is entered through a form instantly to your database. You ought use htmlspecialchars to shirk allowing someone to join hateful code to your database.
Interactive Site?
These days, to be topical, sites must be flexible and interact with their observers. The best path to create some interaction is to mix JavaScript and PHP and let these "teammates" work attach. One of the most promising new technologies is AJAX, which does just that. I recently started to use AJAX on my site. It is easy, hasty and saves users from waiting for your page to reload anew just to post a comment (or rate a tutorial, in my circumstance). Because PHP is a server-side language, you only absence to reload the page to pass a variable. Using XmlHttpRequest or additional Ajax methods with JavaScript, however, you can communicate with the server in the background and bring the results behind to the user without having to reload anything.
Conclusion
Although I am still knowledge PHP, by using the techniques I mentioned above, I was able to create my own interactive website. I proceed to add to my site, and my learning of PHP boosts with each new feature I add. I encourage you to start your own cruise into PHP programming--you won't be apologetic.
  Reply With Quote

Sponsored Links