Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Parham's PHP Tutorials => Topic started by: Parham on August 31, 2003, 12:03:49 AM

Title: Lesson Requests
Post by: Parham 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.
Title: Re:Lesson Requests
Post by: Spaceman-Spiff 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...
Title: Re:Lesson Requests
Post by: [Unknown] on August 31, 2003, 03:39:52 AM
Regular Expressions are fun, but imho - to advanced as yet.

-[Unknown]
Title: Re:Lesson Requests
Post by: Spaceman-Spiff on August 31, 2003, 03:47:26 AM
true, maybe till we get to lesson 50 or something... ^^;
Title: Re:Lesson Requests
Post by: Parham 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.
Title: Re:Lesson Requests
Post by: Seph|roth 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...
Title: Re:Lesson Requests
Post by: Joshua Dickerson on August 31, 2003, 11:52:30 AM
1 word: $_GET
Title: Re:Lesson Requests
Post by: Parham on August 31, 2003, 11:53:45 AM
Quote from: Seph|roth 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...

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
Title: Re:Lesson Requests
Post by: Seph|roth 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
Title: Re:Lesson Requests
Post by: Aquilo 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
Title: Re:Lesson Requests
Post by: Parham 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 :)
Title: Re:Lesson Requests
Post by: Overseer 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.
Title: Re:Lesson Requests
Post by: Aquilo on September 05, 2003, 08:53:23 AM
Quote from: Parham 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 :)

cool!!! :D
Title: Re:Lesson Requests
Post by: catqueen 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.
Title: Re:Lesson Requests
Post by: Parham on September 08, 2003, 11:18:24 PM
Quote from: catqueen 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.

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.
Title: Re:Lesson Requests
Post by: Spaceman-Spiff 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
Title: Re:Lesson Requests
Post by: Parham on September 10, 2003, 09:09:29 PM
Yes, i'll change them right now
Title: Re:Lesson Requests
Post by: Shadow 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...
Title: Re:Lesson Requests
Post by: Shoeb Omar on September 14, 2003, 12:31:38 AM
captchas?
Title: Re:Lesson Requests
Post by: eFishie on September 14, 2003, 01:01:13 AM
I don't know what captchas are, but it sounds cool!
Title: Re:Lesson Requests
Post by: Shadow 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/
Title: Re:Lesson Requests
Post by: Acf on September 14, 2003, 07:42:09 AM
Some php lessons with mysql would be fun :)
Title: Re:Lesson Requests
Post by: eFishie on September 14, 2003, 10:37:37 AM
I knew captchas would be cool!! :D
Title: Re:Lesson Requests
Post by: Parham 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.
Title: Re:Lesson Requests
Post by: Aquilo 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. ::)
Title: Re:Lesson Requests
Post by: webdude on September 29, 2003, 08:40:19 AM
http://www.simplemachines.org/community/index.php?threadid=1690 (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
Title: Re:Lesson Requests
Post by: pulpitfire on November 18, 2003, 10:47:54 AM
Quote from: Shadow 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/

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?
Title: Re:Lesson Requests
Post by: pulpitfire on November 18, 2003, 10:55:16 AM
Quote from: </Acf> on September 14, 2003, 07:42:09 AM
Some php lessons with mysql would be fun :)

Yeah, one of the areas I'd like to master, is mysql queries.
Title: Re: Lesson Requests
Post by: Symetrix 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
Title: Re: Lesson Requests
Post by: [Unknown] on November 23, 2003, 07:27:36 PM
Quote from: Symetrix 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

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

-[Unknown]
Title: Re: Lesson Requests
Post by: Symetrix 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.
Title: Re: Lesson Requests
Post by: [Unknown] 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]
Title: Re: Lesson Requests
Post by: Symetrix 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
Title: Re: Lesson Requests
Post by: Cadish 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
Title: Re: Lesson Requests
Post by: Curbow 5 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! :)
Title: Re: Lesson Requests
Post by: Valconeye on December 29, 2003, 11:48:16 PM
I too would like some mysql tuts  :)
Title: Re: Lesson Requests
Post by: Cadish on December 30, 2003, 02:14:57 AM
Especially joins and so on... ;)
Title: Re: Lesson Requests
Post by: bostasp 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.
Title: Re: Lesson Requests
Post by: Parham on March 29, 2004, 08:09:12 PM
xml is nothing more than you making your own tags and nesting them properly.
Title: Re: Lesson Requests
Post by: bostasp on March 29, 2004, 08:18:17 PM
So any half-wit idea I had about it was probably right then?
Title: Re: Lesson Requests
Post by: [Unknown] on March 30, 2004, 08:50:32 AM
Quote from: bostasp on March 29, 2004, 08:18:17 PM
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]
Title: Re: Lesson Requests
Post by: bostasp 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 ;))

Title: Re: Lesson Requests
Post by: Parham 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.
Title: Re: Lesson Requests
Post by: [Unknown] on March 31, 2004, 02:59:59 AM
http://unknown.network32.net/tutorial.what-is-xml

-[Unknown]
Title: Re: Lesson Requests
Post by: bostasp on March 31, 2004, 06:14:50 AM
:D Thanks [Unknown]
Title: Re: Lesson Requests
Post by: foxy 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.
Title: Re: Lesson Requests
Post by: Parham 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 ^^
Title: Re: Lesson Requests
Post by: foxy on April 04, 2004, 11:13:58 AM
Cheers M8 and once again thanks
Title: Re: Lesson Requests
Post by: icman on February 14, 2007, 05:51:14 PM
Thank ..Parham
Title: Re: Lesson Requests
Post by: St@rm on February 27, 2007, 06:20:30 PM
I would like to have some lessons to,lol.
Title: Re: Lesson Requests
Post by: UNC Man 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?
Title: Re: Lesson Requests
Post by: Wal-Mart Security 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.
Title: Re: Lesson Requests
Post by: RogueDOC 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.
Title: Re: Lesson Requests
Post by: ran_september 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!
Title: Re: Lesson Requests
Post by: Wal-Mart Security on August 15, 2007, 11:40:09 AM
Quote from: RogueDOC 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.

Sorry I didn't get back on this till just now, you might try reading the Wal-Mart Guide to an Index Action Array (http://www.simplemachines.org/community/index.php?topic=171384.0).
Title: Re: Lesson Requests
Post by: Legend. 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!!! :)