Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 16:00 -0500, Paul M Foster wrote: > On Sat, Jan 10, 2009 at 03:16:34AM -0500, Robert Cummings wrote: > > > On Sat, 2009-01-10 at 03:10 -0500, Paul M Foster wrote: > > > On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote: > > > >

Re: [PHP] is_readable() returns 1 if file is still uploading

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 19:22 +0100, Merlin Morgenstern wrote: > Hi there, > > I am importing data out of xml files on a linux server. Now I am running > into problems if the file is currently beeing uploaded and the upload > has not finished to the server. > Is there a function which returns true

Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 03:10 -0500, Paul M Foster wrote: > On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote: > > > On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote: > > > On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > > > > -12C in Toronto &

Re: [PHP] Re: hello

2009-01-10 Thread Robert Cummings
On Sat, 2009-01-10 at 02:59 -0500, Daniel Brown wrote: > On Sat, Jan 10, 2009 at 01:57, Robert Cummings wrote: > > > > Grumble, grumble... did I mention freshwater falls from the sky and > > forms vertical piles outside my home? > > You have a camera for a reason,

Re: [PHP] Re: hello

2009-01-09 Thread Robert Cummings
On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote: > On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > > -12C in Toronto > > > > Meh! 30C - 35C in Cape Town, South Africa almost every day for the last > month. It has been a scorcher this year! Grumble, grumble... did I mention freshwater fal

Re: [PHP] Re: hello

2009-01-09 Thread Robert Cummings
On Fri, 2009-01-09 at 15:47 -0500, Daniel Brown wrote: > On Fri, Jan 9, 2009 at 15:31, Robert Cummings wrote: > > > > I lived in Scotland for many years... Scottish winters pale in > > comparison to northern Canadian winters, and these in turn pale in > > com

Re: [PHP] Re: hello

2009-01-09 Thread Robert Cummings
On Fri, 2009-01-09 at 18:09 +, Nathan Rixham wrote: > Daniel Brown wrote: > > On Fri, Jan 9, 2009 at 12:43, Nathan Rixham wrote: > >> actually i ran it in a debugger, in an ide, in a virtual machine :p > > > > in Siberia. > > > > scotland in winter; same thing really I lived in Sc

Re: [PHP] Re: hello - thread on topic or not?

2009-01-09 Thread Robert Cummings
for it. > >> > >> By comparison, sending a message - especially starting a new > >> thread - to ask if something is on- or off-topic is worse. > > I was simply wondering. I took my reply to Robert off-list because I > felt that the question didn't need to be

Re: [PHP] Re: redoing website after 7 years

2009-01-09 Thread Robert Cummings
On Fri, 2009-01-09 at 08:56 -0500, Andrew Ballard wrote: > On Fri, Jan 9, 2009 at 2:09 AM, Robert Cummings wrote: > > On Fri, 2009-01-09 at 15:17 +1100, Chris wrote: > >> > I know many people will grin at me for this solution but may be faster > >> > way > &

Re: [PHP] Re: hello - thread on topic or not?

2009-01-09 Thread Robert Cummings
On Fri, 2009-01-09 at 12:59 +, Nathan Rixham wrote: > Daniel Brown wrote: > > On Thu, Jan 8, 2009 at 19:21, Mattias Thorslund > > wrote: > >> I thought this was the PHP list, not the OS vs. OS list? > >> > >> Is this type of discussion now considered OK here? I recall people getting > >> flam

Re: [PHP] First steps towards unix and php

2009-01-08 Thread Robert Cummings
On Fri, 2009-01-09 at 01:09 -0500, Daniel Brown wrote: > On Thu, Jan 8, 2009 at 11:44, Frank Stanovcak > wrote: > > I've been a microshaft punk for some time now, and am just getting ready to > > try to step over to unix on one of my own boxes. > > > > Does anyone have any suggestions on which fl

Re: [PHP] Re: redoing website after 7 years

2009-01-08 Thread Robert Cummings
On Fri, 2009-01-09 at 15:17 +1100, Chris wrote: > > I know many people will grin at me for this solution but may be faster way > > to overcome this problem to do a find for $ and replace with $_REQUEST. even > > this will help you if you dealt with $_POST, $_GET, $_COOKIE. > > Please don't. > > $

Re: [PHP] Re: redoing website after 7 years

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 20:10 -0800, VamVan wrote: > On Thu, Jan 8, 2009 at 9:50 AM, Al wrote: > > I know many people will grin at me for this solution but may be faster way > to overcome this problem to do a find for $ and replace with $_REQUEST. even > this will help you if you dealt with $_POST,

Re: [PHP] Re: hello - thread on topic or not?

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 16:21 -0800, Mattias Thorslund wrote: > I thought this was the PHP list, not the OS vs. OS list? > > Is this type of discussion now considered OK here? I recall people > getting flamed for borderline off-topic posts even, just a few years ago. This is PHP general... we talk

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 23:28 +, Nathan Rixham wrote: > Skip Evans wrote: > > Ashley Sheridan wrote: > >>> think about it for a minute; an OS can either be secure (0 > >>> vulnerabilities) or insecure (1 or more vulnerabilities); as all OS's > >>> have 1 or more vulnerabilities they are all equ

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 22:38 +, Nathan Rixham wrote: > Skip Evans wrote: > > Nathan Rixham wrote: > >>> > >> yup.. all OS's are equally insecure; each OS is as insecure as the > >> next; no > >> one OS is more insecure than any other > >> > > > > Wrong, and there is experimental data to prove i

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 19:46 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Thu, 2009-01-08 at 19:18 +, Nathan Rixham wrote: > > > >> Daniel Brown wrote: > >> > >>> On Thu, Jan 8, 2009 at 13:34, Robert Cummings > >&g

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 19:18 +, Nathan Rixham wrote: > Daniel Brown wrote: > > On Thu, Jan 8, 2009 at 13:34, Robert Cummings wrote: > >> He didn't say it had no insecurities... he said it's hard to believe > >> it's "JUST AS insecure&q

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 19:12 +, c...@l-i-e.com wrote: > > Fact is if you want to be secure just disconnect you're machine from > > the internet, remove cd/dvd/floppy drives and unplug the keyboard. > > You forgot to cut the internal USB cables. And never, EVER forget to don your tinfoil hat an

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 13:43 -0500, Daniel Brown wrote: > On Thu, Jan 8, 2009 at 13:41, Robert Cummings wrote: > > On Thu, 2009-01-08 at 13:31 -0500, Daniel Brown wrote: > >> On Thu, Jan 8, 2009 at 13:24, Robert Cummings wrote: > >> > > >> > "

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 13:39 -0500, Daniel Brown wrote: > On Thu, Jan 8, 2009 at 13:34, Robert Cummings wrote: > > > > He didn't say it had no insecurities... he said it's hard to believe > > it's "JUST AS insecure". Please provide factual sources

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 13:31 -0500, Daniel Brown wrote: > On Thu, Jan 8, 2009 at 13:24, Robert Cummings wrote: > > > > "Just as susceptible"?? Please refer me to some resources where I can > > verify this statement. > > http://marc.info/?t=100

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 13:13 -0500, tedd wrote: > At 10:10 AM -0500 1/8/09, Daniel Brown wrote: > > > > When a vast majority is controlled by a like-minded minority, > >evolution and advancement will suffer. > > Ya think. > > I've been saying that for over 20 years. > > The problem is that th

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 12:54 -0500, Daniel Brown wrote: > On Thu, Jan 8, 2009 at 12:38, Skip Evans wrote: > > > > > >>I certainly wish there were more like you! > > > > If only that woman who lives down the block would give me the opportunity to > > make her say that... *sigh*. > > Coincid

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 12:10 -0500, Daniel Brown wrote: > On Thu, Jan 8, 2009 at 10:31, Skip Evans wrote: > > > > From my reading I get the impression that the above statement, "Linux is > > just as susceptible to viruses, worms, and other malware", is inaccurate. > > Unfortunately, Skip, it's

Re: [PHP] First official release of the PHP WhitePaper

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 15:40 +, David Coallier wrote: > Well well well, finally after many months of work, discussions, > typing, editing and arguing, the Irish PHP User Group is happy to make > the first official release of the PHP WhitePaper. > > I'd love to make a sales pitch about this but

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 10:10 -0500, Daniel Brown wrote: > On Thu, Jan 8, 2009 at 09:38, Allan Arguelles wrote: > > I guess its these examples that remind us that we still need to look out > > for ourselves. I got used to the idea that theres so little chance that > > I'd be a target, as a linux use

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

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 10:51 +, Richard Heyes wrote: > > until you have to dump it, zip it, ssh it over to another box and then > > import it back in > > That's what fag breaks are for... :-) Well, that and smoking. So... when you're forgetful... have you ever had to bum a fag? Words have suc

Re: [PHP] Re: hello

2009-01-08 Thread Robert Cummings
On Thu, 2009-01-08 at 17:27 +0800, Allan Arguelles wrote: > I only see this in the attachment: > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php That's because the list software strips attachments to prevent idiots using wind

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Robert Cummings
On Wed, 2009-01-07 at 16:16 -0800, Jim Lucas wrote: > Nathan Rixham wrote: > > Richard Heyes wrote: > >>> but, I'm more concern does client has to pay the changes/upgrade or > >>> it's still "my obligation"? > >> > >> Of course you charge him. Christ if I was expected to maintain stuff > >> gratis

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Robert Cummings
On Wed, 2009-01-07 at 06:07 -0800, Lamp Lists wrote: > hi guys, > I did php/mysql based website for one my client 7 years ago, in time when > register_globals was on by default. > hosting company upgraded server to php5/mysql5 and turned globals off. the > site is doesn't work any more. > I can d

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

2009-01-07 Thread Robert Cummings
On Wed, 2009-01-07 at 13:26 +, Richard Heyes wrote: > >>So where's the advantage of VARCHAR ? > > > > Less space on disc = less data retrieved from disc = faster data > > retrieval - sometimes. If you have small columns, a small number of > > rows, or both, then char columns may be faster. If y

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

2009-01-07 Thread Robert Cummings
On Wed, 2009-01-07 at 10:49 +, Richard Heyes wrote: > >> it' may seem like a small amount of space but when you have 8 > >> char(255) columns in a table with 10 million rows you'd noticed the > >> difference considerably. > > It is a small amount of space. Perhaps it was necessary in the days

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

2009-01-05 Thread Robert Cummings
On Tue, 2009-01-06 at 11:01 +1100, Ross McKay wrote: > Micah Gersten wrote: > > >You're referencing the 5.1 manual. In the 5.0 manual it says that > >VARCHAR was extended to 65535 in 5.0.3, so you're statement is not > >entirely correct, nor was Stuart's. That's why I linked him to the 5.0 > >ma

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

2009-01-05 Thread Robert Cummings
On Mon, 2009-01-05 at 19:15 +, Stuart wrote: > 2009/1/5 Frank Stanovcak : > > It's been a while since I've programed (VB was on version 4) I was wondering > > if any one could tell me what the diff is between char, varchar, and text in > > mysql. > > I know this isn't a mysql news group, but si

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 17:55 +, Nathan Rixham wrote: > oooh oooh found it, there's a few solutions actually! > > array_merge($christianity,$islam); > unset($religion); > //loads more Sounds like a better solution than: :) > Nathan Rixham wrote: > > rob, are you suggesting that the solution

Re: [PHP] Searching in a long text

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 01:28 -0800, Yeti wrote: > What if the whole text has only 1 line? What if? Shouldn't matter. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Searching in a long text

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 09:26 +0100, Vicente wrote: > Hi all, > > I'm implementing a search tool to find phrases inside a book. > Users will search for some word, then the engine will returns > the 3 or 4 lines containing that word, and giving also the book page > number. > > I have the book in pl

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-02 Thread Robert Cummings
I find the PHP site to be one of the best resources around. Maybe it can help you with your problem. Cheers, Rob. On Sat, 2009-01-03 at 08:56 +0330, shahrzad khorrami wrote: > I'm sorry for there are no rules in the world no real men to help them. May > *Allah* help them > as we see what happe

Re: [PHP] PHP telnet server

2009-01-01 Thread Robert Cummings
On Thu, 2009-01-01 at 18:43 +, Luke Slater wrote: > WELL, while we're advertising, tcz.net > > telnet tcz.net 23 > > The MUD does indeed cover many aspects of programming, most of them even > have their own scripting language! Which is why PHP seems so lucrative... but one thing you need to

Re: [PHP] PHP telnet server

2009-01-01 Thread Robert Cummings
On Thu, 2009-01-01 at 17:58 +, Luke Slater wrote: > It's actually derived from tinymud. > > XML is another option, however I've had people tell me not to use that > because it's horrifically slow, even though I've used it extensively, > through AJAX before and never had a speed issue; althou

Re: [PHP] PHP telnet server

2009-01-01 Thread Robert Cummings
On Thu, 2009-01-01 at 19:03 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > 'c...@l-i-e.com' isn't the original poster, I was speaking generally... > > I thought he was the one to bring up his concern about PHP and > performance - I could be wro

Re: [PHP] PHP telnet server

2009-01-01 Thread Robert Cummings
On Thu, 2009-01-01 at 13:27 +, Luke wrote: > The current system also uses some kind of strange text based database, I was > wondering if using MySQL for the database would slow it down too much? Which MUD engine are you using? Chances are it's DIKU, or Circle, or Merc or one of the many deriva

Re: [PHP] PHP telnet server

2009-01-01 Thread Robert Cummings
On Thu, 2009-01-01 at 12:53 +, Luke Slater wrote: > Well the current system runs of a 20MB internet connection in London, > seeing as that's the UK that about 2MB. > > It runs fine, responses are snappy even dealing with loads of users. > > This, however, is written in C: does PHP have that

Re: [PHP] PHP telnet server

2009-01-01 Thread Robert Cummings
On Thu, 2009-01-01 at 11:51 +0100, Per Jessen wrote: > Robert Cummings wrote: > > >> > >> It's not easy in any language, but if your key concern is the > >> performance of PHP (as a language), hardware is what you need. You > >> can design your s

Re: [PHP] PHP telnet server

2008-12-31 Thread Robert Cummings
On Wed, 2008-12-31 at 17:35 +0100, Per Jessen wrote: > c...@l-i-e.com wrote: > > > > >>> I often thought PHP would be a nice language for a MUD, if one could > >>> get the performance out of it... > >> > >> Design your code such that you can just throw more hardware at it > >> whenever you need m

Re: [PHP] PHP telnet server

2008-12-31 Thread Robert Cummings
On Wed, 2008-12-31 at 16:19 +, c...@l-i-e.com wrote: > >> I often thought PHP would be a nice language for a MUD, if one could > >> get the performance out of it... > > > > Design your code such that you can just throw more hardware at it > > whenever you need more performance. > > That's eas

Re: [PHP] Since I speak with some of you more than people I see in person....

2008-12-30 Thread Robert Cummings
On Tue, 2008-12-30 at 16:32 -0500, Daniel Brown wrote: > To hell with being on-topic, since this list is generally never > on-topic for an entire thread anyway. > > This has been a roller-coaster year for some of us --- certainly > myself included --- but the year has come to a close. I want

Re: [PHP] PHP telnet server

2008-12-30 Thread Robert Cummings
On Tue, 2008-12-30 at 16:21 -0500, Brian A. Seklecki wrote: > On Tue, 30 Dec 2008, Luke Slater wrote: > > > Hi everyone, > > > > A quick read over Stevens` A.P.U.E. and UNIX Network Programing Vol. 1 > should familarize you with multi-threaded TCP/IP daemon development. Couple of problems...

Re: [PHP] PHP telnet server

2008-12-30 Thread Robert Cummings
On Tue, 2008-12-30 at 21:12 +, Luke Slater wrote: > Hi everyone, > > I'm trying to rewrite an old MUD in PHP; the reasons for this are that the > original is written in C and most files in the codebase run over 2000 > lines with at least 20 of them, which makes it very hard to change > anyt

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Robert Cummings
On Tue, 2008-12-30 at 12:53 -0500, Eric Butera wrote: > On Tue, Dec 30, 2008 at 12:42 PM, Nathan Nobbe > > I was following the blog tutorial on cake and here's what I got from > hitting the post/index page: > > 081230 12:51:55 316 Connect r...@localhost on > 316 Ini

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Robert Cummings
On Tue, 2008-12-30 at 12:15 -0500, Eric Butera wrote: > On Tue, Dec 30, 2008 at 2:07 AM, Nathan Nobbe wrote: > >> on 12/30/2008 01:13 AM Sancar Saran said the following: > >> > and please read this why > >> > > >> > http://talks.php.net/show/drupal08/0 > > it also acts as a nice control mechanism

Re: [PHP] Re: Webhotel structure

2008-12-30 Thread Robert Cummings
On Tue, 2008-12-30 at 17:44 +0200, Dotan Cohen wrote: > 2008/12/30 Peter Sorensen : > > Peter, the list had a laugh at your expense, as you used some > incorrect words in what turned out to be a funny manner for those > fluent in English. > > 1) "Webhotel" is called "web hosting" in English. > 2)

Re: [PHP] Webhotel structure

2008-12-27 Thread Robert Cummings
On Sat, 2008-12-27 at 15:54 -0500, John Corry wrote: > +1 > > Is it me or has the php mailing list kind of dumbed itself down in the > last 5 years? Hey, that's almost as long as I've been here... *blink* ... *blink* *blink* :O Cheers, Rob. -- http://www.interjinn.com Application and Templati

Re: [PHP] uri/url help

2008-12-26 Thread Robert Cummings
On Fri, 2008-12-26 at 22:02 -0800, Kenton P. Kammer wrote: > I'm trying to make something to redirect people to my home page if they some > how access my include pages. For example, I have a generic copyright .htm > with links in it that I add to all my pages with the include(). Problem is > w

Re: [PHP] MERRY XMAS

2008-12-24 Thread Robert Cummings
On Wed, 2008-12-24 at 10:05 -0500, tedd wrote: > At 3:29 AM -0500 12/24/08, Robert Cummings wrote: > >On Wed, 2008-12-24 at 00:38 -0700, Nathan Nobbe wrote: > >> On Tue, Dec 23, 2008 at 8:59 PM, German Geek wrote: > >> > >> > Merry xmas to everyone! Tha

Re: [PHP] MERRY XMAS

2008-12-24 Thread Robert Cummings
On Wed, 2008-12-24 at 11:08 +, Richard Heyes wrote: > > word > > Which one? > > Happpy needless turkey murder day! To coin a phrase. We eat ham usually instead... we prefer to needlessly kill bigger animals >:) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework f

Re: [PHP] MERRY XMAS

2008-12-24 Thread Robert Cummings
On Wed, 2008-12-24 at 09:43 +0100, Kastner Mario wrote: > Merry XMas from Austria out to the world! > > Love to everyone > Mario > > http://unite-it.at > > function celebrateChristmas(array $people) > { > foreach ($people as $individuum) > { > printf("Wish you a merry

Re: [PHP] MERRY XMAS

2008-12-24 Thread Robert Cummings
On Wed, 2008-12-24 at 00:38 -0700, Nathan Nobbe wrote: > On Tue, Dec 23, 2008 at 8:59 PM, German Geek wrote: > > > Merry xmas to everyone! Thanks for the support and fun discussions. As they say in my son's kindergarten so as to be all inclusive: We wish you a happy holiday! We wish you

Re: [PHP] filter function vs regular expression

2008-12-20 Thread Robert Cummings
On Sat, 2008-12-20 at 16:22 +0100, Alain Roger wrote: > Hi, > > i'm reading a book about PHP and i was wondering why regular expressions are > so often used to check format of variables or emails while the function > filter exists since version 5.2. > What are the plus of regular expression while

Re: [PHP] fread question

2008-12-17 Thread Robert Cummings
On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote: > Hello, > I have been trying to use fread to open a file, but it always escapes > special characters. > How do I open afile without it modifying my original file: > > $_POST[$fname] = fread($fileHandle, $_POST[$fname.'_size']); > I use this and ge

Re: [PHP] Read/decode barcodes from an image

2008-12-17 Thread Robert Cummings
On Wed, 2008-12-17 at 14:56 -0800, Adam Randall wrote: > I'm amazed that this either doesn't exist, or is hard to find. I > basically am looking for a way to read in an image into PHP, or shell > out to something on the Linux side, and determine, and see if it has a > barcode in it or not. If it do

Re: [PHP] Good PHP book?

2008-12-17 Thread Robert Cummings
On Wed, 2008-12-17 at 10:47 +, Richard Heyes wrote: > > Floppies hold 1.4 megs now? Mine don't and they're even dual-sided. :( > > What are "Floppies"? Is it a reference to a particular male problem? If so, then I want to know what dual sided means? Cheers, Rob. -- http://www.interjinn.com

Re: [PHP] Re: Create unique non-autoincrement key for 700,000 records?

2008-12-17 Thread Robert Cummings
On Wed, 2008-12-17 at 11:32 +0100, Jochem Maas wrote: > > > > > >> sometimes less is more (although oddly more is never less ;-) > > > > What about when more is black holes? > > hmm. I guess that would depend on which side of the event horizon > you were at. :-) Is there conservation of reality

Re: [PHP] Can PHP be used to snatch images cross-domain?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 21:29 -0500, Rob Gould wrote: > If I have a php script on my own server, can it be used to snatch a JPEG > image off of another server on a different domain and upload it to my server? > For example, could I provide an URL to an image on another server and a path > on my o

Re: [PHP] Re: Create unique non-autoincrement key for 700,000 records?

2008-12-16 Thread Robert Cummings
On Wed, 2008-12-17 at 02:03 +0100, Jochem Maas wrote: > > or just: > > mysql_query("UPDATE test SET mykey=UUID()"); > > can't see any reason to go down the 'loop the dataset and roll your > own much less random, much more likely to collide, unique value' road. Not terribly random: 7e55a4d0-1d31

Re: [PHP] Good PHP book?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 22:30 +, Ashley Sheridan wrote: > On Tue, 2008-12-16 at 17:22 -0500, Robert Cummings wrote: > > On Tue, 2008-12-16 at 22:21 +, Ashley Sheridan wrote: > > > On Tue, 2008-12-16 at 16:11 -0600, Jay Moore wrote: > > > > Daniel Brown wrote:

Re: [PHP] Good PHP book?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 22:21 +, Ashley Sheridan wrote: > On Tue, 2008-12-16 at 16:11 -0600, Jay Moore wrote: > > Daniel Brown wrote: > > > On Tue, Dec 16, 2008 at 17:04, Jay Moore wrote: > > >> Floppies hold 1.4 megs now? Mine don't and they're even dual-sided. :( > > > > > > Jay, > > >

Re: [PHP] Good PHP book?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 17:07 -0500, Daniel Brown wrote: > On Tue, Dec 16, 2008 at 17:04, Jay Moore wrote: > > > > Floppies hold 1.4 megs now? Mine don't and they're even dual-sided. :( > > Jay, > > Throw out your 62K and 5.25" floppies and get with the 1980's, > brother. It's all about

Re: [PHP] Good PHP book?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 13:50 -0600, Jay Moore wrote: > > Ps. That was a lame attempt at humour... I extract and distill knowledge > > from the Internet and save myself from having to buy books. > > > I hear they have that on computers now. I should check it out one of > these days. Maybe I'll b

Re: [PHP] Good PHP book?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 13:41 -0600, Jay Moore wrote: > Richard Heyes wrote: > I learned from PHP For Dummies. > >>> The title of that book isn't doing itself any favours... :-) > >>You'd be surprised. The "For Dummies" series is one of the > >> best-selling franchises in mainstream publish

Re: [PHP] Re: Create unique non-autoincrement key for700,000records?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 09:56 +0100, Ondrej Kulaty wrote: > Sorry you are right. He said he wants each row to have an unique ID so > AutoIncId+timestamp will satisfy it, But still i think that adding > microseconds timestamp is better because it will be harder for potential > hacker to guess. I a

Re: [PHP] Re: Create unique non-autoincrement key for 700,000records?

2008-12-16 Thread Robert Cummings
On Tue, 2008-12-16 at 09:21 +0100, Ondrej Kulaty wrote: > I think he knows how to use it, he didn't show us a certain example where > and how he wants to use it, i just posted the way how i do generate an > unique identifier, if he use the first mentioned way - > AutoIncID+unix_timestamp - there

Re: [PHP] Re: Create unique non-autoincrement key for 700,000 records?

2008-12-15 Thread Robert Cummings
On Tue, 2008-12-16 at 07:35 +0100, Ondrej Kulaty wrote: > I use md5(microtime()); I applaud the use of PHP on the "PHP" list... but I think the OP wants an SQL query :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://ww

Re: [PHP] Using a class inside of a class

2008-12-12 Thread Robert Cummings
On Fri, 2008-12-12 at 13:21 -0800, Richard Kurth wrote: > Can I use another class inside of a function in a class > > > this function process_queue below is inside of a class called class mailer > I want to use the phpMailer class inside of this function so I can send > email using smtp. > Can t

Re: [PHP] question on parameter specification in href tag

2008-12-12 Thread Robert Cummings
On Thu, 2008-12-11 at 11:30 +0100, Xaver Thum wrote: > Hi, > > I want to set a link like > > http://www.anyurl.com?mypar=17&color=red";> ... > > into my HTML file; that works fine. > > But if I specify a hex color like #CC instead of "red", > > http://www.anyurl.com?mypar=17&color=#CC"

Re: [PHP] Chrome 1.0 released

2008-12-12 Thread Robert Cummings
On Fri, 2008-12-12 at 18:39 +0200, Dotan Cohen wrote: > 2008/12/12 Richard Heyes : > > Well it's not really related to PHP, but certainly web development in > > general. Personally, I was surprised by the jump from 0.4 to 1.0. > > Judging by other Google betas (eg Gmail) I was expecting it to be in

Re: [PHP] Need a brain to bounce some Mysql/DB thoughts off of!!

2008-12-12 Thread Robert Cummings
On Fri, 2008-12-12 at 11:02 -0500, Daniel Brown wrote: > On Fri, Dec 12, 2008 at 10:35, Robert Cummings wrote: > > > > Are you suggesting I'm not tolerant? Pfff. > > Not since you've let those crosses on the lawn burn out. ;-P Those aren't crosses... the

RE: [PHP] Need a brain to bounce some Mysql/DB thoughts off of!!

2008-12-12 Thread Robert Cummings
On Fri, 2008-12-12 at 06:34 -0600, Jay Blanchard wrote: > [snip] > It's Christmas... the season of giving and tolerance :| > [/snip] > > We will return you to your regularly scheduled Robert Cummings Jan 2nd, > 2009 Are you suggesting I'm not tolerant? Pfff

Re: [PHP] Re: Foreign Keys Question

2008-12-11 Thread Robert Cummings
On Fri, 2008-12-12 at 09:06 +0200, clive wrote: > Colin Guthrie wrote: > > 'Twas brillig, and tedd at 11/12/08 18:46 did gyre and gimble: > >> As for my "Foreign Keys Question", I think the answer is that it > >> enforces rules upon the configuration (i.e., deleting, altering, and > >> such), but

Re: [PHP] Need a brain to bounce some Mysql/DB thoughts off of!!

2008-12-11 Thread Robert Cummings
It's Christmas... the season of giving and tolerance :| On Fri, 2008-12-12 at 13:56 +1300, German Geek wrote: > This list seems to be turning into a MySQL list with a few PHP questions... > Tim-Hinnerk Heuer > > http://www.ihostnz.com > > > On Fri, Dec 12, 2008 at 1:53 PM, bruce wrote: > > >

Re: [PHP] Foreign Keys Question

2008-12-11 Thread Robert Cummings
On Thu, 2008-12-11 at 16:24 -0500, Robert Cummings wrote: > On Thu, 2008-12-11 at 16:17 -0500, tedd wrote: > > At 3:14 PM -0500 12/11/08, Andrew Ballard wrote: > > > > > >That's the way to go. Just keep in mind that you will have to consider > > >ways of p

Re: [PHP] Foreign Keys Question

2008-12-11 Thread Robert Cummings
On Thu, 2008-12-11 at 16:17 -0500, tedd wrote: > At 3:14 PM -0500 12/11/08, Andrew Ballard wrote: > > > >That's the way to go. Just keep in mind that you will have to consider > >ways of preventing overloading your courses due to concurrency, > >whether you use table locks or devise your own mechan

Re: [PHP] Foreign Keys Question

2008-12-11 Thread Robert Cummings
On Thu, 2008-12-11 at 13:56 -0500, tedd wrote: > At 1:48 PM -0500 12/11/08, Robert Cummings wrote: > >On Thu, 2008-12-11 at 13:27 -0500, Bastien Koert wrote: > > > On Thu, Dec 11, 2008 at 12:56 PM, tedd > > > > > > Does anyone have any example code to show me

Re: [PHP] Foreign Keys Question

2008-12-11 Thread Robert Cummings
On Thu, 2008-12-11 at 13:46 -0500, tedd wrote: > At 12:29 PM -0600 12/11/08, phphelp -- kbk wrote: > >Hey tedd --- > > > >Do I understand your structure correctly that you have something like: > > > >Courses (table) > >course_id, > >subject_id, > >student1_id, > >student2_id, > >student3_id, > >stu

Re: [PHP] Foreign Keys Question

2008-12-11 Thread Robert Cummings
On Thu, 2008-12-11 at 13:27 -0500, Bastien Koert wrote: > On Thu, Dec 11, 2008 at 12:56 PM, tedd > > > > I believe I can create the Course table (excluding everything not germane) > > like so: > > > > INDEX (student_id), > > FOREIGN KEY (student_id) > > REFERENCES (students(id)), > > INDEX (ins

Re: [PHP] how to not show login info in the url ...what am I looking for?

2008-12-11 Thread Robert Cummings
On Thu, 2008-12-11 at 11:05 -0500, tedd wrote: > At 10:12 AM -0500 12/10/08, APseudoUtopia wrote: > >On Wed, Dec 10, 2008 at 10:03 AM, tedd <[EMAIL PROTECTED]> wrote: > > > In my mind, hacking a site (without doing damage) is a good introduction > > to > > > a client. > >> > > > >*Ahem*You m

Re: [PHP] usort for sorting an array of objects

2008-12-10 Thread Robert Cummings
On Thu, 2008-12-11 at 11:44 +1300, German Geek wrote: > On Thu, Dec 11, 2008 at 6:43 AM, Robert Cummings <[EMAIL PROTECTED]>wrote: > > > On Thu, 2008-12-11 at 01:31 +1300, German Geek wrote: > > > On Wed, Dec 10, 2008 at 10:27 PM, Stut <[EMAIL PROTECTED]> wrote:

Re: [PHP] usort for sorting an array of objects

2008-12-10 Thread Robert Cummings
On Thu, 2008-12-11 at 01:31 +1300, German Geek wrote: > On Wed, Dec 10, 2008 at 10:27 PM, Stut <[EMAIL PROTECTED]> wrote: > > > On 10 Dec 2008, at 04:15, German Geek wrote: > > > >> I need to sort an array of objects. I found this ( at a url that didnt let > >> me send this msg... ) and I would kn

Re: [PHP] A MySQL Question

2008-12-09 Thread Robert Cummings
On Tue, 2008-12-09 at 01:49 -0800, Yeti wrote: > As a matter of fact, in space you can't even scream. Sure you can... I'm screaming right now... and I'm in space. A container within a container within a container within a container (ad infinitum) is still within the outermost container. Cheers, R

Re: [PHP] A MySQL Question

2008-12-09 Thread Robert Cummings
On Tue, 2008-12-09 at 16:40 +, [EMAIL PROTECTED] wrote: > Perhaps you couldn't hear the big bang in this universe, but what about in > the universe that spawned it? > :-) The black hole wouldn't allow it to travel in that direction ;) Cheers, Rob. -- http://www.interjinn.com Application and

Re: [PHP] A MySQL Question

2008-12-09 Thread Robert Cummings
On Mon, 2008-12-08 at 23:50 -0800, Yeti wrote: > define('HUMAN_STUPIDITY', true); > function bigbang() { > while (HUMAN_STUPIDITY || !isset($debate_is_over)) { } > return true; > } > if (!isset($universe)) bigbang(); > ?> > > Who says the big bang is past? I can't hear it. Cheers, R

Re: [PHP] A MySQL Question

2008-12-08 Thread Robert Cummings
On Tue, 2008-12-09 at 17:40 +1300, German Geek wrote: > On Tue, Dec 9, 2008 at 3:51 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > > > German Geek wrote: > > > On Tue, Dec 9, 2008 at 2:46 PM, Micah Gersten <[EMAIL PROTECTED] > > > <mailto:[EMAIL PROTECTED

Re: [PHP] A MySQL Question

2008-12-08 Thread Robert Cummings
On Mon, 2008-12-08 at 19:46 -0600, Micah Gersten wrote: > Robert Cummings wrote: > > On Tue, 2008-12-09 at 00:16 +, Nathan Rixham wrote: > > > >> Ashley Sheridan wrote: > >> > >>> On Mon, 2008-12-08 at 23:23 +, [EMAIL PROTECTED] wrote: &

Re: [PHP] A MySQL Question

2008-12-08 Thread Robert Cummings
On Tue, 2008-12-09 at 00:16 +, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Mon, 2008-12-08 at 23:23 +, [EMAIL PROTECTED] wrote: > >> Presumable, the EXISTS sub-query can be optimized sometimes to just stop > >> processing the sub-query and kick things back out to the outer query.

Re: [PHP] A MySQL Question

2008-12-08 Thread Robert Cummings
On Mon, 2008-12-08 at 10:19 -0500, Andrew Ballard wrote: > On Sun, Dec 7, 2008 at 12:38 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-12-07 at 11:01 -0500, Eric Butera wrote: > >> Sounds like someone thinks they're pretty clever. I'll never >

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

2008-12-07 Thread Robert Cummings
On Sun, 2008-12-07 at 19:54 +, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Sun, 2008-12-07 at 20:31 +0100, Per Jessen wrote: > >> Yeti wrote: > >> > >>> I think hotmail, or was it some other mail mogul, is allowing their > >>> users to have those weird German umlauts and some accented

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

2008-12-07 Thread Robert Cummings
On Sun, 2008-12-07 at 18:01 +, Nathan Rixham wrote: > >> On Sun, 2008-12-07 at 13:59 +, Luke Slater wrote: > >>> /** > >>> Validate an email address. > >>> Provide email address (raw input) > >>> Returns true if the email address has the email > >>> address format an

Re: [PHP] A MySQL Question

2008-12-07 Thread Robert Cummings
On Sun, 2008-12-07 at 11:01 -0500, Eric Butera wrote: > Sounds like someone thinks they're pretty clever. I'll never > understand why interviewers want to ask really odd edge case questions > instead of ones that really show practical knowledge. I know that I > don't know the syntax to everything

Re: [PHP] A MySQL Question

2008-12-07 Thread Robert Cummings
On Sun, 2008-12-07 at 10:03 -0500, tedd wrote: > Hi gang: > > I just interviewed for a job teaching at the local college (imagine > me taking minds of mush and molding them to the world according to > tedd -- frightening huh?) > > In any event, the interviewer asked me how long I've been using

<    5   6   7   8   9   10   11   12   13   14   >