yan0r9e8
Joined: 10 May 2011
Posts: 32
Read: 0 topics
Warns: 0/5
Location: England
|
Posted: Tue 4:25, 17 May 2011 Post subject: jordan 13 Beginning Php One Goal At A Time |
|
|
,[link widoczny dla zalogowanych]
Small Goals That You Can Achieve
One of the most devastating things a programmer can do namely to attempt to develop one nationwide agenda or difficult website all in a little while. When I started to establish my new site, I began with a uncomplicated goal--to make a members' area namely users could log into and out from. I didn't decide what features the members area would have, I equitable wanted to successfully code the impeded area. I made a quite easy manner of registration--a database for users and the PHP functions that were necessitated to transmit the data to the MySQL database. It was not a 'mission impossible' goal,[link widoczny dla zalogowanych], merely it was something that I knew I could accomplish and then I could push on to the next goal.
At that point I determined how to safe the data that was entered by users in the form. Keeping in mind that hackers might try to muff up my database by abusing the auto-registration or filling it with spam,[link widoczny dla zalogowanych], I decided to make a simple security key using an image. The user is essential to enter the text from the image in mandate to prevent spam/robotic registrations.
My next task was to decide how people can login and logout and how to validate the form to make sure somebody did not enter garbage data in the email field. Then I needed to figure out how to send an email when the user achieved the registration process. This was needed in order to make sure that the user entered a valid email.
After I went out the functions said above, I began to think about my next mission. I decided to allow members to post their own tutorials above the site and store them in the MySQL database. I ambitioned to be proficient to:
- rate these tutorials
- create a profile for every user
- allow users to comment on several pages
- allow consumers apt search through these districts
- integrate the JavaScript with the PHP code
The PHP code along with the JavaScript invested me with dynamic content,[link widoczny dla zalogowanych], which enabled me to insert the new tutorial titles into a JavaScript drip down menu. I improved the method I accustom because rating to use "Asynchronous JavaScript and XML", commonly referred to for AJAX, so the sheet would not absence to be reloaded if user rated a tutorial alternatively outline.
The Internet Is a PHP Developer's Friend
Even if you don't have anybody PHP manuals or writings, if you're reading this article,[link widoczny dla zalogowanych], you're in luck! Internet search engines, dispute forums and the PHP manuals situated at can be your best tools. The first place I look for any PHP function syntax or implementation methods is at the PHP handbook 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 idea that along searching the discussion forums, I have too found some very complicated solutions to problems that I was able to solve in a much simpler form. Nevertheless, the forum posts can provide you with an idea of what is going 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 for my site. An example of PHP was mysteriously fleeing double, so the key that was shown as an picture to the user was alter from the substantial key that was sent to the PHP form processing page. This publish was occuring only with the Mozilla browser. I didn't know by the initially that PHP was running double and I didn't infer that it was related to the browser until I searched online and found some posts in forums from folks that had similar problems. They unraveled that Mozilla requests HTML and images using detach requests. Using this info, I was able to come up with a working solution.
Everything You Want, You Must Code
While you do not want to use additional developers' code,[link widoczny dla zalogowanych], you tin certainly learn from their work. If you rely on using other programmers' work, it ambition merely take you longer to learn the tricks of th
The post has been approved 0 times
|
|