Our Scripts Vault contains many game scripts that you can use to create your own game!
Nevermind, I won't convince anyone anyway...
This feature is officially deprecated as of PHP 5.3.0, and removed in PHP 6 due to security concerns.
Quote from: Chris on November 19, 2009, 02:48:01 PMNevermind, I won't convince anyone anyway... Well, when the developers of PHP are saying not to use it, I would think you should be convincing yourself that magic_quotes = Microsoft = evil.
QuoteThis feature is officially deprecated as of PHP 5.3.0, and removed in PHP 6 due to security concerns.Hope your code doesn't rely on it when you switch to PHP 6.
require (dirname (__FILE__) . '/' . $whatever_I_really_want_here);
require (__DIR__ . '/' . $whatever_I_really_want_here);
or the inceredible ASP (that fooled some young ones to use it instead of something normal, and they clould turn into dangerous competitors otherwise).
So long story short dynamic web developers picked up ASP first because there was no PHP!!!!
Being that I was in the beta group for ASP (when it was code named Delphi) I take a bit of offense to this statement
Microsoft servers are both memory and processor hungry because they are going after big business
Ok first of the question at hand, for user names and passwords I use the following code:if( !preg_match("/^[\\w-_]*[\\w-_]$/", $login_name ) ) { header("location: password.php"); exit;}This will only allow alpha, numeric and - _ I still run all my queries though the XCDB or ADODB databases classes that sanitize the query string but you can never be to cautious Plus I don't like really funky quasi graphical names in my games.If I were at the level you are now I would look at creating a function that automatically cleans SQL statements. Typing out queries like the one you posted gets real old real fast, we have the technology lets us it Plus as things change down the road it's easier to rewrite one function for all your mySQL queries.
But, the position that I currently hold was made possible because <nda protected> decided they didn't like Joomla so they hired <nda protected> to make them a new site. They decided on Drupal because they wanted an open-source solution. Unfortunately, <nda protected> didn't have any Drupal developers so they hired me because when I worked for <nda protected> they required me to learn Drupal.
Joomla eh? How deep into it are you? lol I've dealt with a few people regarding Joomla (despite having ZERO experience with Joomla) and they've all decided to utilize Drupal instead. I did mess around a little with Joomla for a friend of mine and I have to agree that the interface is horrid and not-at-all user-friendly. Not that I'm really a huge fan of Drupal either (um, how about giving me the ability in core to set one database server for reads and another for writes... <sarcasm>thanks Drupal!</sarcasm>).But, the position that I currently hold was made possible because <nda protected> decided they didn't like Joomla so they hired <nda protected> to make them a new site. They decided on Drupal because they wanted an open-source solution. Unfortunately, <nda protected> didn't have any Drupal developers so they hired me because when I worked for <nda protected> they required me to learn Drupal.I really wonder why these companies are so adverse to having you state that you provide them service. lol And is it, technically, a violation of my NDA agreements when I put them on my resume? lol Oh the realms my mind wanders to when I go off-topic. So, back on topic: the post above by dbest is also good if you want to limit to alpha-numeric characters. It'll just make me roll my eyes when I sign up and have to enter only letters and numbers for my password (giving only a total of 36 character possibilities for anyone trying to crack rather than, literally, thousands).