1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

PHP Security and SQL Injection?

I understand that if I put up a password dialog in my php / mySQL website that I open the site up to security hazards like SQL injection in which a skillful vandal could actually change a great deal of data or erase data in my mySQL database.

How can you secure a website that uses PHP / mySQL?
————–
Thanks to everyone for all of the answers.

Do I understand correctly that I should call the following function on all input before making it a part of my SQL query and that this function will take care of any SQL injection problems?

mysql_real_escape_string()

Is this all that I need to do is call this function on all user input?

http://uk3.php.net/mysql_real_escape_string

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

What is the “.inc” for in “php.inc”?

Hello,

I have a couple of PHP programs that use scripts that have a “.inc” on the end of the file name, like “index.php.inc”, instead of the usual “index.php”. I believe I this is for security reasons, so it can not be rendered the same way a regular PHP file can, but I have a few questions about it?

1) What is this procedure called in PHP programming terminology?
2) How can this be used?
3) What are the limitations or benefits of using this extension vs. the regular “.php” file extension?

Pre-thanks to all whom respond.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Why does Obama want to give $30 Billion to Israel ?

He said that to the AIPAC.
Here is the transcript on NPR.org

http://www.npr.org/templates/story/story.php?storyId=91150432

Here is the quote:
As president, I will implement a Memorandum of Understanding that provides $30 billion in assistance to Israel over the next decade — investments to Israel’s security that will not be tied to any other nation. First, we must approve the foreign aid request for 2009.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Obama proposes shifting Governor control of the National Guard to Federal Control?

Gee, what do you suppose he would do with such a large centrally controlled domestic security force?
And to WHOM?
Doesn’t this sound like Mugabe’s personal army which suppressed the voter turnout and inflicted harm against the opposition party in Zimbabwe?
How convenient, Obama’s own personal domestic army to control the populous?
Why would he want to change the directive and structure of The National Guard?

http://forums.hannity.com/showthread.php?t=728511

“We cannot continue to rely only on our military in order to achieve the national security objectives that we have set. We have got to have a civilian national security force that is just as powerful, just as strong, just as well funded.”
Holy Crap! He wants a domestic centrally controlled army that’s as well funded as the current military!

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

does classes give php better performance , and better Interpretation from apache?

Are there any benefits from classes other than better security and better code handling from the programmer side ??thanks.

Netflix, Inc.

TigerDirect