Computing.Net > Forums > Web Development > Secure PHP - SQL Injects, etc

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Secure PHP - SQL Injects, etc

Reply to Message Icon

Name: drsmartman
Date: April 8, 2004 at 15:29:31 Pacific
OS: Linux
CPU/Ram: NA
Comment:

Hi all,

Not sure if this forum is more for programming or front-end issues. Anyway, I'll try my luck here. Basically, I'm looking for any recommended articles on secure PHP and serever-side programming in general...best practices, preventing global variables, SQL injects, etc....I'm doing my own research, but always enjoy your thoughts....

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: April 8, 2004 at 21:13:22 Pacific
Reply:

At the risk of sounding obvious, you may want to read the PHP Manual section on security.

Personally, after learning about the security risks, I never turn on register_globals. I access all data through the superglobals ($_POST, $_Get, etc.)

Another often overlooked security issue is that of simply keeping your code secret...It's a lot tougher to break if they can't read it to find its vulnerabilities. That is discussed on the page linked above.

-SN


0

Response Number 2
Name: drsmartman
Date: April 9, 2004 at 13:08:44 Pacific
Reply:

Thanks....good read. The Zend site had some nice
articles too.

When you work in PHP, what are you most pressing
security concerns? Global vars? SQL injects?
Command-line execution? Not putting "secure"
information in the clear URL? Am I missing anything?

SN...you should know by now....nothing is obvious to
me! lol....thanks!


0

Response Number 3
Name: anonproxy
Date: April 9, 2004 at 17:05:41 Pacific
Reply:

"When you work in PHP, what are you most pressing security concerns?"

Implement security below the application level whenever possible. The other obvious ones are:

- only allow functions to be used the way you intended or not at all
- don't trust user input
- don't trust any input
- keep permissions data seperate from code and other data
- patch your software
- test every configuration setting or assume it doesn't work (and then test it or disable it)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


mySQL database Start local file using HT...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Secure PHP - SQL Injects, etc

submitting form contents w/ php&Sql www.computing.net/answers/webdevel/submitting-form-contents-w-phpampsql/893.html

SQL Injection www.computing.net/answers/webdevel/sql-injection/2092.html

Dam PHP! www.computing.net/answers/webdevel/dam-php/752.html