[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 02-20-2007, 06:31 AM   #1 (permalink)
Account Suspended
 
TUFKATH's Avatar
 
Join Date: Sep 2005
Location: Canada
Posts: 1,381
0.00 NP$ (Donate)

TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice


Where can I learn?

I see all these neat scripts and I always wonder how people make them. The php ones that is. I want to know how to make a small website that has the option of registration and logging in, and then posting something in a certain section. Not a forum though by any means. Just basic stuff. Where can I learn how to do that?
TUFKATH is offline  
Old 02-20-2007, 06:46 AM   #2 (permalink)
Adrian
 
Hitch's Avatar
 
Join Date: Aug 2005
Location: Uk, South Yorkshire
Posts: 1,227
16.00 NP$ (Donate)

Hitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to behold

Animal Rescue Third World Education Find Marrow Donors!
Just learn by looking at tutorials and code.

It doesn't nessaraly mean looking at a Registration System, just any type of code, and "peice" it together.

Though, to make what you want, you should really read up on MySql, and Cookies (Or Sessions, but Cookies are better. )

You can find alot of tutorials at www.pixel2life.com
And, good MySql ones at www.spoono.com

It require logic to be used, you just have to think what MySql structure would be best, and how to exexute conditionals.

Adrian
__________________
NamePros
Hitch is online now  
Old 02-20-2007, 06:53 AM   #3 (permalink)
Account Suspended
 
TUFKATH's Avatar
 
Join Date: Sep 2005
Location: Canada
Posts: 1,381
0.00 NP$ (Donate)

TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice


I also need to learn mysql as well it seems. and cookies cant be that complicated can they?
TUFKATH is offline  
Old 02-20-2007, 08:44 AM   #4 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,546
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of

Adoption Breast Cancer Breast Cancer Cancer Survivorship
I'm 15, mildly dyslexic and have an extremely short attention span. And i can do it, rarely with any trouble.

Everything you need can be found on two sites,

http://pixel2life.com - as mentioned by Hitch
http://manual.php.net - (all php programmers will use this at some point as a reference)
http://dev.mysql.com/doc/refman/5.0/en/ - MySQL manual (i don't use this so much personally, i would strongly recommend using pixel2life to lookup database integration)

I did it the only way i learn, but taking other peoples work and tearing it to shreds finding out what i broke and why it broke.

Take your time with it as well, you can learn a certain extent over a few days however nothing like what comes with a few months, or years in my case, experience. One ting is for sure, you never stop learning. :P


Matt
__________________
My NamePros Tools
(firefox plugin, google gadget etc)

Last edited by Matthew.; 02-20-2007 at 08:50 AM.
Matthew. is offline  
Old 02-20-2007, 09:17 AM   #5 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
Personally I would advise you to get a book to learn the basics even if it is just borrowed from your local library. A book or a mentor will give you a much better foundation than learning from tutorials scattered around the internet.

After that you will have a much better grasp and will understand the manual much better.

Quote:
Originally Posted by Hitch
Though, to make what you want, you should really read up on MySql, and Cookies (Or Sessions, but Cookies are better. )
Why do you say that? Surely he would be better learning using sessions more especially since you can use the standard session handler to handle the cookies for you or get it to decide wether cookies can be used or if there is a need for an appnded url.
Peter is offline  
Old 02-20-2007, 09:26 AM   #6 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


It took me a few days of looking at basic scripts to figure out how to make a login/registration system with mysql and sessions (then again, I live on the computer =P), what I did was look at different form and database tutorials, then I found sessions when looking for a way to keep people logged in.
I would say that www.php.net is the best resource, however you need to be able to make a reasonable guess as to the function name when looking up new ones.
Barrucadu is offline  
Old 02-20-2007, 12:11 PM   #7 (permalink)
Account Closed
 
Join Date: Sep 2006
Posts: 1,075
365.60 NP$ (Donate)

YesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to all


Another great resource is http://www.w3schools.com/

Not only about PHP though...

Enjoy.
YesBrilliant is offline  
Old 02-20-2007, 01:03 PM   #8 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,546
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of

Adoption Breast Cancer Breast Cancer Cancer Survivorship
Quote:
Originally Posted by filth@flexiwebhost
Personally I would advise you to get a book to learn the basics even if it is just borrowed from your local library. A book or a mentor will give you a much better foundation than learning from tutorials scattered around the internet.
I would advise it against it actually, why? Many of the books are outdated and written by coders who have a poor or "sub standard" coding method. I know i never found books any good and when this has come up before most have agreed with me.(also online tutorial are much more versatile, while it may be you have to pick out the betters ones - each persons unique coding style will aid someone with their own imo)

Having said that each person knows how they learn best.
Quote:
Why do you say that? Surely he would be better learning using sessions more especially since you can use the standard session handler to handle the cookies for you or get it to decide wether cookies can be used or if there is a need for an appnded url.
that sentence is a classic case of over technical crap. Lets go back to laymen's terms especially when dealing with begginers. You want a basic login system? Go for cookies, for obvious reasons (i.e. they can keep a user logged in as opposed to session based logins)

And I'm going to say something controversial lol:
Ignore the rubbish you read about cookies being less secure than sessions, most who write that are merely incapable of validating the cookies contents and writing secure enough code to ensure cookies do not cause issues

Matt
__________________
My NamePros Tools
(firefox plugin, google gadget etc)
Matthew. is offline  
Old 02-20-2007, 10:21 PM   #9 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
Quote:
Originally Posted by Matthew.
that sentence is a classic case of over technical crap. Lets go back to laymen's terms especially when dealing with begginers. You want a basic login system? Go for cookies, for obvious reasons (i.e. they can keep a user logged in as opposed to session based logins)
Why try reinvent the wheel when php has already done it. PHP can perfectly satisfactorily handle sessions. For a beginner he may go and design a piece of code that works perfectly if cookies are enabled, he will then spend just as much time wondering why it is not working for someone else who incidentally just has cookies turned off.

Quote:
Originally Posted by Matthew.
And I'm going to say something controversial lol:
Ignore the rubbish you read about cookies being less secure than sessions, most who write that are merely incapable of validating the cookies contents and writing secure enough code to ensure cookies do not cause issues
I agree that cookies are no less insecure than sid sessions if used correctly and no sensitive information is stored in them (beleive it or not but some people store passwords etc in cookies).

Quote:
Originally Posted by Matthew.
I would advise it against it actually, why? Many of the books are outdated and written by coders who have a poor or "sub standard" coding method. I know i never found books any good and when this has come up before most have agreed with me.(also online tutorial are much more versatile, while it may be you have to pick out the betters ones - each persons unique coding style will aid someone with their own imo)

Having said that each person knows how they learn best.
Of course books can go out of date but that is why you should check reveiws of the book before using properly, it is also worth looking into who the authors actually are, if for example searching google you can only find them with regards to that book then they are unlikely going to be valued leading members of the community but for example if the book is written by Chris Shiflett you know it should be fairly technically correct (especially in security as he seems to specialise in it). A good book will teach you better about security such as validating user input. If you rely on tutorials if you do not know about something you are unlikely be able to find a tutorial about it. So if you do not know about validation how would you know about searching for a tutorial on it (and beleive me alot of tutorials for brevity reasons do not even touch subjects like this nor subjects such as database poisoning etc).
Peter is offline  
Old 02-20-2007, 11:02 PM   #10 (permalink)
NamePros Regular
 
Join Date: Jul 2005
Posts: 274
38.00 NP$ (Donate)

TrafficSecret is just really niceTrafficSecret is just really niceTrafficSecret is just really niceTrafficSecret is just really niceTrafficSecret is just really nice


Hi Taylor!

There are some nice PHP books you can buy online at amazon.com or what helped me the best is to learn from examples... If you dont know how to do something.. find a script that has that.. rebuild it from scratch.. you will soon learn how things function.. It takes time, but its worth it!
__________________
~TrafficSecret~
KickAssMovies.com - Funny Movies and Hot Babes
Unsober.com - Drunken Media
OvtCheck.com - Domain Tools
HumorTrade.com - Humor Site Banner Exchange
TrafficSecret is offline  
Old 07-26-2007, 02:36 PM   #11 (permalink)
NamePros Regular
 
BoutiqueMusic's Avatar
 
Join Date: Jun 2007
Location: Lombard, IL
Posts: 288
255.00 NP$ (Donate)

BoutiqueMusic will become famous soon enoughBoutiqueMusic will become famous soon enough


I was looking for some advice. This should get me started.
__________________
Guitar Amps l Sierra Guitars l Worlds Coolest Amp l Guitar Cabinets l Online Music Store
Free Advertising - Get millions of visitors for your website for FREE!
BoutiqueMusic is offline  
Old 07-26-2007, 03:07 PM   #12 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
Thread closed, seeing as how this member is banned. However, this thread will remain, just in case someone can find the info useful.
__________________
Eric is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:45 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85