background preloader

PHP with MySQL Essential Training

PHP with MySQL Essential Training

Deciphering Magic Methods in PHP PHP provides a number of 'magic' methods that allow you to do some pretty neat tricks in object oriented programming. These methods, identified by a two underscore prefix (__), function as interceptors that are automatically called when certain conditions are met. Magic methods provide some extremely useful functionality, and this tutorial will demonstrate each method's use. Before We Begin In order to fully understand magic methods, it's helpful to see them in action. If words like "method" and "property" sound alien to you, you might want to read up on this first. Device objects will hold a name, a Battery object, an array of data, and a handle to some external resource. This tutorial assumes you have a basic understanding of object oriented programming. These classes are pretty useless, but they make a good example for each of the magic methods. Constructors & Destructors Constructors and destructors are called when an object is created and destroyed, respectively. __construct() __get()

Khan Academy Creating Custom Xcode 4 Project Templates December 5th, 2011 Filed under: Xcode This post contains the material on custom project templates I had prepared for the book. The material was not strong enough to put in the book, mainly because creating custom project templates manually in Xcode 4 is difficult (much more difficult than in previous versions of Xcode) and not documented by Apple. I had a difficult time getting a simple project template to work. But there is not a lot of information available on creating Xcode 4 project templates so I’m making what I wrote available here. For more information on Xcode 4 project templates, look at Apple’s templates and read the following articles, which you’ve probably read if you’ve done a Google search for creating project templates in Xcode 4: A minimal project template for Xcode 4 About XCode 4 Project Template (How To Create Custom Project Template) Project Template Contents The .xctemplate extension defines the folder as a template folder. Apple’s Project Templates Ancestors Key Kind Key

Object Oriented PHP Tutorial for Beginners Preamble The hardest thing to learn (and teach btw,) in object oriented PHP is the basics. But once you understand them, the rest will come much, much easier. But don't be discouraged! You just found the easiest to understand tutorial out there on OOP and PHP. It may sound like a boastful claim, I know, but that's what the nerd zeitgeist is saying. … Or so I've been told. About This Tutorial This tutorial is designed to teach total beginners object oriented PHP. This is not a long-winded theoretical blathering that you see all too often; instead, we actually start writing OO code very quickly. So before you begin, get out your favorite PHP code editor and be ready to write and run some object oriented PHP code. PS: scroll to the bottom of the page for the supporting videos. Thanks for reading,Stefan Mischook Introduction With the release of php5 in 2004, php programmers finally had the power to code with the 'big boys'. OOP Videos

Hamilton - French as a Second Language This program consists of ten courses providing an English-speaking person with the necessary knowledge for his or her integration into a francophone environment. The participant will develop skills to communicate effectively in French at work and in social settings. BEGINNER LEVEL Duration: 3 hours/week, 15 weeks /course FSL Textbook valid for I, II, III and French in a Box valid for I, II Using everyday examples and resources, you will be introduced to the French language. Beginner I Thursday, May 8, 2014; 6:30 p.m. to 9:30 p.m. Beginner II Thursday, May 8, 2014; 6:30 p.m. to 9:30 p.m. Beginner III Thursday, May 8, 2014; 6:30 p.m. to 9:30 p.m. Duration: 3 hours/week, 15 weeks/course Textbook valid for I,II,III In this course, you will learn how to express yourself in daily activities in the past, present and future tenses using basic vocabulary related to work, social, business and home situations. Intermediate I Tuesday, May 6, 2014; 6:30 p.m. to 9:30 p.m. Duration: 24 hours / 8 weeks

PHP snippets to interact with Twitter Get number of Twitter followers Have you seen my blog sidebar? I display the number of followers I have in full text. This is actually pretty easy to do. The first thing you need is this function: Once you have the function, you can call it as shown below: $nb = get_followers('phpsnippets'); echo "PHP Snippets already have ". » Credit: Get latest Twitter status Using PHP and cURL, it is pretty easy to get the status of a specific user. The function is extremely easy to use: echo get_status('catswhocode'); » Link to update status, without encoding problems Many websites and blogs show you how to create a link to Twitter that will update your status. <a href=" So, where’s the change? A working example can be seen on my company website: Get number of retweets for a specific page Using the function is easy, as you can expect:

Toronto Locksmith, Professional Locksmith Training This 360 hour (12 weeks, 9:00 a.m. - 3:00 p.m., Monday - Friday. Note: 1:30-3pm are lab hours) course is designed to prepare the graduate in the field of Locksmithing. Locksmiths are employed by hotels, motels, major companies, commercial and industrial building owners, auto manufacturers and dealers. The student will install, repair, rebuild, and service mechanical locking devices using hand tools and special equipment. Students disassemble locks, such as padlocks, safe locks, and door locks and replaces worn tumblers, springs, and other parts. Basic Locksmithing Tuition: Registration: $300.00 Total: $4800.00 The following items are included and are given to each student at the beginning of the course, or applicable segment, as is appropriate: Optional Equipment Item: Quantity: Ilco Portable Machine or Equipment 1 Complete Car Opening Tools 1 Universal Pin Kit 1 Value $779.40 Day Classes are:

How to allow users to download files in PHP So, you want to allow your users to download files from your server. Downloading files in php is a simple process.You do not need scores of lines in your code to achieve that.3 steps and you are done. A working example for the same can be seen here. Steps: 1- Specify content type – this will tell the browser which type of file do you wish to send to user’s browser. 2- Specify the name of the file for user and show an open/save dialog box. 3- Read the original file from your server and render it to users browser. Here is the php code: //download.php //content type header('Content-type: text/plain'); //open/save dialog box header('Content-Disposition: attachment; filename="sample.txt"'); //read from server and write to buffer readfile('test.txt'); Yes, thats all. First we specified a content type using the header function.header is used to send http headers to the browser.Content type will be set depending on the file type to be downloaded. ///index.html Click to download Thats all.

LockSmith Vancouver – Mr.LockSmith Blog » Locksmith Training: Hands-on Vancouver and Toronto Locksmith Courses Product Review: Schlage Keypad Cam Lock Technology has changed the way we see things and the way that mankind operates. It has been integrated into virtually … [Read More...] Snow For Metro Vancouver: How to Unfreeze a Frozen Car Lock Video by Mr. Locksmith Snow For Metro Vancouver: How to Unfreeze a Frozen Car Lock Video. Best Cordless Drill for Mr. Best Cordless Drill for Mr.

37 Tested PHP, Perl, and JavaScript Regular Expressions inShare22 A regular expression, also called regex or regexp for short, is simply a piece of code that matches a pattern. Mastering regular expressions can be a difficult chore, and if you don't need them all of the time, the syntax is tricky enough to make the task frustrating or slow as you will constantly need to use a reference sheet. In order to save you time, I've compiled a list of PHP, Perl, and JavaScript regular expressions for common use cases that have been tested and are ready to go. If you're looking for regex tutorials or regex resources, you can find them at the end of the page as well as some additional regex resources. Perl and PHP Regular Expressions PHP regexes are based on the PCRE (Perl-Compatible Regular Expressions), so any regexp that works for one should be compatible with the other or any other language that makes use of the PCRE format. All Major Credit Cards Alpha-Numeric Characters Test for alpha-numeric characters with this regexp. Alphabetic Characters Digits URLs

Find a School Admissions standards In most cases, you need a high school diploma to go to college or university in Ontario. 19 or older, without a diploma: you can still apply to most, if not all, schools. All schools set their own admission requirements. These differ for international students. Colleges offer certificate programs, diplomas, apprenticeships and degrees. Check a school’s website or contact them directly for specific information about admissions. Find a school I want to… Online learning You might choose to learn online – an alternative to attending on-campus classes on a regular basis. 18,000 courses 1,000+ online and distance education programs To find out more and register, you will need to contact a school directly. Online resources for online learning OntarioLearn: a group of 24 community colleges that have partnered to provide more online learning options. How to apply The process depends on where you want to go to school and your personal situation. Colleges: www.ontariocolleges.ca

How to create chained select with PHP and jQuery? In this article we’ll talk about the chaining of select also called select cascade. It is a procedure that we often find on the web and it consists in giving the user the possibility to find a specific data through a few passages: practically choosing a category in the first select, the second one will be populated with the results related with the category selected. We imagine, for example, a first select where it is possible to choose between motorcycles and cars; once we selected the car category , the second select will be populated with the brands of the cars available. Then selecting a brand, the third select will be populated with the models available of this brand. In this article we’ll see a very simple example but it will give us the basis to comprehend the procedure to do even in the case of more complicated cascades. You can examine what we will create in this page of example. As you can see, the example is very minimalist. Create the structure of the database id_catname

PHP: Hypertext Preprocessor How to Create an Infinite Scrolling Web Gallery When working my way through a web gallery, I find it annoying when I must change pages; so in today's tutorial, we will learn how to create an auto-generating, one-page, infinite scrolling gallery with PHP and AJAX. Let's get started! Step 1: Project Outline We'll begin with a normal gallery page that has a container for our images, and we'll monitor the scroll position by calling a JavaScript function at a quick interval. Each time the scroll bar is near the bottom, we'll make an AJAX request to an external PHP file, which returns a list of image names. Now, all we'll need to do is add these images to our container, thus modifying the page height moving the scroll position higher. Step 2: HTML Markup We'll work with a very basic setup: a header and the container for our images. Step 3: CSS The CSS is also quite basic. Step 4 Then, for the container and images, I used a bit of CSS3 to add round corners and shadows. Step 5: PHP Script This is going to be very short. Step 6 Step 7 Step 9 Step 10

Related: