Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I recently asked the question "Defending against XSS and SQL injection for a PHP beginner", which has been closed as too broad.

I'd like to edit the question so that it can be reopened and/or have it migrated to Programmers Stack Exchange. What is the best way to go about doing this, and does it belong on

share|improve this question

closed as off-topic by bwDraco, michaelb958, Al E., hims056, Azik Apr 22 '14 at 5:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question pertains only to a specific site in the Stack Exchange Network. Questions on Meta Stack Exchange should pertain to our network or software that drives it as a whole, within the guidelines defined in the help center. You should ask this question on the meta site where your concern originated." – bwDraco, michaelb958, Al E., hims056, Azik
If this question can be reworded to fit the rules in the help center, please edit the question.

"What are the most common attacks in simple web applications, and how do I defend against them?" -> – Yannis Sep 24 '13 at 19:15
"What should I know" type questions are fundamentally too broad for StackOverflow, and most likely Programmers as well. Did you go through all the links provided in the comments in depth? – Dukeling Sep 24 '13 at 19:15
I've narrowed the focus of the question. – bwDraco Sep 24 '13 at 19:20
@DragonLordtheFiery Now your question is a dupe of this:… – Yannis Sep 24 '13 at 19:29
I wish there was a community FAQ about this, and I wish this was easier to understand for beginners... – bwDraco Sep 24 '13 at 19:30
A community FAQ for what, exactly? – Oded Sep 24 '13 at 20:05
@Oded: PHP security basics. – bwDraco Sep 24 '13 at 20:42
@DragonLordtheFiery Books can be written on the subject. It's well beyond the scope of a single SO question. If you really want to know all about it go buy a book about it, rather than asking on SO. – Servy Sep 24 '13 at 20:48
A community maintained PHP FAQ already exists: – Yannis Sep 24 '13 at 21:14
I'm working on a PHP security reference on my personal web site: It is a work in progress but it will be based on the OWASP material and Stack Overflow answers. – bwDraco Sep 24 '13 at 22:14
Because the old Meta Stack Overflow is now Meta Stack Exchange, I am voting to close this question as it is specific to Stack Overflow. – bwDraco Apr 22 '14 at 0:35
up vote 9 down vote accepted

I agree that the topic of the question was too broad. I don't think that will receive it any better.

You were given three links in the comments of your question on the main site. Check those out.

You already know what terms to search for, and it appears that you're already researching it from your comment on the main site:

I am aware of stuff like mysqli_real_escape_string(), but I want to see examples on how to use it.

You're on the right track! Now find some examples and read the explanations of how/why they work to stave off SQL injection.

If you get stuck, then come back to the main site, post code showing what's bugging you, and you'll get help.

The more specific the questions, the better.

share|improve this answer
Thanks for the guidance. I'll come back and post another question if I run into problems. – bwDraco Sep 24 '13 at 20:43

Not the answer you're looking for? Browse other questions tagged .