News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Lesson Requests

Started by Parham, August 31, 2003, 12:03:49 AM

Previous topic - Next topic

Parham

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.

Spaceman-Spiff

i'd always want to learn regex :P
and i'm sure you're good at it, Parham...

[Unknown]

Regular Expressions are fun, but imho - to advanced as yet.

-[Unknown]

Spaceman-Spiff

true, maybe till we get to lesson 50 or something... ^^;

Parham

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.

Seph|roth

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...

Joshua Dickerson

Come work with me at Promenade Group



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?

Parham

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

Seph|roth

#8
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

Aquilo

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

Parham

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 :)

Overseer

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.

Aquilo

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

catqueen

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.

Parham

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.

Spaceman-Spiff

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

Parham

Yes, i'll change them right now

Shadow

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!!!"

Shoeb Omar


eFishie

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

Shadow

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!!!"

Acf

Some php lessons with mysql would be fun :)
Sigh...

eFishie

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

Parham

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.

Aquilo

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. ::)

webdude

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

pulpitfire

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?

pulpitfire

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.

Symetrix

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

[Unknown]

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]

Symetrix

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.

[Unknown]

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]

Symetrix

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

Cadish

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

Curbow 5

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! :)

Valconeye

I too would like some mysql tuts  :)

Cadish

Especially joins and so on... ;)

bostasp

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.

Parham

xml is nothing more than you making your own tags and nesting them properly.

bostasp

So any half-wit idea I had about it was probably right then?

[Unknown]

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]

bostasp

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 ;))


Parham

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.


bostasp


foxy

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.

Parham

LOL
highlight tutorial -> click on "file" -> click on "print" -> choose "selection" -> click "print" - > have a good day ^^

foxy

Cheers M8 and once again thanks

icman

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

St@rm

I would like to have some lessons to,lol.

UNC Man

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?

Wal-Mart Security

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.

RogueDOC

 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.

ran_september

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!

Wal-Mart Security

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.
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.

Legend.

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


Advertisement: