[PHP] Re: PHP from ASP using AJAX?

2012-09-18 Thread Ross McKay
e same. http://snippets.webaware.com.au/snippets/integrating-classic-asp-with-wordpress-using-ajax/ ( http://goo.gl/rHlgF ) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Re: cyberweaponry

2012-05-31 Thread Ross McKay
was WordPress that must have been hacked (because the malware found was in scripts hidden in the various WP folders). They got awful busy after reading that link though. -- Ross McKay, Toronto, NSW Australia "A just machine to make big decisions Programmed by fellows with compassion and vision

[PHP] Re: Email Antispam

2012-04-18 Thread Ross McKay
r consultants) available to their clients. And they want the addresses to be shielded against harvesting for spam. As I said, I don't like doing it this way, but the client gets what they want after the options have been explained to them. -- Ross McKay, Toronto, NSW Australia "Nob

[PHP] Re: Email Antispam

2012-04-17 Thread Ross McKay
structured data, many are embedded in page content (I have a WordPress shortcode that encodes the email address for those). -- Ross McKay, Toronto, NSW Australia "Faced with a choice between the survival of the planet and a new set of matching tableware, most people would choose the tablew

[PHP] Re: Email Antispam

2012-04-17 Thread Ross McKay
on the page encoded with base64, and use client-side script to decode it. i.e. the encoded data is replaced with the decoded data, once on page load. Hook up the decode function on the browser-side to your page load scripts. No jQuery required :) https://gist.github.com/2409958 -- Ross

[PHP] Re: PHP: a fractal of bad design

2012-04-12 Thread Ross McKay
ople complain about and the ones nobody uses." -- Bjarne Stroustrup -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutions" -Eric Sevareid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: To ?> or not to ?>

2012-04-03 Thread Ross McKay
ether or not you have a closing ?>, with or without additional white space. -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutions" -Eric Sevareid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: CMS identification

2012-03-18 Thread Ross McKay
t, open the login page in a web browser and view source. It's likely that there will be a meta tag in the head that tells you what the CMS is. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General

[PHP] Re: sql injection protection

2012-01-17 Thread Ross McKay
re the data type is string, and an accepted >char length is big enough to create some havoc in the db, so be it, I >reject that input. Which may be fine in your application, but why stop legitimate data for no good reason? >My question even after all these are there still ways to break in

[PHP] Re: http_referer. what's wrong with that?

2012-01-11 Thread Ross McKay
ike that? You only get an HTTP_REFERER when you link to a page from another page. If you go directly to the page, e.g. by typing / pasting the URL into the location bar, or linking from an email, then there is no HTTP_REFERER. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the

Re: [PHP] Re: Preferred Syntax

2011-12-17 Thread Ross McKay
l with this issue using their views >or template views. You don't have to use a framework if you do not >want to, that's perfectly fine. If it works, it works. But in the >end, it the separation of logic and html is essential to code >maintenance. Applause! :) -- Ross McKay,

Re: [PHP] Re: Preferred Syntax

2011-12-15 Thread Ross McKay
<<$msg {$this->html($name)} HTML; } } $x = new X(); $x->output('silly "rockstar" name like <&>'); >[...] >This is why I like heredoc syntax over pretty much everything else. Concur! -- Ross McKay, Toronto, NSW Australia "Pay no atte

[PHP] Re: Preferred Syntax

2011-12-14 Thread Ross McKay
ntain single quotes. So whilst either above option is fine for the specific context, I prefer HEREDOC when there's attributes like href. But what is "preferred" is rather dependent on the "preferrer". -- Ross McKay, Toronto NSW Australia "All we are saying Is giv

Re: [PHP] Sequential access of XML nodes.

2011-09-28 Thread Ross McKay
Richard Quadling wrote: >It seems that the SimpleXMLIterator is perfect for me. >[...] Interesting, I forget that's there... I must have a play with it sometime. Thanks for resurfacing it :) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll lea

Re: [PHP] Sequential access of XML nodes.

2011-09-26 Thread Ross McKay
$text = ''; break; case XMLReader::TEXT: case XMLReader::CDATA: // record value (or part value) of text or cdata node $text .= $xml->value; break; default: break; } } return $records; -- Ross McKay, Toronto, NSW Australia "Tuesday is Soylent Green day" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: While on the topic of PHP Web Site Stats - SharePoint...

2011-09-19 Thread Ross McKay
f all websites, 0.3% of all CMS; i.e. wy behind the PHP-based CMS out there -- e.g. WordPress on 14.9% websites and 54.4% CMS) -- Ross McKay, Toronto NSW Australia "All we are saying Is give peas a chance" - SeedSavers -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Ross McKay
them, or by silly language defects like JavaScript's semicolon insertion). -- Ross McKay, Toronto, NSW Australia "Hold very tight please! Ting! Ting!" - Flanders and Swann -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Ross McKay
t-curly-brace-placement-matters-an-example/ http://robertnyman.com/2008/10/16/beware-of-javascript-semicolon-insertion/ Sure, instances of the problem are minimal, but if you're in the habit of Dangerous Open Brace Placement then you just might fall afoul of it. Besides, my editor (Geany) folds code m

[PHP] Re: Resizing an image

2011-03-30 Thread Ross McKay
om, regarding performance of imagecopyresampled vs imagecopyresized: http://au2.php.net/manual/en/function.imagecopyresampled.php#77679 http://au2.php.net/manual/en/function.imagecopyresampled.php#72606 Also check out ImageMagick, if your host provides it (or you can install it): http://au2.php.net/man

[PHP] Re: Cross-platform IDE

2011-01-27 Thread Ross McKay
PHP, JS, HTML, XML and CSS. It's small and fast, so if you don't need all the bells and whistles of an Eclipse, Geany might suit you better. Worth a try at least. -- Ross McKay, Toronto, NSW Australia "It doesn't matter if the Rock wants to go get diamond rings or not!" -

[PHP] Re: php photo galery

2010-05-18 Thread Ross McKay
he ability to upload photos via a browser, I would also like thumb >nails, and the ability to have an alt text attribute with the photo >and a longer description of the picture, for accessibility reasons. >If anyone has anything similar to this please let me know. http://www.plogg

[PHP] Re: Malware Question

2010-04-28 Thread Ross McKay
ith, not just people who send them email invitations to exchange links. -- Ross McKay, Toronto, NSW Australia "I really hope they find a nice place, I hope they find it somewhere, I HOPE THEY GO AWAY" - Everclear -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Security/Development Question

2010-04-28 Thread Ross McKay
're storing the SQL queries so that they can show them later on, e.g. as text in a forum post, I think you have a major WTF on your hands! Please submit here! http://thedailywtf.com/Contact.aspx :) -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutio

Re: [PHP] PHP Manual problems

2010-02-10 Thread Ross McKay
it happening soon at most government / business organisations that deal in Microsoft Office documents until OpenOffice.org can better support the huge range of spottily formatted Office documents out there. That, or everyone moves to Google Docs, or regulations enforce exchange of government documents in

Re: [PHP] Re: Replacing accented characters?

2010-01-27 Thread Ross McKay
tion to go >with it. [...] True. But for the purposes of "cleaning up" URLs (not I18N friendly, but practical on Anglo-centric websites) it has its uses. -- Ross McKay, Toronto, NSW Australia "Faced with a choice between the survival of the planet and a new set of matching tableware, mo

[PHP] Re: Replacing accented characters?

2010-01-27 Thread Ross McKay
, $text); But ensure you have set your locale properly. http://au.php.net/manual/en/function.iconv.php -- Ross McKay, Toronto NSW Australia "All we are saying Is give peas a chance" - SeedSavers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: uniqid() and repetition of numbers generated

2009-11-12 Thread Ross McKay
nd can't rely on auto-increment integers aligning across peers) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Best way to test for form submission?

2009-08-31 Thread Ross McKay
On Sat, 29 Aug 2009 04:47:09 -0400, "O. Lavell" wrote: >There are more methods, I always use: > >if($_SERVER["REQUEST_METHOD"] == "POST") { > >do_something(); > >} +1. Although, this doesn't catch PUT requests, but I have yet to enc

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-13 Thread Ross McKay
is getting the users to cooperate by giving them a button for Word and a button for Text and explaining to them how it *helps them* to use those buttons properly. But that only works while they remember, and they never remember when they're in a hurry (which is always). -- Ross McKay, Tor

[PHP] Re: Problems with HTTPS and maybe an .htaccess???

2009-05-08 Thread Ross McKay
to ask for another page at the new URL. The %{SERVER_NAME} bit tells Apache to insert the server name, whether it be your sitename.com or dev.sitename.com -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP Genera

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-08 Thread Ross McKay
e come from? They weren't there when I added that >text. What did you do?" If that's using TinyMCE, enable the Paste From Word button (or the Paste as Plain Text button) and disable the regular Paste button :) -- Ross McKay, Toronto, NSW Australia "Pay no attention to tha

[PHP] Re: Encrypting email

2009-04-23 Thread Ross McKay
al/en/function.openssl-pkcs7-encrypt.php Apparently, PHPMailer supports it too so check that out. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-19 Thread Ross McKay
here all along, but disable it (attribute: disabled="disabled") until you have your array key (script: submitElement.disabled = false). No chance of bollocksing up the DOM code then :) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - T

[PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread Ross McKay
eem to do anything - i.e., >the onsubmit is not being triggered, etc, etc How do you "turn on" your submit button? (for that matter, how do you "turn it off"?) Have you checked Firefox's log to see if you have JavaScript errors? -- Ross McKay, Toronto, NSW Australia &qu

[PHP] Re: PHP to create an ERD (sic) on the fly on a web page based on current DB records?

2009-03-13 Thread Ross McKay
On Thu, 12 Mar 2009 18:47:40 -0600, scubak1w1 wrote: >Seeking some advice on how to create an ERD (sic) graphically on the page on >the fly when the page is 'called'... >[...] Maybe GraphViz? http://graphviz.org/ -- Ross McKay, Toronto, NSW Australia "Let the laddie p

Re: [PHP] Question about template systems

2009-03-03 Thread Ross McKay
missing something, but I don't see the point of special templating systems that require you to know yet another notation set, i.e. abstraction away from PHP as Stuart puts it. -- Ross McKay, Toronto NSW Australia "Click me, drag me, treat me like an object" -- PHP General

Re: [PHP] Re: mysql_real_escape_string("asdasddas") ??? wtf

2009-02-21 Thread Ross McKay
); // might need to replace a literal \ too. > >If you can, please enlighten me. And also: NUL, LF, CR, " and ^Z Or you could just call mysql_real_escape_string and know that you haven't coded your str_replace with some hole in it :) -- Ross McKay, Toronto, NSW Australia &

[PHP] Re: mysql_real_escape_string("asdasddas") ??? wtf

2009-02-20 Thread Ross McKay
On Sat, 21 Feb 2009 19:19:44 +1300, t...@ihostnz.com wrote: >Can anyone here tell me why mysql_real_escape_string("asdasddas") returns an >empty string? Have you opened a connection to a MySQL database? It won't work without an open connection. -- Ross McKay, Toronto, N

[PHP] Re: How to use SVN + PHP

2009-01-20 Thread Ross McKay
ugh Subversion's history of changes. Once you've tested your changes and are happy that everything is working, and committed them all to the trunk, copy the trunk to a tag and put that on the server. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll l

Re: [PHP] Re: 64bit vs. 32bit

2009-01-20 Thread Ross McKay
hey're specifically coded to make use of PAE... :) -- Ross McKay, Toronto, NSW Australia "My old man told me one time, you never get wise, you only get older" - Dandy Warhols -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: 64bit vs. 32bit

2009-01-20 Thread Ross McKay
owever... why? If you really need to run DOS programs, there's always DOSBOX, or even FreeDOS running in QEMU or similar, and the graphics support will be better than whatever Wine would have allowed. -- Ross McKay, Toronto, NSW Australia "Nobody ever rioted for austerity" - George M

[PHP] Re: developers life

2009-01-19 Thread Ross McKay
On Mon, 19 Jan 2009 21:28:05 +, Nathan Rixham wrote: >well just for the hell of it; and because I'm feeling worn.. > >anybody else find the following true when you're a developer? >[...] Yes. -- Ross McKay, Toronto, NSW Australia "Towers get higher, Jobs get c

[PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Ross McKay
t solves the Year 2038 problem, so any date calculations you have in PHP will work past 2038. This includes forecasting 30+ years into the future, which will break in PHP on 32-bit unless you avoid time_t based functions like time() and stick with DateTime objects. -- Ross McKay, Toronto, NSW Aus

Re: [PHP] Editing in a text area field

2009-01-11 Thread Ross McKay
rademark symbols, etc. Isn't that causing a problem, rather than dealing with one? If the problem is one of validation, then maybe you should investigate character sets and the full abilities of htmlentities. -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutio

Re: [PHP] Editing in a text area field

2009-01-11 Thread Ross McKay
t as more like: good, cheap, fast, pick ONE. >Thanks for the tip on TinyMCE -- I'll look into that. As Eric mentions, FCKEditor can do this stuff too, and I imagine yui and others do as well. You just need to configure them to fit your requirements. -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water; After enlightenment: chop wood, carry water" - Wu Li -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Ross McKay
ct hashes for two separate and distinct instances. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
d >selection. Likewise with TinyMCE (and I suspect many of the others). Given the abundance of good rich text editors, I don't see any good reason for making clients enter HTML tags directly - it only confuses them. -- Ross McKay, Toronto, NSW Australia "The lawn could stand another mo

[PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Ross McKay
, 16, 36); Returns stuff like this: 9xm1k6oodk8o00s4wc.50nplu -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
/ http://developer.yahoo.com/yui/ http://geniisoft.com/showcase.nsf/WebEditors >I see forum web sites that allow the user to enter [b]bold text[/b] for >example. > >I would like to do this. > >Anyone have a function to convert this kind of thing to HTML? http://au2.php.net/manual/en/book.b

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
aviour of HTML elements that cannot be defined by css; such trivial things as href, name, class, id, tabindex, maxlength, value, etc. I know, I'm nit picking a bit... -- Ross McKay, Toronto, NSW Australia "Words can only hurt if you try to read them. Don't play their game" - Zoola

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
y browser-based (mostly JavaScript) rich text editors come in to their own. -- Ross McKay, Toronto, NSW Australia "Nobody ever rioted for austerity" - George Monbiot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
licated for the editor (and perhaps modified a little too), but that's no drama once the site design has settled down. -- Ross McKay, Toronto, NSW Australia "It doesn't matter if the Rock wants to go get diamond rings or not!" - The Rock -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Ross McKay
themselves and forget to close them. -- Ross McKay, Toronto, NSW Australia "Nobody ever rioted for austerity" - George Monbiot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: First steps towards unix and php

2009-01-08 Thread Ross McKay
cept when debugging (for which I've been using NetBeans). Hmmm... must do something about that some day. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: First steps towards unix and php

2009-01-08 Thread Ross McKay
the others, with maybe just some minor integration glitches; I run GNOME and use a number of KDE programs just fine. You should also check out editors and IDEs - STFW for previous posts made to this and other groups. Then pick Geany ;) And don't forget to add a revision control system

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ross McKay
is important when it's expensive storage, backed up, replicated, transferred to other systems over comms links, etc. It also means more disc access, unless you have a surplus 10GB RAM for extra caching. Disc access is usually what kills database performance. -- Ross McKay, Toronto, NSW Australia &quo

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ross McKay
post, knowing what your data requires leads to better results than picking in advance whether to use char or varchar (or text). Measuring is even better. -- Ross McKay, Toronto, NSW Australia "There is more to life than simply increasing its speed." - Gandhi -- PHP General Mailing

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ross McKay
leads to better results than picking in advance whether to use char or varchar (or text). Measuring is even better. Oh, and for a column with a limited range of values, enum beats 'em all! -- Ross McKay, Toronto, NSW Australia "You can't control what you can't measure&quo

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Ross McKay
od point, thanks! I usually read from the .chm manual but just jumped to the website to grab a link. Should have been: http://dev.mysql.com/doc/refman/5.0/en/string-types.html I note that Stuart was most likely talking about MySQL <= 4 which had a limit of 255 characters for varchar. -- Ross Mc

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Ross McKay
quot; - TFM. Also, you can create a FULLTEXT index on text columns stored in the MyISAM engine. (which is a PITA, because if you want ACID transactions and full-text searching, you need to create and maintain a MyISAM shadow table of the data you want to full-text search on) -- Ross McKay, Toron

Re: [PHP] Chrome 1.0 released

2008-12-14 Thread Ross McKay
en viewing such statistics. The site that Richard posted a link to shows this variability nicely: http://www.upsdell.com/BrowserNews/stat.htm -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing

[PHP] Re: Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Ross McKay
lly learning stuff to her surprise!! Good, because when you stop learning is when you start dying... -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water; After enlightenment: chop wood, carry water" - Wu Li -- PHP General Mailing List (http://www.php

Re: [PHP] Experience (was: while-question)

2008-11-17 Thread Ross McKay
s over when initially making the switch from their one-language development environment. (Frameworks strive to clean that up for developers) So, is PHP programming? :) -- Ross McKay, Toronto, NSW Australia "Pay no attention to that man behind the curtain" - Wizard of Oz -- PHP Genera

Re: [PHP] Experience (was: while-question)

2008-11-17 Thread Ross McKay
On Mon, 17 Nov 2008 14:30:34 -0500, tedd.sperling wrote: >I can program with rocks -- and do a good job of it. I can make a one >that can stand for a couple of thousand years. http://xkcd.com/505/ -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry wa

[PHP] Re: DOCTYPE, javascript and Firefox

2008-10-31 Thread Ross McKay
d ? 'disable' : 'normal'; var startdate = document.getElementById('startdate'); if (startdate) startdate.disabled = asDisabled; } No Yes PS: pick HTML4 or XHTML; your sample code shows the latter, the DOCTYPE says the former. -- Ross McKa

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Ross McKay
editing for admin pages (simple CMS) * KVM - lets me test in IE6/IE7 without having to reboot into Windows * Subversion - because I value my time :) * Meld - because I value my sanity! (graphical diff/merge) -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water;

Re: [PHP] [Semi-OT] Tonns of jobs available

2008-10-10 Thread Ross McKay
d working without constant patch-ups (on which basis, I'd guess the Leaning Tower of Pisa isn't really a success :) http://thedailywtf.com/Articles/What_Could_Possibly_Be_Worse_Than_Failure_0x3f_.aspx If/when you recognise stupidity in your own actions, stupid tends to stop. If you never s

[PHP] Re: Making $_POST and $_FILES play together nicely

2008-09-30 Thread Ross McKay
" . $_FILES[$inputName]['error'] . ".\n"; break; } -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: question about <<

2008-09-30 Thread Ross McKay
On Tue, 30 Sep 2008 12:48:35 +0800, LKSunny wrote: >i want on inner EOF do something, calculate and call function ? can not ? if >yes, how to ? Same way as you do with "" strings. e.g. bar()} ENDHELLO; } } $foo = new foo(); $foo->hello(); ?> -- Ross McKay, Toronto,

[PHP] Re: Unicode problems

2008-09-26 Thread Ross McKay
em). Can you confirm: are you telling your PHP connection into MySQL to use Unicode? e.g. tell MySQL directly by executing the following statement: set names 'utf8' Also, is some of your data going through htmlentities() and coming out wrong? If so, look at specifying the character s

Re: [PHP] PHP tags - any reasons to close ?>

2008-09-23 Thread Ross McKay
of the program above the >> bottom of the screen. (Crimson Editor is the only one I have found >> that does this.) > >vi has no problem doing that. Geany does this too, unless you ask it not to (preferences). -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife -

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-18 Thread Ross McKay
tity-relationship_model http://en.wikipedia.org/wiki/CA_ERwin_Data_Modeler http://en.wikipedia.org/wiki/ER/Studio http://en.wikipedia.org/wiki/Toad_Data_Modeler http://en.wikipedia.org/wiki/MySQL_Workbench -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water; After enli

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-17 Thread Ross McKay
ild script. It also has a reporting tool for generating a data dictionary. In short, it makes a pretty good stab at being a data modelling tool (imperfectly, but sufficiently for my needs). Dia is just a diagramming tool (unless you can tell me otherwise). -- Ross McKay, Toronto, NSW Australia &quo

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-17 Thread Ross McKay
ding databases, and usually also for documenting them. If your DB has more than a handful of tables, it's well worth the effort. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://ww

[PHP] MySQL Workbench coming for Linux

2008-09-16 Thread Ross McKay
Posting this here, because a few people responded when I mentioned not having a Linux-native data modelling tool. Apparently, MySQL Workbench should be alpha-ready by end of the month... http://dev.mysql.com/workbench/?p=138 Maybe I can ditch Visio one day soon... :) -- Ross McKay, Toronto, NSW

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-16 Thread Ross McKay
hat just don't come across right in any Linux word processor, so I still need to open up Microsoft Word occasionally) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://ww

Re: [PHP] Re: Email - Best practice/advice please

2008-09-12 Thread Ross McKay
l I think I'm going to be ending up down the phpmailer route! It's the easiest route, and will catch some other problems for you into the bargain. -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Email - Best practice/advice please

2008-09-12 Thread Ross McKay
ext/plain) Good idea: X-Mailer: 'PHP/' . phpversion() To test, send some emails to yourself at an account that has SpamAssassin and look at the headers to see what SpamAssassin says as it should indicate what it doesn't like about your emails. Try this first, before messing with the heade

[PHP] Re: Interntet Explorer 8 beater 2

2008-09-11 Thread Ross McKay
On Thu, 11 Sep 2008 14:22:30 +0100, Colin Guthrie wrote: >[...] I'm not sure how you would police it, but >there should be a badge of honour associated with the system in some >way, probably overseen by W3C. Like this? http://en.wikipedia.org/wiki/Acid2 -- Ross McKay, Toronto,

[PHP] Re: Interntet Explorer 8 beater 2

2008-09-11 Thread Ross McKay
s want to upgrade to it (and who can blame them?) The best thing about Google Chrome is that maybe, just maybe, the tide will turn against Microsoft Word as the tech-unsavvy move to this "cloud computing" buzzword-paradise (onto Linux-based cheap PCs with no IE6!) Ah, a man can dream, can&#

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-10 Thread Ross McKay
mp; I are fed up with having to find nasty kludges for IE6 every time we build a website! -- Ross McKay, Toronto, NSW Australia "I think you are blind to the fact that the hand you hold is the hand that holds you down" - Everclear -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re: PHP Equivalent of JavaScript whatever.toFixed(2)

2008-09-08 Thread Ross McKay
Arnie Shore wrote: >> Folks, I need to take a given float value to, say, two decimals, as per >> subject JS. I've RTFM, but to no avail. On Mon, 08 Sep 2008 22:03:54 +0200, Sjoerd wrote: >$str = sprintf("%01.2f", $number); Skinning cat, method two: $str = numbe

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-08 Thread Ross McKay
e whereby "hard drive writes" are held in temporary files and only written back to the image if / when you tell the VM to commit. Thus, you don't even need to refresh the image if you just test in snapshot all the time. (and work with network data files, or version control workspaces) -

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-08 Thread Ross McKay
, eh? :) (although I did find time to test Chrome in KVM - and I must say it is fast, if not particularly useful yet) -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll learn" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to write good code

2008-09-01 Thread Ross McKay
at way to learn what bad code looks like!) Read what makes code good and what makes it bad. Then write some more code :) -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water; After enlightenment: chop wood, carry water" - Wu Li -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ASCII Captcha

2008-08-31 Thread Ross McKay
ing!). [She's about to come over and demand her coffee, must fetch ;) ] -- Ross McKay, Toronto, NSW Australia "Such a pretty girl, happy in an ugly place, watching all the pretty people doing lots of ugly things" - Everclear -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ASCII Captcha

2008-08-31 Thread Ross McKay
me I like to have my cake and eat. ;-) I've always thought cake was over-rated... -- Ross McKay, Toronto, NSW Australia "Read beans and rice, I could eat a plate twice" - Spearhead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ASCII Captcha

2008-08-31 Thread Ross McKay
ormally gets to just press down arrow, tab. -- Ross McKay, Toronto, NSW Australia "It doesn't matter if the Rock wants to go get diamond rings or not!" - The Rock -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ASCII Captcha

2008-08-31 Thread Ross McKay
If >that value is posted, then I reject the form since it shouldn't exist. Nice idea, I'll try that one. Have not heard of any customers with problems lately, but it happens from time to time... this sounds like a good buster for automated spam injectors. thanks! -- Ross McKay, To

Re: [PHP] ASCII Captcha

2008-08-31 Thread Ross McKay
e not expected in posts to these websites. If they were, well... :/ -- Ross McKay, Toronto, NSW Australia "The chief cause of problems is solutions" -Eric Sevareid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to write good code

2008-08-30 Thread Ross McKay
http://thedailywtf.com/Series/CodeSOD.aspx Then, don't do it like that! But seriously, you might want to check out this page on Wikipedia, and follow some of its references: http://en.wikipedia.org/wiki/Programming_style -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi th

Re: [PHP] Re: Variable name as a string

2008-08-27 Thread Ross McKay
More specifically: option 1 - colour: # red # green # blue colour: $colour\n"; ?> -- Ross McKay, Toronto, NSW Australia "If ye cannae see the bottom, dinnae complain if ye droon" - The Wee Book of Calvin -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Re: Variable name as a string

2008-08-27 Thread Ross McKay
tions']['flavour']; echo "flavour: $flavour\n"; $size = $_POST['options']['size']; echo "size: $size\n"; } ?> NB: no quotes around array key! I found this very handy for having variable product options on a simple shopping c

Re: [PHP] PHP editor for linux

2008-08-14 Thread Ross McKay
On Thu, 14 Aug 2008 23:46:05 -0400, Michael S. Dunsavage wrote: >I use geany and Quantum +2 for geany (SWMBO uses it too). It's a good general-purpose text editor and simplified IDE. Build it from SVN, as it has been moving fairly quickly and distro packages often haven't kept up. -

[PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Ross McKay
On Wed, 13 Aug 2008 15:46:47 + (UTC), Jonesy wrote: >I'd've thought with Aussie, Southern Cross-oriented globes, it would be >to the _right_ of Kalifornia and _up_ a bit. Yes, but I was translating from Strine to Wronglish for the North Americans ;) -- Ross McKay, Toronto,

Re: [PHP] Re: A dumb question regarding sending email

2008-08-13 Thread Ross McKay
the East Coast of Australia, or IOW somewhat to the left of Kalifornia and down a bit) -- Ross McKay, Toronto, NSW Australia "Under the big bright yellow sun" - Fat Boy Slim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: A dumb question regarding sending email

2008-08-12 Thread Ross McKay
//example.com/ in the HTML body. You'll need to catch the heredoc as a string, and replace any URLs with the anchored URL as above. -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water; After enlightenment: chop wood, carry water" - Wu Li -- PHP

[PHP] Re: Kill Magic Quotes

2008-08-07 Thread Ross McKay
for some other databases) Roger Bigras wrote: >>you may try the >> >>ini_set('magic_quotes_gpc',0); That won't work: http://au.php.net/manual/en/function.get-magic-quotes-gpc.php "Keep in mind that the setting magic_quotes_gpc will not work at runtime.&quo

[PHP] Re: Version Control Software

2008-08-06 Thread Ross McKay
ing so that you can support older sites on older versions of the libraries whilst further developing them for newer sites. http://subversion.tigris.org/ http://tortoisesvn.tigris.org/ http://rapidsvn.tigris.org/ http://meld.sourceforge.net/ Of course, a good IT professional would probably tell you

Re: [PHP] Re: An appeal to your better nature

2008-08-06 Thread Ross McKay
you won't be bitten likewise, unless you'd prefer to take umbrage at offers of advice you don't like. Or perhaps you think that good IT professionals do hack their production environments without backups as a matter of course? And on low-service hosting environments. :) -

  1   2   >