Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
There is an editor called LyX which you can use if you don't feel like typing it in plain text. I believe they call it a WYSIWYM (what you see is what you mean) editor. I think it's available on all platforms. You can of course also just use vim and the CLI.
-
implementing state behaviour in stateless world...
Daniel0 replied to JonasLAX's topic in Application Design
Can't you just store it in sessions? Incidentally, I once wrote a tutorial named almost like this topic. -
As you see, you've been given an exclusive preview to the new looks of (Sxy)PHPFreaks. Further preparations will have to be made before the final launch. The committee is still discussing your other points. [attachment deleted by admin]
-
I've used them extensively when writing math for other purposes. LaTeX is a typesetting language that only has semantic meaning, kind of like HTML has. Things like typography, layout, hyphenation, etc. is done automatically.
-
Pfft... who needs data integrity? That's just a fancy smart ass buzz word.
-
Halo 3 Saved Film HD Recording Service - Testers Needed
Daniel0 replied to HaLo2FrEeEk's topic in Beta Test Your Stuff!
Well, you're doing things sort of the backwards way of what one would normally do. Normally you would start with the bare minimum (this means without CSS and Javascript) and make sure it works, you would then add on top of it. http://en.wikipedia.org/wiki/Progressive_enhancement http://en.wikipedia.org/wiki/Unobtrusive_JavaScript -
Halo 3 Saved Film HD Recording Service - Testers Needed
Daniel0 replied to HaLo2FrEeEk's topic in Beta Test Your Stuff!
See attached screenshot. As I said, Javascript isn't protection, it's user convenience. [attachment deleted by admin] -
$swf = 'http://208.116.9.205/1/graphics/games/11623/games_BillySuicide.swf'; $thumb = preg_replace('#[^/]+\.swf$#', 't.jpg', $swf);
-
You,,,,,,,,,,,,,, probably need to buy a barcode,,,,,,,,..!!!! scanner and it will likely_----------- come with software that can read from it..................................
-
How about you make an attempt first and post your code here if you can't get it to work? We're here to help, not to do it for you.
-
proud, yours is filtering, not blocking. This should do: function check_porn_terms($input) { $porn_terms = array("porn", "sex", "tits", "cock", "penis", "vagina", "pussy", "itakeithard", "hard_cock", "really_hard_cock", "suckmydickbitch", "fuck"); //add terms here return !preg_match('#\b(' . join('|', array_map('preg_quote', $porn_terms)) . ')\b#i', $input); } var_dump(check_porn_terms('essex')); // true var_dump(check_porn_terms('sex')); // false
-
[SOLVED] What is wrong with this, please help!!!
Daniel0 replied to moe180's topic in PHP Coding Help
It was difficult to read because you didn't use tags. It's mentioned in this document which you were required to read BEFORE you even created an account here. I've edited your latest post. Next time, do it yourself. -
Halo 3 Saved Film HD Recording Service - Testers Needed
Daniel0 replied to HaLo2FrEeEk's topic in Beta Test Your Stuff!
I'm afraid that is entirely impossible. The user will always have control over what is going on on his machine, which is why client-side validation can only serve as a convenience for the user, and not as actual validation because it is easily circumvented. -
The bbcode here simply just passes the TeX string to an external parser. Actually doing it from scratch is less trivial (search Google). There is also jsMath, which you can use.
-
[SOLVED] $column = mysql_fetch_row($stmt)[0]; why not?
Daniel0 replied to tivrfoa's topic in PHP Coding Help
It's planned for PHP6. -
A question of efficiency: 50 States in an Array or in mysql??
Daniel0 replied to cunoodle2's topic in PHP Coding Help
A thousand kittens will die each time you use the global keyword. -
Actually, it's quite accurate saying it turns them off. The way it works internally is that it sets error_reporting=0, executes the statement and then reverts error_reporting to whatever it was before. This is what makes it so inefficient. This: @someFunction(); is equivalent to $oldErrorReporting = error_reporting(0); someFunction(); error_reporting($oldErrorReporting);
-
You might want to check this out as well: http://www.php.net/manual/en/migration5.php
-
A question of efficiency: 50 States in an Array or in mysql??
Daniel0 replied to cunoodle2's topic in PHP Coding Help
You shouldn't open a new connection in that function just to get that states array. -
A question of efficiency: 50 States in an Array or in mysql??
Daniel0 replied to cunoodle2's topic in PHP Coding Help
You will have to pass the $conn variable by argument to your function. Lookup the word "scope" in the manual. -
Need a Program that Manages Files and Generates an Output...
Daniel0 replied to legohalflife2man's topic in Miscellaneous
The one provided by your distributions package manager. -
[SOLVED] Count number of columns which = "Y" for selected rows?
Daniel0 replied to matthewra's topic in MySQL Help
Your question doesn't make much sense. Could you provide some more information (see: http://www.phpfreaks.com/forums/index.php/topic,129174.0.html)? -
Need a Program that Manages Files and Generates an Output...
Daniel0 replied to legohalflife2man's topic in Miscellaneous
Subversion will work under any Unix based operating system (and Windows) and has nothing to do with MySQL or PHP. http://subversion.tigris.org/