Re: [PHP] שנה טובה!
On Sep 19, 2009, at 10:09, Dotan Cohen dotanco...@gmail.com wrote: ניצן, תזהר לא לכלול את תפוצות הדואר כשאתה שולח דברים אלו. תודה. שנה טובה! I think this is an English language list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Converting URL's to hyperlinks.
On 4-Sep-2009, at 14:49, Daevid Vincent wrote: I've used this code for about 6 years now and have yet to find emails that it didn't work for. If someone has some funky (whacky) RFC extremity, It's attitudes like this that make the web such a wonderful place. When I encounter a website the rejects my email address for being 'invalid I simply NEVER GO THERE AGAIN. And your preg-replace would reject every email address I ever input into any web form. As a note, this will also fail on domains like http://✪df.ws/, but I guess Daring Fireball is an 'edge case' funky whacky RFC extremity… -- and I lift my glass to the Awful Truth / which you can't reveal to the Ears of Youth / except to say it isn't worth a dime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: use strict or similar in PHP?
On Feb 27, 2009, at 6:12, Hans Schultz h.schult...@yahoo.com wrote: Hahahah,I was thinking the same thing The trouble is most people mean compile a source file to an executable binary when they sat compile. By this measure, PHP does not compile. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP textbook suggestions?
On 11-Apr-2007, at 13:06, Chris Lott wrote: You're missing the point-- it's not that there is a practical difference in the examples, it's that there IS a difference, the students see it, and it is an extra point of confusion that isn't needed if one is being consistent. I have to disagree, and have had very little confusion myself in teaching php. I jsut explain it the way I use it. Use double quotes unless your quoted text is going to contain HTML with quotes; and as a bonus, php will expand variables in double quotes. I completely recognize that the practical effects of the differences are small, but the learning effects of the inconsistencies is much larger, particularly with a group of students that are not techies, not geeks, not computer science or IT students... Well, non-techie non-geeks are going to get very little out of learning to code php and are likely going to end up writing crap code with loverly security holes that bring ebservers to their knees and propagate millions of spam emails. Walk before you run, and all that. PHP is not a good choice as a 'learning' language precisely because it is so flexible. Much better to teach a much more rigid and concise language like obj- c or c++ if you want to teach programming to tyros. Heck, even perl. -- It was intended that when Newspeak had been adopted once and for all and Oldspeak forgotten, a heretical thought...should be literally unthinkable, at least so far as thought is dependent on words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP textbook suggestions?
On 6-Apr-2007, at 08:13, Chris Lott wrote: echo substr(abcdef, 1); So they naturally want to know-- why the double quotes? And there's no good logical reason for double quotes in the example-- and there are languages where the function could take a variable to be interpolated that DOES need double quotes-- so it is very confusing to them. But it's quite simple: it's a matter of preference, style, or just the mood of the programmer. Basically, there is NO difference between echo substr(abcdef, 1); echo substr('abcdef', 1); Oh sure, there is some number of nanoseconds difference in evaluation time, but that's meaningless as it is an insignificant amount of time (and takes millions and millions of iterations to make any perceivable difference). Use whichever you want. For me, I use mostly, and usually only use ' when I am enclosing 's to save myself having to escape them. On 5-Apr-2007, at 14:52, Chris Lott wrote: print 'The cost is ' . $cost; NOT print The cost is $cost; But that is certainly a silly destination to make. Both are perfectly valid and, in fact, I would argue the latter is better as it is clearer, cleaner, and shorter. echo substr('abcdef', 1); NOT echo substr(abcdef, 1); Both are perfectly fine. I'd use the latter myself as I tend to reserve the single quotes for enclosing strings containing double quotes, but that's just my preference. I certainly wouldn't deign to argue that my way was 'correct'. -- A: You can never go too far. B: If I'm gonna get busted, it is *not* gonna be by a guy like *that*. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Please hack my app
On 22-Nov-2006, at 04:20, Ryan A wrote: Hey there, I dont mean to be a total pri*k about this, but unless you have created something that you are willing to share with others and others can use/modify for their requirements, and you grant them this privilege...I think the norm is you pay someone to do what you are asking. He did say: I've been rewriting an GPL'ed PHP/MySQL app from scratch for the last 12 months or so. It -- There is a tragic flaw in our precious Constitution, and I don’t know what can be done to fix it. This is it: Only nut cases want to be president. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php