Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Reply
Old 03-09-2009, 02:27 PM   #11 (permalink)
Spit-wad's Avatar
 
Bake a Pretty Cake!

Join Date: Jun 2008

Location: Madison, WI

Posts: 718

Spit-wad will become famous soon enough

Default Re: My PHP Video Tutorials

well since I don't know the syntax, the actual code was a bit over my head cuz you went pretty fast... but I can just go back and pause to look at it, so that's not a problem

basically had more trouble understanding the general setup of the whole thing... i think i just need to read up a bit, np
Spit-wad is offline   Reply With Quote
Old 03-09-2009, 03:08 PM   #12 (permalink)
vernong1992's Avatar
 

Join Date: Dec 2006

Posts: 19,769

vernong1992 is a jewel in the roughvernong1992 is a jewel in the roughvernong1992 is a jewel in the rough

Default Re: My PHP Video Tutorials

I subscribed to this.. I need this
__________________
I do not accept support requests or deleted threads/complaints about Infractions you've received by PM, Profile or IM/Email. Just ask on the forums!


If I help you, or you just like what I said, rep me by clicking the
or under my avatar; it helps me know that my advice actually helped you.


Planned Rig of 2007:

.. But things don't go according to plan! My Actual Rig, 2009:
vernong1992 is offline   Reply With Quote
Old 03-09-2009, 07:03 PM   #13 (permalink)
 

Join Date: Jul 2005

Location: England

Posts: 2,035

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: My PHP Video Tutorials

Good tutorials there but it looks like login.php is vulnerable to SQL injection.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is offline   Reply With Quote
Old 03-09-2009, 10:32 PM   #14 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,681

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: My PHP Video Tutorials

Quote:
Originally Posted by kmote View Post
Good tutorials there but it looks like login.php is vulnerable to SQL injection.
As it is only a basic tutorial, I didn't do much with security. However, mysql_escape_strings will pretty much eliminate SQL injection, by escaping any illegal characters. If you wanted to take it a bit further, you could use some regex to custom filter the data before you do any queries.
__________________

Need website help? PM me!
CrazeD is online now   Reply With Quote
Old 03-10-2009, 09:07 AM   #15 (permalink)
 

Join Date: Jul 2005

Location: England

Posts: 2,035

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: My PHP Video Tutorials

I just checked again and actually I now think you are safe with what you have. I should think then type lol.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is offline   Reply With Quote
Old 03-10-2009, 06:26 PM   #16 (permalink)
Spit-wad's Avatar
 
Bake a Pretty Cake!

Join Date: Jun 2008

Location: Madison, WI

Posts: 718

Spit-wad will become famous soon enough

Default Re: My PHP Video Tutorials

Do you have to pay for the MySQL stuff?
Spit-wad is offline   Reply With Quote
Old 03-10-2009, 06:56 PM   #17 (permalink)
 

Join Date: Jul 2005

Location: England

Posts: 2,035

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: My PHP Video Tutorials

Nope, nor do you have to pay for apache or PHP.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is offline   Reply With Quote
Old 03-10-2009, 07:20 PM   #18 (permalink)
Spit-wad's Avatar
 
Bake a Pretty Cake!

Join Date: Jun 2008

Location: Madison, WI

Posts: 718

Spit-wad will become famous soon enough

Default Re: My PHP Video Tutorials

what do I need to download? I found some things that said 30-day trial, which made me ask that question.
Spit-wad is offline   Reply With Quote
Old 03-10-2009, 10:08 PM   #19 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,389

office politics will become famous soon enough

Default Re: My PHP Video Tutorials

Quote:
Originally Posted by CrazeD View Post
As it is only a basic tutorial, I didn't do much with security. However, mysql_escape_strings will pretty much eliminate SQL injection, by escaping any illegal characters. If you wanted to take it a bit further, you could use some regex to custom filter the data before you do any queries.
i did a quick search and found the following thread. The posters say mysql_real_escape_strings is more secure.

I'm wondering if it would be possible to run subqueries. i think you need parathenses.

PHP Code - Help Needed - Dev Shed


edit - here's a read for ya

Reviewing Code for SQL Injection - OWASP

Last edited by office politics; 03-10-2009 at 10:15 PM.
office politics is offline   Reply With Quote
Old 03-10-2009, 10:25 PM   #20 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,681

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: My PHP Video Tutorials

Quote:
Originally Posted by Spit-wad View Post
what do I need to download? I found some things that said 30-day trial, which made me ask that question.
A Guide to Installing Apache, PHP, MySQL, and PHPMyAdmin on Windows

Here you go.

@ office_politics:

mysql_real_escape_string doesn't make a difference for the standard latin1 character set. Its only difference is that it escapes for more character sets.

Also, by subqueries, do you mean multiple queries? You need to use PHP's mysqli for that.
__________________

Need website help? PM me!
CrazeD is online now   Reply With Quote
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello TF Guys, Gals, and Members -- WE ARE MOVING Larry Rules, News and Announcements 35 08-18-2008 04:15 AM