Advertisement:

Author Topic: Lesson Requests  (Read 122522 times)

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Lesson Requests
« on: August 31, 2003, 12:03:49 AM »
Here I'm willing to take any lesson requests people might have on any PHP topic...  Ask and I'll try and put a lesson together around the topic which is detailed yet simple to understand.

Offline Spaceman-Spiff

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,524
  • Gender: Male
Re:Lesson Requests
« Reply #1 on: August 31, 2003, 03:30:48 AM »
i'd always want to learn regex :P
and i'm sure you're good at it, Parham...

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re:Lesson Requests
« Reply #2 on: August 31, 2003, 03:39:52 AM »
Regular Expressions are fun, but imho - to advanced as yet.

-[Unknown]

Offline Spaceman-Spiff

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,524
  • Gender: Male
Re:Lesson Requests
« Reply #3 on: August 31, 2003, 03:47:26 AM »
true, maybe till we get to lesson 50 or something... ^^;

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re:Lesson Requests
« Reply #4 on: August 31, 2003, 09:09:33 AM »
I can give a very bare and simplified lesson on it.  Teaching you how to match simple text and stuff.  But first we have to cover functions as a formal lesson before I can really get to this.

Offline Seph|roth

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
  • Final Fantasy VII: Advent Children
    • Ultimate Weapon Fantasy Gaming Network
Re:Lesson Requests
« Reply #5 on: August 31, 2003, 11:46:00 AM »
My lesson request:

I would like to know how to make a site in php with navigation in this style:
index.php?page=something&menu=style1&... etc.

I know how to do it with 1 variable (index.php?page=something) but i would love to know how to do it with multiple variables so you can have like for every page the appropriate menu, header, footer, ect... like combining them...

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,775
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Re:Lesson Requests
« Reply #6 on: August 31, 2003, 11:52:30 AM »
1 word: $_GET
Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re:Lesson Requests
« Reply #7 on: August 31, 2003, 11:53:45 AM »
My lesson request:

I would like to know how to make a site in php with navigation in this style:
index.php?page=something&menu=style1&... etc.

I know how to do it with 1 variable (index.php?page=something) but i would love to know how to do it with multiple variables so you can have like for every page the appropriate menu, header, footer, ect... like combining them...

actually if you look in the lesson overview, i'll be getting to that.  URL/form processing will be taught in these lessons:

Quote
-POST vs. GET with HTML forms

-how the GET method sends its information

-how the POST method sends its information

Offline Seph|roth

  • Full Member
  • ***
  • Posts: 432
  • Gender: Male
  • Final Fantasy VII: Advent Children
    • Ultimate Weapon Fantasy Gaming Network
Re:Lesson Requests
« Reply #8 on: August 31, 2003, 03:06:54 PM »
ah, i didn't realise it had anything to do with GET and POST.. I'll look out for that lesson then..  ;)

EDIT: stupid me, ofcourse it has a lot to do with GET :P
« Last Edit: September 05, 2003, 08:55:58 AM by Seph|roth »

Offline Aquilo

  • The Black Llama
  • SMF Hero
  • ******
  • Posts: 1,518
  • Gender: Male
  • ‹^^› ‹(-_-)› ‹^^›
    • The Arencibia's
Re:Lesson Requests
« Reply #9 on: September 05, 2003, 12:29:35 AM »
how to install
gd 2.0.15, libpng, zlib, & jpeg-6b or later.
properly!

I am having a time getting into my head what to do mostly because I think I need to install a
c compiler :P

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re:Lesson Requests
« Reply #10 on: September 05, 2003, 07:11:05 AM »
since i don't want to go into THAT much detail (because not even I've actually tries it)... you'll have to give me time to see what I can come up with :)

Offline Overseer

  • Sr. Member
  • ****
  • Posts: 746
  • Gender: Male
    • dubcc.com - West Coast Connection Forum
Re:Lesson Requests
« Reply #11 on: September 05, 2003, 07:37:14 AM »
I don't think so really.. I'm a kinda try it and look for help at the time person.
props though, i'm sure diggin through the lessons will help some immensely.

Offline Aquilo

  • The Black Llama
  • SMF Hero
  • ******
  • Posts: 1,518
  • Gender: Male
  • ‹^^› ‹(-_-)› ‹^^›
    • The Arencibia's
Re:Lesson Requests
« Reply #12 on: September 05, 2003, 08:53:23 AM »
since i don't want to go into THAT much detail (because not even I've actually tries it)... you'll have to give me time to see what I can come up with :)

cool!!! :D

Offline catqueen

  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • To code or not to code
Re:Lesson Requests
« Reply #13 on: September 08, 2003, 12:20:55 PM »
Parham
Not so much a lesson request, but a suggestion for all the lessons. Give assignments. I know you plan to give assignments with the more advanced lessons, but I think you should give suggested drills. It really helps to learn syntax for loops, decision statements, and operators to go through various drills like:

examples:
1. Create a number variable.
2. Create a string variable.
3. Write a while loop that prints the value from a variable as long as the variable is less than 10.
4. Create an array of everyone in your family then write a foreach loop that prints their name.
5. Edit assignment 4 so that it concatenates a phrase with their name.

If you give five or ten exercises for each lesson, people can practice and learn the simple things. This way you can also allow them to build their skills and combine lessons in a simple manner. People who know how to code can skip over this kind of drill, but it could be a real help to people new to coding.

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re:Lesson Requests
« Reply #14 on: September 08, 2003, 11:18:24 PM »
Parham
Not so much a lesson request, but a suggestion for all the lessons. Give assignments. I know you plan to give assignments with the more advanced lessons, but I think you should give suggested drills. It really helps to learn syntax for loops, decision statements, and operators to go through various drills like:

examples:
1. Create a number variable.
2. Create a string variable.
3. Write a while loop that prints the value from a variable as long as the variable is less than 10.
4. Create an array of everyone in your family then write a foreach loop that prints their name.
5. Edit assignment 4 so that it concatenates a phrase with their name.

If you give five or ten exercises for each lesson, people can practice and learn the simple things. This way you can also allow them to build their skills and combine lessons in a simple manner. People who know how to code can skip over this kind of drill, but it could be a real help to people new to coding.

the only reason i'm not doing it for each lesson quite frankly is because it's just too much to look over if people decide to do them.  I will be creating exercises for people to practice the basics too though.  Again, I'm just a little bogged down right now and it's hard to dish these out.

Offline Spaceman-Spiff

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,524
  • Gender: Male
Re:Lesson Requests
« Reply #15 on: September 10, 2003, 05:20:42 PM »
can u pls put the lesson topic in the subject, like:
PHP Lesson 7: Control Structure Part 1
PHP Lesson 8: Control Structure Part 2

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re:Lesson Requests
« Reply #16 on: September 10, 2003, 09:09:29 PM »
Yes, i'll change them right now

Offline Shadow

  • Sophist Member
  • *****
  • Posts: 1,005
  • Gender: Male
  • "Stuff some in your pockets for *secret eating*"
    • Edtl.us
Re:Lesson Requests
« Reply #17 on: September 14, 2003, 12:23:26 AM »
I'd like to know how to create dynamic images, as well as some tips and advice for making captchas. Yes captchas would be nice to learn how to make...
Just do it, go Charter! [Unknown] offered me a spot on the dev team! I swear it!

"Sup foos'! I'm Marshie! Capital M and then arshie! I'm going this way!!!"

Offline Shoeb Omar

  • SMF Friend
  • Full Member
  • *
  • Posts: 515
  • Gender: Male
  • Peace.
    • Clickopedia
Re:Lesson Requests
« Reply #18 on: September 14, 2003, 12:31:38 AM »
captchas?

Offline eFishie

  • The Anti-Llama
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,470
  • Gender: Male
  • Vibin' The Crook
    • The Abstraction Point
Re:Lesson Requests
« Reply #19 on: September 14, 2003, 01:01:13 AM »
I don't know what captchas are, but it sounds cool!
--Jon

Abstraction Point Electronic Music Community - We don't bite! Really! I promise!

Check out my newest song: Alive

Offline Shadow

  • Sophist Member
  • *****
  • Posts: 1,005
  • Gender: Male
  • "Stuff some in your pockets for *secret eating*"
    • Edtl.us
Re:Lesson Requests
« Reply #20 on: September 14, 2003, 02:52:29 AM »
A captcha is a way to tell apart a human from a computer. Most e-mail services use it now days. http://www.captcha.net/
Just do it, go Charter! [Unknown] offered me a spot on the dev team! I swear it!

"Sup foos'! I'm Marshie! Capital M and then arshie! I'm going this way!!!"

Offline Acf

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,967
  • Gender: Male
  • 101101010112
Re:Lesson Requests
« Reply #21 on: September 14, 2003, 07:42:09 AM »
Some php lessons with mysql would be fun :)
Sigh...

Offline eFishie

  • The Anti-Llama
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,470
  • Gender: Male
  • Vibin' The Crook
    • The Abstraction Point
Re:Lesson Requests
« Reply #22 on: September 14, 2003, 10:37:37 AM »
I knew captchas would be cool!! :D
--Jon

Abstraction Point Electronic Music Community - We don't bite! Really! I promise!

Check out my newest song: Alive

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re:Lesson Requests
« Reply #23 on: September 19, 2003, 12:00:52 AM »
i'm going to give a lesson on regexes (afer the main lessons are done) which will give an overview of what regexes are, plus i think i'm only going to explain preg_match and preg_replace (giving word censorship as an example)... mind you, this lesson won't be at all detailed, it will be VERY basic, giving room for the reader to go do research if they wanted to.

Offline Aquilo

  • The Black Llama
  • SMF Hero
  • ******
  • Posts: 1,518
  • Gender: Male
  • ‹^^› ‹(-_-)› ‹^^›
    • The Arencibia's
Re:Lesson Requests
« Reply #24 on: September 19, 2003, 12:21:36 AM »
that would be cool! even though I have read and know where to look I still have problems
getting it into my head about the regexe flags. ::)

Offline webdude

  • Newbie
  • *
  • Posts: 3
  • Gender: Male
  • I'm a llama!
Re:Lesson Requests
« Reply #25 on: September 29, 2003, 08:40:19 AM »
http://www.simplemachines.org/community/index.php?threadid=1690

How about "how to creating a script to randomly load music files" in a browser window??  ;D

Offline pulpitfire

  • Sophist Member
  • *****
  • Posts: 1,132
  • Gender: Male
  • This is what the php parser looks like.
    • Pulpitfire Devotionals
Re:Lesson Requests
« Reply #26 on: November 18, 2003, 10:47:54 AM »
A captcha is a way to tell apart a human from a computer. Most e-mail services use it now days. http://www.captcha.net/

Is that like those pictures they display with a word or number on them, and then ask you to type what you see, to prevent automated registration?

Offline pulpitfire

  • Sophist Member
  • *****
  • Posts: 1,132
  • Gender: Male
  • This is what the php parser looks like.
    • Pulpitfire Devotionals
Re:Lesson Requests
« Reply #27 on: November 18, 2003, 10:55:16 AM »
Some php lessons with mysql would be fun :)

Yeah, one of the areas I'd like to master, is mysql queries.

Offline Symetrix

  • Semi-Newbie
  • *
  • Posts: 51
  • Gender: Male
  • I'm a llama!
Re: Lesson Requests
« Reply #28 on: November 23, 2003, 07:12:43 PM »
I'd like a tutorial on upgrading the various aspects, php, apache, mysql and phpmyadmin (all the components) as they will need upgrading, and it's not as easy to upgrade as it is to install

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Lesson Requests
« Reply #29 on: November 23, 2003, 07:27:36 PM »
I'd like a tutorial on upgrading the various aspects, php, apache, mysql and phpmyadmin (all the components) as they will need upgrading, and it's not as easy to upgrade as it is to install

Yes it is.  I wrote a tutorial on installing, and upgrading is easier still.

-[Unknown]

Offline Symetrix

  • Semi-Newbie
  • *
  • Posts: 51
  • Gender: Male
  • I'm a llama!
Re: Lesson Requests
« Reply #30 on: November 24, 2003, 06:49:01 AM »
I was able to install them fine, but I cant upgrade them at all. I'm trying to upgrade PHP, I downloaded it, installed it, it overwrote the old files, yet it continues to be the old versions. I changed the references in apache that it is loading, but I cant get it to load the new version, no matter what I try. So either it is easy and I'm just missing something dreadfully obvious, or theres some hidden configuring to do somewhere.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Lesson Requests
« Reply #31 on: November 24, 2003, 06:27:24 PM »
You have, umm... restarted, right?  That's a sorta crucial step...

If you overwrote the executable, and you overwrote everything else, it should work... unless it's pointing to the wrong place.

-[Unknown]

Offline Symetrix

  • Semi-Newbie
  • *
  • Posts: 51
  • Gender: Male
  • I'm a llama!
Re: Lesson Requests
« Reply #32 on: November 30, 2003, 07:14:24 PM »
I have restarted, and as far as I can see the installer overwrote all the right files. It was PHP I was installing, and I was installing to c:\php - where it currently is. It replaced files, made backups etc. but it doesnt seem to be updated

Offline Cadish

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
Re: Lesson Requests
« Reply #33 on: December 29, 2003, 09:42:57 AM »
A lesson in MySQL would be great!! MySQL is a great 'function' and many php scripts need this... (like SMF and YaBBSE ;))

And I see lot of users asking help for their MySQL problems :o

Offline Curbow 5

  • Jr. Member
  • **
  • Posts: 186
  • Gender: Male
Re: Lesson Requests
« Reply #34 on: December 29, 2003, 11:34:45 PM »
i'd like a mysql 101 too! i'm getting more familiar with php every day, but i've never made it from flatfile to mysql.... getting what you want through your query, inserting stuff into tables etc. bring it on! :)

Offline Valconeye

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
    • WarCraftWars
Re: Lesson Requests
« Reply #35 on: December 29, 2003, 11:48:16 PM »
I too would like some mysql tuts  :)

Offline Cadish

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
Re: Lesson Requests
« Reply #36 on: December 30, 2003, 02:14:57 AM »
Especially joins and so on... ;)

Offline Bouminok

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,201
Re: Lesson Requests
« Reply #37 on: March 29, 2004, 07:04:20 PM »
Sorry to dig this thread up, but what's the chance of getting a lesson on xml? I need to do a bit of reading up on it myself, cause I haven't a clue about it, but a lesson here might be interesting.

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re: Lesson Requests
« Reply #38 on: March 29, 2004, 08:09:12 PM »
xml is nothing more than you making your own tags and nesting them properly.

Offline Bouminok

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,201
Re: Lesson Requests
« Reply #39 on: March 29, 2004, 08:18:17 PM »
So any half-wit idea I had about it was probably right then?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Lesson Requests
« Reply #40 on: March 30, 2004, 08:50:32 AM »
So any half-wit idea I had about it was probably right then?

Write some questions so I can organize it, and I'll write you one.  Unless you don't like my tutorials :P.

But yes, it's pretty simple ;).

-[Unknown]

Offline Bouminok

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,201
Re: Lesson Requests
« Reply #41 on: March 30, 2004, 12:45:44 PM »
Your tutorials are easy to understand :) So I love them.

I guess questions would be like:
"What is xml?", "How is xml constructed?", "What are the (general) uses of xml?", "How can you use xml with php?"

Pretty basic stuff, just stuff I'm confused about, and anything else I read adds to the confusion. (I think Tyris might like this too ;))


Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re: Lesson Requests
« Reply #42 on: March 30, 2004, 08:46:22 PM »
i can do that, already writing one on file functions... you might have to be a little patient though, i'm running into the last weeks of my second university year, and professors are giving assignments again, not to mention i have to study and prepare for my final exams.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Lesson Requests
« Reply #43 on: March 31, 2004, 02:59:59 AM »

Offline Bouminok

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,201
Re: Lesson Requests
« Reply #44 on: March 31, 2004, 06:14:50 AM »
:D Thanks [Unknown]

Offline foxy

  • Semi-Newbie
  • *
  • Posts: 28
Re: Lesson Requests
« Reply #45 on: April 04, 2004, 08:18:33 AM »
The only thing I would like and thanks Parham for all your hardwork in producing these tuts, would be if all the lessons were put into a zip(I know I could save each one(lazy sod me)) so that we could download them and and then run them in our own time and be able to print them for quick ref.

Offline Parham

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,317
  • Gender: Male
  • #!/usr/bin/perl
    • Online Node
Re: Lesson Requests
« Reply #46 on: April 04, 2004, 11:04:04 AM »
LOL
highlight tutorial -> click on "file" -> click on "print" -> choose "selection" -> click "print" - > have a good day ^^

Offline foxy

  • Semi-Newbie
  • *
  • Posts: 28
Re: Lesson Requests
« Reply #47 on: April 04, 2004, 11:13:58 AM »
Cheers M8 and once again thanks

Offline icman

  • Semi-Newbie
  • *
  • Posts: 30
    • php & Webmaster & SEO Tools
Re: Lesson Requests
« Reply #48 on: February 14, 2007, 05:51:14 PM »
Thank ..Parham
Show PageRank On Your site

http://meelink.com/Google-PageaRank-Indicator.php
Webmaster & SEO Tools Top google make it esay
http://www.meelink.com
Php website
http://www.mindphp.com
My Forum site witch ptc
http://ptc.icphysics.com/webboard/SFM/index.php
Thailand Domain Company Search
http://thaiwebdirectories.meelink.com

Offline St@rm

  • Semi-Newbie
  • *
  • Posts: 42
Re: Lesson Requests
« Reply #49 on: February 27, 2007, 06:20:30 PM »
I would like to have some lessons to,lol.

Offline UNC Man

  • Newbie
  • *
  • Posts: 1
Re: Lesson Requests
« Reply #50 on: June 03, 2007, 03:49:36 PM »
I am totally new to PHP. If someone would help me with  this I would be very happy. But my other question is: On the top menu bar(admin, calender, search...) how do I add something?

Offline Wal-Mart Security

  • Full Member
  • ***
  • Posts: 550
  • Defender of Simplemachines
    • Achilleus Technologies
Re: Lesson Requests
« Reply #51 on: June 16, 2007, 03:06:45 AM »
Look in either index.template.php or boardindex.template.php, I'm not sure which.  The function is near the bottom.
Achilleus Technologies
Ace Gaming Syndicate
PART TIME SMF CHARTER MEMBER 4LIFE

SMF slays phpbb, puts it in an IPB coffin, and buries them both with the ashes of vBulletin.

Offline RogueDOC

  • Semi-Newbie
  • *
  • Posts: 31
Re: Lesson Requests
« Reply #52 on: June 23, 2007, 07:22:24 PM »
 I have a question. what is "page.php?p=trailer"? I've seen this on a site. I have used your "index.php?page=apples" tutorial and loved it. Makes making sites easier. But i was wondering how that code was used.

Offline ran_september

  • Newbie
  • *
  • Posts: 1
Re: Lesson Requests
« Reply #53 on: July 31, 2007, 08:04:27 PM »
i'm working with my project now: our org's homepage and i'm starting to program the forum session. please help me to understand what is $_session all about. what type of $_session would i use and where do i start? and i am an amateur in php!

Offline Wal-Mart Security

  • Full Member
  • ***
  • Posts: 550
  • Defender of Simplemachines
    • Achilleus Technologies
Re: Lesson Requests
« Reply #54 on: August 15, 2007, 11:40:09 AM »
I have a question. what is "page.php?p=trailer"? I've seen this on a site. I have used your "index.php?page=apples" tutorial and loved it. Makes making sites easier. But i was wondering how that code was used.

Sorry I didn't get back on this till just now, you might try reading the Wal-Mart Guide to an Index Action Array.
Achilleus Technologies
Ace Gaming Syndicate
PART TIME SMF CHARTER MEMBER 4LIFE

SMF slays phpbb, puts it in an IPB coffin, and buries them both with the ashes of vBulletin.

Offline Legend.

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
  • Creating my first mod ^_^
Re: Lesson Requests
« Reply #55 on: June 12, 2008, 04:38:46 AM »
hey guys!

Thanks for the tutorials, it's really fun!

Was just wondering if there's an ebook or just a combined edition of all the lessons? That would make the learning a lot easier than browsing through each page on the net.

Thanks nywy!!! :)

*****-- -- -- No to DICTATORSHIP, do it the Google way: DON'T BE EVIL -- -- --*****

Ban me too, for all I care