Skip to main content

Jul
15
2011

I only recently noticed anyone capitalizing it - I never do - like they say, why would you? I thought the capitalization made the article where I noticed it look dated and quaint, like "The Internet" was this new thing you may not have heard of - ha.

media online web interesting

Jun
5
2011

This rings true and it is scary - confirmation bias will only get worse with more and more personalization of our web experience. It's not just products that are personalized - it's ideas, viewpoints, thought.

online media social social_media_list news networks politics thought

in list: Social Media Web 2.0

Jul
6
2010

Now that you’ve seen how to manage authors, see if you can do the very same thing for categories! The completed code is included in the ‘after’ folder of today’s code archive in case you get stuck, but see how far you can get on your own. If you have any questions, hop in the course forum and team up with your fellow PHP Live-rs!

webdesign php mysql online courses php_live forums

in list: PHP Live

Let’s begin with the code that will handle adding new authors, and deleting and editing existing ones.

webdesign php mysql online courses php_live

in list: PHP Live

Kevin Yank reviews the ijdb database structure, and shows how a single front page will lead to multiple controller files in the Joke CMS project.

webdesign php mysql online courses php_live

in list: PHP Live

Kevin Yank welcomes course participants to Day 12 of PHP Live.

webdesign php mysql online courses php_live

in list: PHP Live

Today we embark on our most ambitious coding project for this course!

webdesign php mysql online courses php_live

in list: PHP Live

Kevin Yank creates a couple of handy functions for use in PHP templates

webdesign php mysql online courses php_live

in list: PHP Live

One big difference between custom functions and include files is the concept of variable scope. Any variable that exists in the main script will also be available, and can be changed in the include file. While this is useful sometimes, more often it’s a pain in the neck.

webdesign php mysql online courses php_live

in list: PHP Live

  • variables created in the main script outside of  any function, are unavailable inside of functions
  • let’s use the global variable directly within our function. There are  two ways to do this. The first is to import  the global variable into the function’s scope:

     
     

  • 6 more annotation(s)...
  • I can't believe I've misunderstood the idea of global variables for so long! I have struggled with this so much, getting those "undefined variable" errors and not understanding why... I somehow missed the fact that "globals" aren't truly global (but super-globals are), and are NOT available inside functions. They have to be imported or called using the $GLOBALS array. THANK YOU!!! - Maggie Wolfe Riley on 2010-07-06

Kevin Yank demonstrates how to write custom functions for use in your PHP scripts.

webdesign php mysql online courses php_live

in list: PHP Live

Jul
5
2010

On many sites, you’ll want to share include files among scripts that span potentially complex directory structures. A solid candidate for a shared include file would be the database connection include.

webdesign php mysql online courses php_live

in list: PHP Live

The include statement we’ve used so far is actually only one of four statements that you can use to include another PHP file in a currently running script

webdesign php mysql online courses php_live

in list: PHP Live

Kevin Yank demonstrates how to use PHP include statements to reuse HTML and PHP code in your projects.

webdesign php mysql online courses php_live

in list: PHP Live

Kevin Yank welcomes course participants to Week 3 of PHP Live.

webdesign php mysql online courses php_live

in list: PHP Live

This week, we’ll take on some bigger challenges and see how the skills you have acquired so far translate to projects with a more real-world scope.

webdesign php mysql online courses php_live

in list: PHP Live

Challenge: Update joke database to include categories
Using everything you just learned about many-to-many relationships, try adding the necessary structure to your joke database to group your jokes into categories. Don’t worry about writing any PHP code to handle this just yet—we’ll tackle that next week.

webdesign php mysql online courses php_live

in list: PHP Live

1 - 20 of 96 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo
Move to top