Re: [PHP] PHPEclipse?

2004-07-16 Thread robert mena
I have downloaded the latest .zip from source forge but it keeps giving me "an error has occured when activating this view.." and hsow the php browser. eclipse 3.0, linux fedora core2, java 1.4.2_04-fcs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] easiest way to CREATE XML with PHP5?

2004-07-17 Thread Robert Cummings
On Sun, 2004-07-18 at 00:40, CD Baby wrote: > I see all these articles and tutorials about reading and parsing XML files. > > But what about creating and writing XML files with PHP5? > > Is the DOM the only way? > It seems like such a bloated overkill. > I just want to make simple little XML file

Re: [PHP] Sending email without an email server

2004-07-19 Thread robert mena
1 Line 131 is the end of the file (?>) The mail command is mail("Webmail <".$emailTo.">","[Contact]",$msg,"From: Webmail <[EMAIL PROTECTED]> \nReply-To: ".$name." <".$emailFrom.">\n"); Any tips ? On Tue, 13 Jul 200

RE: [PHP] URL

2004-07-21 Thread Robert Sossomon
are getting the information from the page anyways, just simply do: $_SERVER[PHP_SELF]?parameter1=$_GET[parameter1]¶meter2=$_GET[paramet er2]¶meter3=$_GET[parameter3] etc... HTH, Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpinfo problem

2007-08-13 Thread Robert Cummings
On Mon, 2007-08-13 at 17:07 +0100, Lester Caine wrote: > Stut wrote: > > Rick Knight wrote: > >> Thanks Chris, > >> > >> That was the problem. Is this new php5? I've used 3 prior php4 version > >> and didn't have this problem. > > > > The default value for short_open_tags was flipped a while back

Re: [PHP] OOP in PHP

2007-08-15 Thread Robert . Degen
> Theoritically if Class "koneksi" is being initialized than it > prints "koneksi berhasil (connection succeeded)" but it doesn't. What "does" it? Just nothing? No warnings at all? Possibly disabled? so far rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Regular Expression just one step away from what I need....

2007-08-17 Thread Robert Cummings
On Fri, 2007-08-17 at 12:00 -0500, Jay Blanchard wrote: > Given the string 'foo''bar''glorp' (all quotes are single quotes)I had > hoped to find a regular expression using preg_match that would return an > array containing just those words without having to go through > additional gyrations, like e

Re: [PHP] for/foreach speed

2007-08-20 Thread Robert Cummings
On Mon, 2007-08-20 at 18:50 +0200, Sascha Braun, CEO @ fit-o-matic wrote: > Hi people, > > could somebody please explain me, what loop construct is > faster? The for, while or foreach. I haven't bothered testing but I'd wager $5 that the following is the fastest loop: Depending on bytecode cre

Re: [PHP] Creating a table with merged cells

2007-08-23 Thread Robert Cummings
On Thu, 2007-08-23 at 15:59 +0200, Phpmanni wrote: > Hi > I need to represent a sort of map. The map is a rectangular > table of size X in widht and Y in height, so that I have X*Y > square cells. I need to record in a database some infos for > each cell. > This is easy, I thought to use a record

Re: [PHP] Out of Memory error

2007-08-23 Thread Robert Cummings
On Fri, 2007-08-24 at 01:21 +1000, Naz Gassiep wrote: > I'm getting out of memory errors in my image handling script, I *think* > its because I'm handling images that are too large to fit in memory, but > I thought I'd check before just upping the setting to 32mb. > > It is currently set to 16mb

Re: [PHP] Out of Memory error

2007-08-23 Thread Robert Cummings
just dies with a very unfriendly > error. > > Is there any way to catch these errors, stop the script in some other way > just before it ends so we can provide some reasonable feedback to the user? > > On 23/08/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > >

[PHP] Live support system (in php)

2007-08-23 Thread robert mena
Hi, I am looking for solutions to enable live support in my websites. I was told that phplivesupport (http://www.phplivesupport.com/) is a good solution but it seems to be dead (no anwser to emails, always offline). Does anybody have another solution (with source code available) within the same

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
PHP5 being faster than PHP4 is greatly dependent on what features you use. I've consistently found PHP4 to be faster for my purposes also. Cheers, Rob. On Fri, 2007-08-24 at 11:38 -0400, Nathan Nobbe wrote: > what are the changes that supposedly make php5 faster than php4? > > when java went fr

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
On Fri, 2007-08-24 at 12:24 -0500, Greg Donald wrote: > On 8/24/07, Steve Brown <[EMAIL PROTECTED]> wrote: > > The only difference I can figure is that PHP5 was the packaged version > > that comes with Ubuntu and I had to compile PHP4 from source since > > there is no package for it in Feisty. But

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
On Sat, 2007-08-25 at 00:28 -0500, Larry Garfield wrote: > On Friday 24 August 2007, Lester Caine wrote: > > > What would be interesting is if a group picked up PHP4 and kept going > > > with it in spite of the end of life announcement a few weeks back. I > > > wonder if the PHP license would allo

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 09:38 -0400, Nathan Nobbe wrote: > i dont know Robert; i think it depends upon the structure of ones > business. > for instance; i work for a company full time, and have a start up of > my own. > in both of those situations there is no impact on the client

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 10:33 -0400, Nathan Nobbe wrote: > yes, i agree, people wont be all-of-a-sudden ignoring php4, but the > notice on php.net says to migrate apps to 5 through the rest of the > yaer. id say thats ample time to move away from it. Migrate doesn't necessarily mean ditching PHP4 c

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 10:57 -0400, Nathan Nobbe wrote: > Robert, > > C is a low-level language whereas php is a high level language. > ill admit it openly, i am biased toward oop / design patterns. > and i think what i boils down to is what you view as 'icing' >

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 11:09 -0500, Larry Garfield wrote: > On Saturday 25 August 2007, Robert Cummings wrote: > > > Rewriting? You're assuming developers of PHP4 are using all of the > > features in PHP5 but written using PHP4 code. That's not a very valid > >

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 12:28 -0500, Larry Garfield wrote: > Robert and everyone: PLEASE do not reply to list AND the sender, at least not > when I'm the sender. I don't need double copies of every message in every > thread I participate in. Thanks. Sorry I've been h

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 14:26 -0500, Larry Garfield wrote: > On Saturday 25 August 2007, Nathan Nobbe wrote: > > i dont know what all this goPHP5 stuff is about. > > all i know is there was an announcment on php.net a few weeks back saying > > php4 is deprecated and it soon will be made obsolete. > >

[PHP] Calling functions which names are inside a variable

2007-08-25 Thread Robert Keizer
I am currently working on a module testing class, I can't seem to find the correct syntax. Here is an example of the problem: function foo( $var ){ include $var.'.php'; return $var(); //

Re: [PHP] Calling functions which names are inside a variable

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 23:46 -0600, Robert Keizer wrote: > I am currently working on a module testing class, I can't seem to find the > correct syntax. Here is an example of the problem: > > function foo( $var ){ > include $var.'.php'; > return $var(); //

[PHP] Re: Calling functions which names are inside a variable

2007-08-25 Thread Robert Keizer
Thats great thanks, but it doesn't solve my problem completly, im trying to use $output = $var(); .. which gives me an error. The $var(); works though, so thanks for that. Robert Keizer ""Robert Keizer"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

[PHP] Re: determine which string is longer and then what is different in that string

2007-08-25 Thread Robert Keizer
ach($ary2 as $num){ $num2 .= $num; } that would get the strings into "12345678" and "246810" respectfully, so you could do simple add, subtract, greater than, less than, etc... hope this was helpful. Robert Keizer ""Richard Kurth"" <[EMAIL PROTECTED]> w

Re: [PHP] Why not user...?

2007-08-27 Thread Robert Cummings
On Mon, 2007-08-27 at 09:56 +0200, Gustav Wiberg wrote: > Hi! > > Why is it so that I get this error. I'm using Windows Integrated > authorization-method for actual webb I'm testing on. > > Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on > line 2 Because on line 2 o

Re: [PHP] Is a small memory footprint better for a php script?

2007-08-31 Thread Robert Cummings
On Fri, 2007-08-31 at 23:06 +0200, Mark wrote: > > The question now is: what is better? a script with a small memory > usage? or is that something i don't need to look at? It depends... do you find the following script better? Better than what? It definitely has a small memory footpring: > And

Re: [PHP] for loop inside a switch

2007-08-31 Thread Robert Cummings
On Fri, 2007-08-31 at 15:56 -0700, Dan wrote: > Sanjeev is right. You're thinking about the problem backwards. You're > trying to build a Switch inside a loop. Remember, if you ever have to do > some operating multiple times you're using a forloop, then the thing that > you want to repeat(swi

[PHP] strange reference behavior

2007-09-01 Thread Robert Enyedi
t;\n"; // I would expect "2", but prints "1" Could anyone please clarify why this happens? Regards, Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strange reference behavior

2007-09-01 Thread Robert Cummings
On Sat, 2007-09-01 at 13:06 +0300, Robert Enyedi wrote: > Hi, > > I've been studying the PHP reference mechanism (with PHP 5.2.1) and I'm > unsure if the following behavior is normal. > > This code works as expected: > > $a = 2; > $b = &am

Re: [PHP] strange reference behavior

2007-09-01 Thread Robert Cummings
On Sat, 2007-09-01 at 11:39 +0100, Martin Ellingham wrote: > Robert Enyedi wrote: > > Hi, > > > > I've been studying the PHP reference mechanism (with PHP 5.2.1) and > > I'm unsure if the following behavior is normal. > > > > This code works

Re: [PHP] strange reference behavior

2007-09-01 Thread Robert Enyedi
Thanks for the clarifications. Regards, Robert Robert Cummings wrote: On Sat, 2007-09-01 at 11:39 +0100, Martin Ellingham wrote: Robert Enyedi wrote: Hi, I've been studying the PHP reference mechanism (with PHP 5.2.1) and I'm unsure if the following behavior is normal. This cod

[PHP] [EMAIL PROTECTED]: Re: [PHP] what is my dns ip address]

2007-09-01 Thread Robert Degen
>> Or read the contents of /etc/resolv.conf I'm not familiar with, but does any MS product have any comparable file? I remember a "host(s)" ... file somewhere below system32\etc\... but is there any resolv.conf ? I got no win machine here with me, so I can't look it up :-) > Faster for static

Re: [PHP] question about making modules

2007-09-01 Thread Robert Degen
Maybe you should deal with some things like * Plugin-Architecture * Extension Points * States !? A look at wikipedia might give most information you need. Regards rob On Sa, Sep 01, 2007 at 11:23:31 +0200, Mark wrote: > Hey, > > i've been trying alot to make php modules (php based.. not r

Re: [PHP] PHP Developer Required

2007-09-03 Thread Robert Cummings
On Mon, 2007-09-03 at 13:47 -0400, mlists wrote: > Wow! > > Spend $100K on a university degree in computer science, work > successfully for five years with all the major technologies, and then > get paid $25 per hour? The poster didn't mention anything about being competent. > My auto mechanic c

Re: [PHP] PHP Developer Required

2007-09-03 Thread Robert Cummings
On Mon, 2007-09-03 at 14:38 -0400, tedd wrote: > At 1:47 PM -0400 9/3/07, mlists wrote: > >Wow! > > > >Spend $100K on a university degree in computer science, work > >successfully for five years with all the major technologies, and then > >get paid $25 per hour? > > You can really get that much?

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-04 Thread Robert Cummings
On Tue, 2007-09-04 at 14:28 -0400, Greg Gay wrote: > Rob/mlists > > You're certainly not encouraging PHP programmers to get involved with > paid open source projects. That's a guaranteed $50,000 a yr, a little > low perhaps by industry standards, but it is a reasonable starting rate, > and gets yo

Re: [PHP] opcode question

2007-09-05 Thread Robert Cummings
On Wed, 2007-09-05 at 14:15 +0200, Frank Höger wrote: > Hello, > > I recently came across an "invalid opcode 137/8/8" error. I couldn't > find anything on the net regarding this specific error. Where can I find > documentation concerning opcodes and particularly this error? I took your exact qu

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Robert Cummings
On Wed, 2007-09-05 at 09:18 -0400, Greg Gay wrote: > > http://atrc.utoronto.ca/index.php?option=com_content&task=blogcategory&id=26&Itemid=109 VRML... it makes me cry how it never came to be as popular as it could have been. Cheers, Rob. -- ..

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Robert Cummings
On Wed, 2007-09-05 at 09:47 -0400, Dan Shirah wrote: > I personally think it sounds like a pretty fun job with a lot of potential. > Even if you don't get hired on as staff after the contract is up, you're > still potentially walking away with: > 1 - Some excellent business contacts > 2 - First han

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Robert Cummings
On Wed, 2007-09-05 at 14:03 -0400, Daniel Brown wrote: > On 9/5/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > [snip] > > I don't think the currency matters very much anymore... you get $1.05 on > > the American dollar these days. It's not like 6 years ag

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Robert Cummings
On Wed, 2007-09-05 at 11:41 -0700, Greg Maruszeczka wrote: > On Wed, 5 Sep 2007 14:35:10 -0400 > "Daniel Brown" <[EMAIL PROTECTED]> wrote: > > > On 9/5/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > Well $2,500 is $2,500... no arguing that.

Re: [PHP] cant mail

2007-09-06 Thread Robert Degen
Connection/Firewall ?! -- Run telnet 25, type EHLO and see if he talks to you No anonymous relaying ?! Set the From header, caus maybe your smtp doesn't relay for everyone :-) mail ($addressee, $sub, $body, 'From: [EMAIL PROTECTED]'); or write it

[PHP] Loosing session data between requests

2007-09-06 Thread robert mena
Hi, I am facing a strange problem. I have two servers (both Centos 4.5, httpd 2.0.52, php 5.1.6) and in one of them a webmail (uebimiau) looses session data between requests and in another it does not. I've compared php.ini from both with nothing different except for some memory limits they are

Re: [PHP] Loosing session data between requests

2007-09-06 Thread robert mena
Edward, My session.save_path = "/tmp". The sess_X is created but with no contents On 9/6/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > robert mena wrote: > > I've checked both /tmp and the session file sess_x in one server is > > empty

Re: [PHP] accessing one object's attribute from another

2007-09-09 Thread Robert Degen
Perhaps I misunderstood the problem, but I would simply... On So, Sep 09, 2007 at 10:06:15 -0400, Larry Brown wrote: > Hi all, I've be developing with a structured approach for a long time > and am working at improving my site by adding some classes etc. I > however, am running into an odd thing

Re: [PHP] How to get the child name from within the parent?

2007-09-10 Thread Robert . Degen
- Ursprüngliche Nachricht - Von: Mathijs <[EMAIL PROTECTED]> Datum: Montag, September 10, 2007 3:19 pm Betreff: [PHP] How to get the child name from within the parent? An: php-general@lists.php.net > Hello there, > > Is there a way to get the child class name from within the parent > me

Re: [PHP] Public Announcement

2007-09-10 Thread Robert Cummings
On Mon, 2007-09-10 at 16:39 +0100, Stut wrote: > Things to do before spamming a public English mailing list... > > 6) This one is really important. Make sure you include a URL to the > product's website. Oh, and make sure that website actually works, > especially when it says it's powered by your

Re: [PHP] Using a variable for include statement

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 14:00 -0300, Jeff Benetti wrote: > Sorry if this is a noob question, I have used PERL, TCL and VB but I am just > getting into PHP. If there is a better place to ask noobie questions then > let me know. > > I want to use the include statement but I want to pass the name of t

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:20 -0400, Jason Pruim wrote: > > echo "Export to Excel A>LogoutAdd > Record"; > echo "Total Records: $num_rows"; While you're trying to clean up your security approach you might also spend a little time cleaning up your HTML. Your lack of a consistent discipline for tag

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: > > Total length is 293 lines. > > It redirects before any output of $search is visible. > I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone > who wants to see the code... > > I know it repeats it's self, but I couldn't fig

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: > It redirects before any output of $search is visible. > I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone > who wants to see the code... I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! M

Re: [PHP] date weirdness

2007-09-18 Thread Robert Cummings
On Tue, 2007-09-18 at 15:32 -0500, Greg Donald wrote: > I have extracted a small portion of a calendar application I developed > recently to show some strange behavior with the date() function. When I > run this I get duplicate dates occasionally down the list. I'm seeing > 11/4 twice for example

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Robert Cummings
On Thu, 2007-09-20 at 13:55 +0200, Paul Scott wrote: > On Thu, 2007-09-20 at 12:50 +0100, Edward Kay wrote: > > In addition to Martin's good suggestions (and also assuming you're running > > php-cli via cron), you could use nice to stop it consuming too many > > resources: > > This is the current

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Robert Cummings
On Thu, 2007-09-20 at 13:09 +0100, C.R.Vegelin wrote: > - Original Message - > From: "Deniz Dizman (BST UGB)" <[EMAIL PROTECTED]> > To: "C.R.Vegelin" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" > > Sent: Thursday, September 20, 2007 11:29 AM > Subject: RE: [PHP] highlighting searchterms as

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Robert Cummings
On Thu, 2007-09-20 at 14:25 +0200, Paul Scott wrote: > On Thu, 2007-09-20 at 08:03 -0400, Robert Cummings wrote: > > Post some samples of the data you are parsing and a sample of the code > > you've written to parse them. If you're parsing 750 megs of data then > &

Re: [PHP] How can I make clean URL site with PHP?

2007-09-20 Thread Robert Cummings
On Thu, 2007-09-20 at 23:12 +0900, js wrote: > Hi. > > I like clean URL site like http://del.icio.us/someone/tag > (del.icio.us is powered by PHP, right?) > > But I have no idea how can I do it with PHP. > Is this a just apache's rewrite magic? or another different technique? Apache rewrite magi

Re: [PHP] Working with XML: DomDocument or SimpleXML?

2007-09-20 Thread Robert Cummings
On Thu, 2007-09-20 at 20:34 +0100, Colin Guthrie wrote: > Hi, > > Just wondering what people's general opinion is on working with XML in PHP? > > I like working with SimpleXML but DomDocument seems more useful in some > cases (e.g. working with XSLT transforms etc.). > > So what do you thing? Or

Re: [PHP] safe_mode & exec()

2007-09-20 Thread Robert Cummings
On Thu, 2007-09-20 at 16:14 -0400, tedd wrote: > Hi gang: > > Would someone be so kind as to explain to me how one can use exec() > with safe_mode on? http://ca.php.net/manual/en/features.safe-mode.php#ini.safe-mode-exec-dir Cheers, Rob. -- .

Re: [PHP] Upgrade

2007-09-21 Thread Robert Cummings
On Fri, 2007-09-21 at 16:18 +0100, Ben wrote: > It really depends on your situation. > We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of > sites will have trouble. > Personally I have some problem of upgrading from 4 to 5. > > The below codes work on 4: > > include("

Re: [PHP] Interesting Rails Vs. PHP article

2007-09-23 Thread Robert Cummings
On Sun, 2007-09-23 at 18:02 +0100, Colin Guthrie wrote: > Thought ppl here may be interested in this: > http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html > > Originally linked from /.: > http://developers.slashdot.org/article.pl?sid=07/09/23/1249235 It's funny, eve

Re: [PHP] Getting PHP CLI on machine without compiling or changing the other part of the system

2007-09-23 Thread Robert Cummings
On Mon, 2007-09-24 at 11:05 +1000, Chris wrote: > Peter Lauri wrote: > > Hi, > > > > In a current project we have developed a piece of software that run > > independently and that only requires php5 as a CLI component. > > > > Now we want to use this software on other machines, and the only requi

Re: [PHP] article: 7 reasons I switched back to PHP after 2 years on Rails

2007-09-24 Thread Robert Cummings
On Mon, 2007-09-24 at 12:52 -0500, XIMvad wrote: > hohoho .. maaanya :D > http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html DUPE!!! Posted yesterday! :) Cheers, Rob. -- ... S

Re: [PHP] Re: article: 7 reasons I switched back to PHP after 2 years on Rails

2007-09-25 Thread Robert Cummings
On Tue, 2007-09-25 at 08:29 -0400, tedd wrote: > At 7:47 PM +0100 9/24/07, Colin Guthrie wrote: > >Robert Cummings wrote: > >> On Mon, 2007-09-24 at 12:52 -0500, XIMvad wrote: > >>> hohoho .. maaanya :D > >>> > >>>http://www.oreillynet.com/r

Re: [PHP] Re: Data request

2007-09-25 Thread Robert Cummings
On Tue, 2007-09-25 at 10:44 -0600, Børge Holen wrote: > On Tuesday 25 September 2007 03:27:25 Christian Hänsel wrote: > > "Colin Guthrie" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > news:[EMAIL PROTECTED] > > > > > Auto-Deppe, C. Haensel wrote: > > >> Haha... nice one Col! Just started up my wor

Re: [PHP] Re: Data request

2007-09-25 Thread Robert Cummings
On Tue, 2007-09-25 at 16:57 -0400, tedd wrote: > At 9:17 AM -0400 9/25/07, Robert Cummings wrote: > >On Tue, 2007-09-25 at 10:44 -0600, Børge Holen wrote: > >> On Tuesday 25 September 2007 03:27:25 Christian Hänsel wrote: > > > > "Colin Guthrie" &l

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 15:11 -0400, brian wrote: > I have a directory that contains many images (no, not pr0n, > unfortunately) and i'm working on an admin script for adding to it. I've > got something that works alright but i'm wondering if there's a Better Way. > > Each image is named like: foo

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 15:58 -0400, brian wrote: > Robert Cummings wrote: > > On Wed, 2007-09-26 at 15:11 -0400, brian wrote: > > > >>I have a directory that contains many images (no, not pr0n, > >>unfortunately) and i'm working on an admin script for addi

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 19:10 -0400, brian wrote: > Robert Cummings wrote: > > >> Well, this is almost precisely the same thing i have, save for > >> using POSIX character classes, str_pad instead of sprintf(), and > >> incrementing elsewhere. What i was really

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 22:39 -0400, brian wrote: > Robert Cummings wrote: > > On Wed, 2007-09-26 at 19:10 -0400, brian wrote: > > > >>If my response to that gave you the impression i was > >>complaining, i assure you that i wasn't. I was simply suggesting &

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Thu, 2007-09-27 at 00:23 -0400, brian wrote: > Robert Cummings wrote: > > When you use sort() the default behaviour is a lexical sort. This is why > > the 100th index breaks your system. I'm not trying to be a dickhead, > > just pointing out the flaw in your logic. You

Re: [PHP] counting with leading zeros

2007-09-27 Thread Robert Cummings
On Wed, 2007-09-26 at 21:56 -0700, Jim Lucas wrote: > > Now, if you plan to delete any images in the list, this will not work. > > But if you don't expect to delete any images in the list and always want > the ($total_images + 1), then follow along. > > > function getNextImage($path, $prefix)

Re: [PHP] counting with leading zeros

2007-09-30 Thread Robert Cummings
On Sat, 2007-09-29 at 23:47 -0400, brian wrote: > > It's not so much that i disrespect Rob. It's just that i felt i had to > call him out for being a dickhead by taking my statement out of context. Ok, so I'm a dickhead. What does that make you? A vagina? Name calling really is the lowest form o

Re: [PHP] Problem with pasting text from word into php form

2007-10-01 Thread Robert Cummings
On Mon, 2007-10-01 at 08:01 +0200, Crab Hunt wrote: > Hi, > Is there a fix for removing the junk characters that appear when we copy and > paste some text from Microsoft word into a php form ? For example the double > quotes "" turn into something like *â??* > > thanks in advance. http://www.goog

Re: [PHP] an apology

2007-10-02 Thread Robert Cummings
On Tue, 2007-10-02 at 09:34 -0400, Daniel Brown wrote: > On 10/1/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Most of us have pretty thick skin around here. > > Yeah, especially Rob. > > Wait skin or skull? Ah, well ;-P Duh... wha?! Y

Re: [PHP] The Context of 0

2007-10-02 Thread Robert Cummings
On Tue, 2007-10-02 at 12:14 -0500, Jay Blanchard wrote: > [small rant] > This morning's thread on strpos() brings up an interesting point, zero > has a context. > > In certain cases 0 is the equivalent of FALSE and in other cases a 0 is > just a 0. In the context of strpos() 0 indicates that the n

Re: [PHP] Optimized PHP

2007-10-03 Thread Robert Cummings
On Wed, 2007-10-03 at 09:52 -0400, Nathan Nobbe wrote: > > one nice trick you can easily implement is to compress your code before > pushing it to production. > the php cli exposes a method for stripping out the whitespace and comments. > > php -w Do it right, use a compile cache like Eaccelerato

Re: [PHP] Optimized PHP

2007-10-03 Thread Robert Cummings
On Wed, 2007-10-03 at 10:22 -0400, Nathan Nobbe wrote: > On 10/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Wed, 2007-10-03 at 09:52 -0400, Nathan Nobbe wrote: > > > > > > one nice trick you can easily implement is to compress your cod

Re: [PHP] Re: the opposite of a join?

2007-10-03 Thread Robert Cummings
On Wed, 2007-10-03 at 14:49 -0700, Jim Lucas wrote: > > This is only from my own personal testing. Mind you that I have only been > using PostgreSQL for a > year or so. But one problem that I have always ran into with MySQL is that > when JOIN'ing tables > that have large data sets is a PITA.

Re: [PHP] Alternate Colors in Rows

2007-10-03 Thread Robert Cummings
In the following example I show a simple OOP example (because I felt like it) and illustrate why using CSS classes is the most powerful way to do row style cycling. Hopefully you're using a decent browser (almost anything other than IE -- I recommend Opera :) but if not then IE7 will suffice to ill

Re: [PHP] Re: the opposite of a join?

2007-10-03 Thread Robert Cummings
On Thu, 2007-10-04 at 11:23 +1000, Chris wrote: > Robert Cummings wrote: > > On Wed, 2007-10-03 at 14:49 -0700, Jim Lucas wrote: > >> This is only from my own personal testing. Mind you that I have only been > >> using PostgreSQL for a > >> year or so. Bu

Re: [PHP] Alternate Colors in Rows

2007-10-04 Thread Robert Cummings
On Wed, 2007-10-03 at 22:12 -0400, Nathan Nobbe wrote: > On 10/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > Hopefully you're using a decent browser (almost > anything other than IE -- I recommend Opera :) > > opera is the best for straight browsin

Re: [PHP] Re: the opposite of a join?

2007-10-04 Thread Robert Cummings
On Thu, 2007-10-04 at 11:56 +1000, Chris wrote: > Robert Cummings wrote: > > On Thu, 2007-10-04 at 11:23 +1000, Chris wrote: > >> Robert Cummings wrote: > >>> On Wed, 2007-10-03 at 14:49 -0700, Jim Lucas wrote: > >>>> This is only from my own

Re: [PHP] Problem with eAccelerator 0.9.5.2

2007-10-04 Thread Robert Cummings
I would check for an eaccelerator mailing list. Personally I never use the web interface. Cheers, Rob. On Thu, 2007-10-04 at 17:29 +0200, "Miguel J. Jiménez" wrote: > Hi, I am new to eAccelerator... when I use purge or clean the apache > error log says: > > * File does not exist: /var/www/PHPE

RE: [PHP] inserting ´ in a db

2007-10-04 Thread Robert Cummings
On Thu, 2007-10-04 at 10:18 -0700, Warren Vail wrote: > You need to escape the single quote, an easy way to do this is to run the > text thru the addslashes() filter. Obviously you can't run your entire > query thru the filter thru the filter because most of your quotes need to be > identified by

RE: [PHP] inserting ´ in a db

2007-10-04 Thread Robert Cummings
On Thu, 2007-10-04 at 10:55 -0700, Warren Vail wrote: > Rob, > > Your opinion would have meant more had you offered a solution. The only > hole that I am aware of is the likelihood that the imbedded query could get > executed accidentally later. > > If the database is mysql, there is finally a m

RE: [PHP] Alternate Colors in Rows

2007-10-04 Thread Robert Cummings
On Thu, 2007-10-04 at 12:28 -0700, Daevid Vincent wrote: > This was a joke right? You don't seriously do this in r.l. just to alternate > row colors I hope? This certainly was NOT a joke. I do use CSS classes. As for using a PHP class to implement the cycle-- No, I don't do that IRL. As I said in

RE: [PHP] Alternate Colors in Rows

2007-10-04 Thread Robert Cummings
On Thu, 2007-10-04 at 22:14 +0200, WeberSites LTD wrote: > You can choose to view source with IE in other editors too. > I use Editplus with IE7. That wasn't the reason I pimped Opera though. I would NEVER use IEX as my development browser. I do all my HTML for Opera, then I check it in Firefox,

Re: [PHP] A two flavored post

2007-10-04 Thread Robert Cummings
On Thu, 2007-10-04 at 22:33 -0400, tedd wrote: > Hi gang: > > I asked this question on the javascript list, but for some reason > it's taking forever to post there. So, I figured that I would ask > here as well. > > I'm currently sending data (the value of s) to another script via the > html s

Re: [PHP] A two flavored post

2007-10-05 Thread Robert Cummings
On Fri, 2007-10-05 at 19:19 +0200, Aleksandar Vojnovic wrote: > This might be a way to do it: > > *Example 1* > > function appendMeBaby(aVar){ > self.location.href = 'img.php?s=' + aVar + > '&someOtherVar=itIsMeTheValue'; > } > > Click here > > *Example 2* > > function appendMeBaby(aVar,

Re: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Robert Cummings
On Fri, 2007-10-05 at 14:00 -0500, Jeff Cohan wrote: > Daevid Vincent wrote: > > > > > I love the simplicity, and very cool. > > But why does the ($r=!$r) ternary condition work?. (I understand > that it DOES but not WHY.) Because he's rotating between boolean values. $r = true; $r =

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Robert Cummings
On Fri, 2007-10-05 at 13:46 -0500, Jay Blanchard wrote: > [snip] > > > > But why does the ($r=!$r) ternary condition work?. (I understand > > that it DOES but not WHY.) > [/snip] > > Check this out - > http://us3.php.net/manual/en/language.operators.assignment.php > > It says the value of the as

Re: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Robert Cummings
On Fri, 2007-10-05 at 14:49 -0400, Nathan Nobbe wrote: > On 10/5/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > It looks like PHP has an "unintentional feature". Doing this; > if($r = > !$r) should always return TRUE because it is an assignment. I > don't

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Robert Cummings
On Fri, 2007-10-05 at 14:04 -0500, Jay Blanchard wrote: > [snip] > The value of the expression is the value assigned. Since the ! operator > will always return a boolean then the assigned value is going to be a > boolean. So $r will always contain a boolean for the purposes of the > ternary operati

RE: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Robert Cummings
On Fri, 2007-10-05 at 14:17 -0500, Jay Blanchard wrote: > [snip] > if($r = !$r) > [/snip] > > And I hit send before I finished my thought process oh my goodness isn't > it five o'clock yet and why do all of these people keep coming by my > office distracting me from getting something useful done l

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-06 Thread Robert Cummings
On Sat, 2007-10-06 at 15:42 +0100, Tony Marston wrote: > > > > OOP revolves around the concept of grouping code and data together in > > logical units called classes. This process is usually referred to as > > encapsulation, > > Correct. > > > or information hiding, > > INCORRECT > > > since i

Re: [PHP] A two flavored post

2007-10-06 Thread Robert Cummings
On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: > At 1:26 PM -0400 10/5/07, Nathan Nobbe wrote: > >strange; i missed that when i put it together; my bad, it was late. > >here is a revision that works. > > > > > > > > > > window.onload = function() { > > var

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-07 Thread Robert Cummings
On Sat, 2007-10-06 at 22:20 -0700, Nathan Nobbe wrote: > On 10/6/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > > Tony is right here. Encapsulation is about hiding the details of the > > implementation > > > rob, here is tonys definition of encap

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-07 Thread Robert Cummings
On Sun, 2007-10-07 at 11:42 +0100, Tony Marston wrote: > > The definition of OOP is "programming which is oriented around objects, thus > taking advantage of Encapsulation, Polymorphism, and Inheritance to increase > code reuse and decrease code maintenance". It is possible to do this in PHP >

Re: [PHP] problem with download script on safari and ie 7

2007-10-08 Thread Robert Cummings
On Mon, 2007-10-08 at 14:59 +0100, Hulf wrote: > The problem I am getting is safari just downloads the .php file. IE7 > corrupts the binary file. It opens fine on FF and IE6. Is this a headers > problem? What's the value of $type? Cheers, Rob. > > Thanks, > > > R. > > > > if(isset($_GET

<    21   22   23   24   25   26   27   28   29   30   >