Tutorials

Hello everybody and welcome back to PHP Trainee. Today's tutorial is about JavaScript's event triggers with Return False. $('a').click(function() { // Do stuff on click // Prevent browser from going to actual link return false; }); I'm sure you've seen the return false statement a lot when you do JavaScript.

Posted by in JavaScript

Have you ever been to a website that offers "real-time" content updates? Google Maps only loads the part of the map you're looking at so you don't load the entire world. Twitter notifies you of new tweets as you're reading. Facebook has a chatroom that updates witout refreshing the page. They are using AJAX to reload content without refreshing the page.

Posted by in JavaScript

Today's tutorial will be on how to serve and protect your files with PHP. Your server can only process code from PHP files so what about other kinds of files? Documents, PDFs, images and other files are all served as-is by the server. Anybody with the correct URL can get these files. Securing your files First step of is to secure the files on your server.

Posted by in PHP

Today's tutorial will be on making your website work on all resolutions while still having control over your layout. A lot of users are using their phones to surf the web. What is responsive web design? Responsive websites are websites with different CSS rules for different situations. You can change the width, height, margin, or any other CSS property.

Posted by in HTML/CSS

This tutorial will show you how to display a RSS feed on your website. What is a RSS feed? RSS stands for Rich Site Summary. It's usually a list of content that would be updated regularly. Users can grab the content without having to visit your site. Grab the Data RSS feeds come as XML files.

Posted by in PHP