Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Eric Butera
On Jan 31, 2008 1:50 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > PHP is a server-side page generator. It has NOTHING to do with the browser. > > The PHP programmer determines the content of the resulting HTML and the > > browser reacts to THAT. Browsers never see a line of PHP script! > > Wh

Re: [PHP] Calling All Opinionated ******** ....

2008-02-01 Thread Eric Butera
On Feb 1, 2008 4:18 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > hi people, > > I'm in the market for a new framework/toolkit/whatever-you-want-to-call-it. > I've been taking a good hard look at the Zend Framework - if nothing else the > docs > are very impressive. > > I'd like to hear from people

Re: [PHP] New search related question

2008-02-04 Thread Eric Butera
On Feb 4, 2008 2:48 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone! :) > > Just a quick question, I've done some googling but haven't been able > to find what I need... I am looking at doing a search function for > someone's website, the website is just static HTML files, and she > doesn'

Re: [PHP] In Your Arms

2008-02-04 Thread Eric Butera
On Feb 4, 2008 3:50 PM, <[EMAIL PROTECTED]> wrote: > Destiny http://86.31.249.90/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I've decoded the secret message '%3C%61%20%68%72%65%66%3D%22%77%69%74%68%5F%6C%6F%76%65%2E%65%78%65%

Re: [PHP] php competion

2008-02-04 Thread Eric Butera
On Feb 4, 2008 5:23 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Feb 4, 2008 4:26 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > > > I hardly think this one is a scam, I mean all you have to do is write a > > PHP app that converts between PHP, Python, C and Perl and you get: > > "not only brag

Re: [PHP] In Your Arms

2008-02-04 Thread Eric Butera
On Feb 4, 2008 5:13 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Destiny http://86.31.249.90/ > > > > I love FF + NoScript :) > > -- > Jim Lucas > > "Some men are born to greatness, some achieve greatness, > and some have greatness thrust upon them." > > Twel

Re: [PHP] string vs number

2008-02-05 Thread Eric Butera
On Feb 5, 2008 1:40 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 1:36 PM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > > > hi all, > > > > i have this php statement: > > > > > > > > > > debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. > > > > is this possible?

Re: [PHP] string vs number

2008-02-05 Thread Eric Butera
On Feb 5, 2008 1:48 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 1:43 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > I was thinking about saying that, but php is loosely typed, so 54 == > > '54'. > i only mentioned the type cast because

Re: [PHP] Poll: phpt or phpunit and why?

2008-02-06 Thread Eric Butera
On Feb 6, 2008 1:32 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > in a conversation on #gentoo-php (irc), the following distinction > was drawn, > > " back on the phpt; just curious, how do you see it compared to something > like phpunit ? > comparable, or different.." > > " different... phpt is pr

Re: [PHP] shopping carts

2008-02-06 Thread Eric Butera
On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Does anyone know of a shopping cart which allows you to add multiple > custom fields to each product? > --e > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Please

Re: [PHP] shopping carts

2008-02-07 Thread Eric Butera
On Feb 7, 2008 9:11 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Feb 7, 2008, at 9:01 AM, Eric Butera wrote: > > > On Feb 6, 2008 7:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > >> > >> > >> On Feb 6, 2008, at 5:56 PM, Eric Butera w

Re: [PHP] date() and wrong timezone (or time)

2008-02-07 Thread Eric Butera
On Feb 6, 2008 6:13 AM, Martin Marques <[EMAIL PROTECTED]> wrote: > I got an update from tzdata on a Debian server due to a daylight saving > change here in Argentina. > > The problem is that, even when the system sees the correct time, php > keeps giving me the *old* hour. > > $ date > mié feb 6

Re: [PHP] shopping carts

2008-02-07 Thread Eric Butera
On Feb 7, 2008 10:04 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > Hey, I helped work on that, you bastard! ;-P Congratulations. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shopping carts

2008-02-07 Thread Eric Butera
On Feb 6, 2008 7:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Feb 6, 2008, at 5:56 PM, Eric Butera wrote: > > > On Feb 6, 2008 4:18 PM, nihilism machine <[EMAIL PROTECTED]> > > wrote: > >> Does anyone know of a shopping cart which allows y

Re: [PHP] shopping carts

2008-02-07 Thread Eric Butera
On Feb 7, 2008 9:59 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Feb 7, 2008 9:24 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > While I agree that if the end user doesn't get it, then you don't get > > paid... but quality matters if you have to exte

Re: [PHP] Name of variable to string

2008-02-08 Thread Eric Butera
On Feb 8, 2008 10:14 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > From a variable with the name of $this_variable -- how do I get a > string 'this_variable' ? > > Cheers, > > tedd > -- > --- > http://sperling.com http://ancientstones.com http://earthstones.com > > -- > PHP General Mail

Re: [PHP] Name of variable to string

2008-02-08 Thread Eric Butera
On Feb 8, 2008 1:53 PM, David Giragosian <[EMAIL PROTECTED]> wrote: > On 2/8/08, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > > On Fri, February 8, 2008 9:14 am, tedd wrote: > > > From a variable with the name of $this_variable -- how do I get a > > > string 'this_variable' ? > > > > You don't..

Re: [PHP] Gzipped output

2008-02-11 Thread Eric Butera
On Feb 11, 2008 11:58 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > > You should never use exec & friends when there is another way around > > the problem. It is a security concern. > > Why is it a security concern to execute another bit of

Re: [PHP] Gzipped output

2008-02-11 Thread Eric Butera
On Feb 11, 2008 11:08 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: should work fine That is enough of a point, right? Why even take the risk if you don't have to. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Gzipped output

2008-02-11 Thread Eric Butera
On Feb 11, 2008 10:44 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > >> I like it from a coding point of view (it's neat and elegant), but I > >> don't think it achieves anything else than my initial suggestion of > >> using e

Re: [PHP] Gzipped output

2008-02-11 Thread Eric Butera
On Feb 10, 2008 2:33 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > Andrés Robinet wrote: > > > How about something like this? (Needs debugging and testing, but... > > just a hint after all) > > > > > > > ob_start("ob_gzhandler"); > > > > while ($someString = getTheNextPartOfTheLargeFile()) { > > ech

Re: [PHP] Static variable in a class method

2008-02-14 Thread Eric Butera
On Thu, Feb 14, 2008 at 9:50 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > Nathan Nobbe schreef: > > > > what you are using is potentially not what you think it is. you are > > using > > > a 'static variable' which is

Re: [PHP] Static variable in a class method

2008-02-14 Thread Eric Butera
On Thu, Feb 14, 2008 at 3:07 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, February 14, 2008 11:10 am, Eric Butera wrote: > > Just FYI the static keyword was quite popular in PHP4 for the > > singleton pattern. You could do something like: > > I have used a

Re: [PHP] Gzipped output

2008-02-15 Thread Eric Butera
On Thu, Feb 14, 2008 at 3:52 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > On Mon, February 11, 2008 9:59 am, Eric Butera wrote: > > On Feb 11, 2008 10:44 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > >> Eric Butera wrote: > >> > >> &g

[PHP] base url and SEF

2008-02-20 Thread Eric Boo
Hi all, I'm currently parsing the variable $_SERVER['PHP_SELF'] to get the base url of a site. Example: http://www.example.com/~eric/program/index.php?option=abc What I'm interested in getting is "http://www.example.com/~eric/program/";, which I am able to get

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Eric Butera
On Mon, Feb 25, 2008 at 9:20 AM, tedd <[EMAIL PROTECTED]> wrote: > At 8:50 PM -0600 2/24/08, Larry Garfield wrote: > >Design patterns are just that: A formalization of various common patterns > that > >come up over and over in programming. Ever get the feeling "wow, I know > I've > >written s

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Eric Butera
adaptor > > i dont know about any favorites at this time but as far as common, > id say > > strategy > adapter > template method (often used in conjunction w/ factory) > > singleton too (watch out for eric; hes a registry guy ;)) (and this is the > top > 3 from my e

Re: [PHP] Performance Problem

2008-02-27 Thread Eric Butera
On Wed, Feb 27, 2008 at 12:39 PM, Adriano Manocchia <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been chasing what I think is the same performance issue for about > a year and it's driving me batty. First off, the server is a dual core > 2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and

Re: [PHP] Performance Problem

2008-02-27 Thread Eric Butera
othing > (including the other active web pages) took more than 15ms and the > empty php file never exceeded 1ms. Clearly it's not having problems > once it gets to processing the files. The issue seems to lie elsewhere > with PHP. > > > On Feb 27, 2008, at 1:32 PM, E

Re: [PHP] auto-wrap on posts

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 10:06 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > all, > > a fellow poster has been kind enough to bring to my attention how jacked > some of my posts appear. > i was manually formatting my posts, but it appears the list server must also > be doing some formatting as m

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
On Wed, Feb 27, 2008 at 5:12 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Feb 27, 2008 at 4:55 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > So I was supposed to go home a half hour ago but that didn't happen... > > I hate deadlines! :P > > You whine like a mule. > > [snip!] > > >

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 11:59 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Thu, Feb 28, 2008 at 11:28 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > Guess all your posts stating to sanitize data just really don't have > > an impact, huh? Perhaps you shoul

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 11:57 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Feb 28, 2008, at 11:28 AM, Eric Butera wrote: > > > On Wed, Feb 27, 2008 at 5:12 PM, Daniel Brown <[EMAIL PROTECTED]> > > wrote: > >> On Wed, Feb 27, 2008 at 4:55 PM

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 12:38 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Thu, Feb 28, 2008 at 12:36 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > And I'd appreciate it if you kept all your posts about wearing dresses > > to yourself but it isn't goin

Re: [PHP] Flexible Shopping Cart (was: Shopping Carts)

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 9:26 AM, tedd <[EMAIL PROTECTED]> wrote: > At 12:14 AM -0200 2/28/08, Manuel Barros Reyes wrote: > >The details are in that thread but basically what I am looking for is > >a shopping cart that has flexibility with respect to the graphical > >layout of elements and their

Re: [PHP] Flexible Shopping Cart (was: Shopping Carts)

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 1:32 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Thu, Feb 28, 2008 at 1:26 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > Magento is designed with css. But I know right now that you won't like > it. ;) > > Because their

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 1:39 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > > Eric Butera wrote: > > On Thu, Feb 28, 2008 at 12:38 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > >> On Thu, Feb 28, 2008 at 12:36 PM, Eric Butera <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Flexible Shopping Cart (was: Shopping Carts)

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 2:03 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Thu, Feb 28, 2008 at 1:33 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > It is a svn repo showing the code to a product page to which you > > design with styles instead of tables. > &

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 2:16 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > all, > > as we have discussed previously, php does not have support for retrieving > array values on the same line in which they are returned. i have created a > simple workaround, and would like to share. first there i

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 3:25 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > > Robert Cummings wrote: > > On Thu, 2008-02-28 at 19:37 +, Stut wrote: > >> On 28 Feb 2008, at 19:17, Wolf wrote: > >>> Jason Pruim wrote: > My editor automatically replaces like 4 spaces with a tab... Is > >

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
On Thu, Feb 28, 2008 at 3:43 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > [snip] > > Eric Butera wrote: > > I can hit tab and shift/tab too and it puts in spaces for me. > [snip] > > Robert Cummings wrote: > > Uhhhm, I hit the tab button also and it does t

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Eric Butera
t was, but my main editor is set for "Courier > New", Notepad in Vista defaults to "Lucida Console". I have a friend who > uses "Consolas" in Vista. > > -TG > > > - Original Message - > From: "Eric Butera" <[EMAIL PROTECT

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 12:09 PM, Thiago Pojda <[EMAIL PROTECTED]> wrote: > Guys, > > I've been asked to build a performance report for a PHP app. I can't profile > it using automated tools as I don't have full access to the server, only to > the application itself. > > It's a PHP4 Object-Orient

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 6:18 PM, Chris <[EMAIL PROTECTED]> wrote: > > > Just FYI, using ADODB will slow down the performance of your app. Any > > function calls cost against you and it all adds up. > > If you remove it, then you remove functionality - so before you go and > rip it out, check wh

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 9:21 PM, Chris <[EMAIL PROTECTED]> wrote: > > > These 'benefits' you talk about really only matter if you switch your > > databases. If this app is written against Oracle and they never plan > > to change it, then it isn't a bad idea to cut out that fat and just > > deal

Re: [PHP] PHP performance

2008-03-04 Thread Eric Butera
On Tue, Mar 4, 2008 at 5:51 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > > > On Mon, Mar 3, 2008 at 6:18 PM, Chris <[EMAIL PROTECTED]> wrote: > >> > Just FYI, using ADODB will slow down the performance of your app. Any > >&g

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-04 Thread Eric Butera
On Tue, Mar 4, 2008 at 5:09 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Ben Edwards schreef: > > > Our server has just been upgraded to PHP 5.2.5 and suddenly I am > > getting the following error: > > > > Fatal error: Call to a member function web_order_change() on a > > non-object in /var/ww

Re: [PHP] Universaly Accepted Naming Conventions..?

2008-03-05 Thread Eric Butera
On Wed, Mar 5, 2008 at 2:06 PM, John Papas <[EMAIL PROTECTED]> wrote: > Are there any in PHP? > > It seems like there are those that draw upon the C/unix naming > conventions and those that follow the Java/OO style. > > Even PHP's native syntax (like function names pre/post v5) are not > consis

Re: [PHP] CVS Scripts

2008-03-06 Thread Eric Butera
On Thu, Mar 6, 2008 at 7:29 AM, Adrian Walls <[EMAIL PROTECTED]> wrote: > Hi, > > > > I would like to be able to automatically check projects out from a CVS > repository using PHP rather than a traditional CVS client as part of a build > process? Has anyone done this successfully before and if

Re: [PHP] CVS Scripts

2008-03-06 Thread Eric Butera
On Thu, Mar 6, 2008 at 9:11 AM, Thiago Pojda <[EMAIL PROTECTED]> wrote: > -Mensagem original- > De: Eric Butera [mailto:[EMAIL PROTECTED] > > > > > CONFIDENTIALITY NOTICE > > This email is private and confidential and may contain legally > >

Re: [PHP] CVS Scripts

2008-03-06 Thread Eric Butera
; > > > > -Original Message- > From: Wolf [mailto:[EMAIL PROTECTED] > > > Sent: 06 March 2008 15:42 > To: Adrian Walls > Cc: 'Eric Butera'; php-general@lists.php.net > Subject: RE: [PHP] CVS Scripts > > Adrian Walls <[EMAIL PROT

Re: [PHP] CVS Scripts

2008-03-06 Thread Eric Butera
On Thu, Mar 6, 2008 at 12:10 PM, tedd <[EMAIL PROTECTED]> wrote: > At 11:30 AM -0500 3/6/08, Andrés Robinet wrote: > > Still, I kept the other part of the signature > >(which you can see at the bottom) because it > >contains information that can be of some value > >for anybody reading my posts

Re: [PHP] CVS Scripts

2008-03-06 Thread Eric Butera
On Thu, Mar 6, 2008 at 1:03 PM, tedd <[EMAIL PROTECTED]> wrote: > At 12:43 PM -0500 3/6/08, Eric Butera wrote: > >You know most people do break the rules. :) > > > >http://us.php.net/reST/php-src/README.MAILINGLIST_RULES > > > >Specifically: > >7

Re: [PHP] CVS Scripts

2008-03-07 Thread Eric Butera
On Fri, Mar 7, 2008 at 3:58 AM, Adrian Walls <[EMAIL PROTECTED]> wrote: > I am going to code this up myself with wrappers around the cvs commands I > need. Good luck! Sounds like that might be the best solution since you have such specific needs. The whole signature thing was just some friendly

Re: [PHP] Question about user management...

2008-03-10 Thread Eric Butera
On Mon, Mar 10, 2008 at 4:07 PM, tedd <[EMAIL PROTECTED]> wrote: > At 3:14 PM -0400 3/10/08, Daniel Brown wrote: > >On Mon, Mar 10, 2008 at 3:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > >> What I was thinking about doing was a combination of the company name > >> (Which I set right

Re: [PHP] Question about user management...

2008-03-10 Thread Eric Butera
On Mon, Mar 10, 2008 at 3:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone, Happy Monday to all of you! > > I am trying to think through a user management issue for a application > I am working on. What I want to do, is be able to provide a multi user > environment (All accessing the

Re: [PHP] Question about user management...

2008-03-11 Thread Eric Butera
On Tue, Mar 11, 2008 at 3:21 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > > > > Read up on "ACL's." > > > > Apart from Zend which you've mentiond below, is there anything in/for > PHP that will help implement A

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Eric Butera
On Wed, Mar 12, 2008 at 10:05 AM, Gustavo Narea <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm wondering what's wrong with the use of __autoload(), since I see that > projects like the Zend Framework don't use it and prefer to require_once > each required file. > > Thanks in advance. > -- >

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Eric Butera
On Thu, Mar 13, 2008 at 11:02 AM, Greg Donald <[EMAIL PROTECTED]> wrote: > On 3/12/08, Ray Hauge <[EMAIL PROTECTED]> wrote: > > You > > come to a PHP mailing list to proclaim that RoR is better? > > No dumbass, I have already been here for a long time: > > http://marc.info/?l=php-general&m=953

Re: [PHP] Unexcepted $this

2008-03-13 Thread Eric Butera
2008/3/13 Anup Shukla <[EMAIL PROTECTED]>: > Murat BEŞER wrote: > > So what do you thing about on this thing ? > > > > I really would like to figure out the problem. > However, my simple script to mimic your code did not throw any errors. > > If you could provide some more details, maybe we ca

Re: [PHP] Unexcepted $this

2008-03-13 Thread Eric Butera
On Thu, Mar 13, 2008 at 12:56 PM, Ray Hauge <[EMAIL PROTECTED]> wrote: > > Eric Butera wrote: > > 2008/3/13 Anup Shukla <[EMAIL PROTECTED]>: > >> Murat BEŞER wrote: > >> > So what do you thing about on this thing ? > >> > &

Re: [PHP] Last Friday of every month

2008-03-14 Thread Eric Butera
: bestplace.biz | Web: seo-diy.com > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Just FYI you can use the word "last friday" in strtotime. So really you could check and see if the max day in a month is a friday and if not fall back on last friday. I didn't test it but I just thought I'd throw that out there. erics:~ eric$ php -r "echo date('n/j/Y', strtotime('last friday'));" 3/7/2008

Re: [PHP] Sending multiple values from a form having same field names.

2008-03-14 Thread Eric Butera
On Fri, Mar 14, 2008 at 6:02 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > 2008. 03. 14, péntek keltezéssel 14.08-kor Suamya Srivastava ezt írta: > > > Hi, > > > > How can I send multiple values from a form to be stored in a database, as > > name of the fields is the same? > > > > For example

Re: [PHP] Last Friday of every month

2008-03-14 Thread Eric Butera
On Fri, Mar 14, 2008 at 11:57 AM, tedd <[EMAIL PROTECTED]> wrote: > At 8:17 AM -0400 3/14/08, Eric Butera wrote: > > > >Just FYI you can use the word "last friday" in strtotime. So really > >you could check and see if the max day in a month is a friday an

Re: [PHP] Is this the best way?

2008-03-14 Thread Eric Butera
On Fri, Mar 14, 2008 at 1:02 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > $rowcnt = mysqli_num_rows($loginResult); > > if($rowcnt !="1"){ > > echo "Auth failed"; > > die("Auth failed... Sorry"); > > > > > > > > }else{ > > while($row1 = mysqli_

[PHP] PHP and #if

2008-03-14 Thread Eric Gorr
In C, etc. one can place #if's around code to determine whether or not the compiler should pay any attention to the code. Is there a similar technique for PHP? I've not seen anything like this before and a brief search hasn't turned up anything either...just thought I would ask to make sure.

Re: [PHP] PHP and #if

2008-03-14 Thread Eric Gorr
have to assume that PHP does not current provide such a technique...as I suspected. On Mar 14, 2008, at 2:22 PM, Børge Holen wrote: On Friday 14 March 2008 19:19:30 Eric Gorr wrote: In C, etc. one can place #if's around code to determine whether or not the compiler should pay any at

Re: [PHP] PHP and #if

2008-03-14 Thread Eric Gorr
compiled and PHP is interpreted. On Fri, Mar 14, 2008 at 6:34 PM, Eric Gorr <[EMAIL PROTECTED]> wrote: If you are talking about simply commenting code out, yes, I am aware of this...however, the #if technique is far more capable in certain situations. There are reasons why C, et

Re: [PHP] PHP and #if

2008-03-14 Thread Eric Gorr
On Mar 14, 2008, at 3:10 PM, Stut wrote: On 14 Mar 2008, at 19:03, Eric Gorr wrote: Unfortunately, such things cannot be used to wrap functions. Erm, yes they can. Try it. Gives: Parse error: syntax error, unexpected T_STRING in /Users/Eric/Sites/ ifWrapping.php on line 3 -- PHP

Re: [PHP] PHP and #if

2008-03-14 Thread Eric Gorr
On Mar 14, 2008, at 3:15 PM, Eric Gorr wrote: On Mar 14, 2008, at 3:10 PM, Stut wrote: On 14 Mar 2008, at 19:03, Eric Gorr wrote: Unfortunately, such things cannot be used to wrap functions. Erm, yes they can. Try it. Gives: Parse error: syntax error, unexpected T_STRING in /Users

Re: [PHP] Sending multiple values from a form having same field names.

2008-03-14 Thread Eric Butera
On Fri, Mar 14, 2008 at 8:12 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Eric Butera wrote: > > On Fri, Mar 14, 2008 at 6:02 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > >> 2008. 03. 14, péntek keltezéssel 14.08-kor Suamya Srivastava ezt írta: > >> &

[PHP] SOAP Server in PHP4

2008-03-18 Thread Eric Gorr
Looks like I will be unable to use PHP5 to do a SOAP server. I believe it was possible to do such a thing in PHP4, but perhaps not as cleanly. Unfortunately, I am unable to locate the appropriate documentation on php.net for some reason...perhaps I am just blind. Can anyone point me to it?

Re: [PHP] Double click problem

2008-03-19 Thread Eric Butera
On Wed, Mar 19, 2008 at 11:48 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I have a situation where users can purchase stuff online. > > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded th

[PHP] Re: SOAP Server in PHP4

2008-03-19 Thread Eric Gorr
> > Looks like I will be unable to use PHP5 to do a SOAP server. I believe > > it was possible to do such a thing in PHP4, but perhaps not as > > cleanly. > > > is this because you arent able to use php5 in your current situation, Yes. > because php can do soap servers in php5. I know...I hav

Re: [PHP] Double click problem

2008-03-20 Thread Eric Butera
On Thu, Mar 20, 2008 at 10:39 AM, Lamp Lists <[EMAIL PROTECTED]> wrote: > the way I solved the "click back button" issue (simplified vresion): > > confirmation page (conf.php) -> transfer page (tp.php) -> thank you page > (typ.php) > > #conf.php > # after the form is submitted and confirmed >

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread Eric Butera
On Fri, Mar 21, 2008 at 2:24 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > This is probably trivial for most of you, but here's my solution to > the problem I presented earlier. > > The problem was, I just wanted to be certain that if a use clicked a > button that they could only do it onc

Re: [PHP] spider

2008-03-21 Thread Eric Butera
On Fri, Mar 21, 2008 at 1:52 PM, tedd <[EMAIL PROTECTED]> wrote: > Also, is there a way to spider through a remote web site gathering > directory permissions? I should hope not. > > If not, can one attempt to write a file and record the > failures/successes (0777 directories)? I don't know i

Re: [PHP] Including files for templates

2008-03-24 Thread Eric Butera
On Sun, Mar 23, 2008 at 7:32 AM, Terry Burns-Dyson <[EMAIL PROTECTED]> wrote: > I'm trying to write a template system, my template is the HTML layout, and > my content is fetched from another source. However I don't quite understand > how to output the template so that all the variables are parse

Re: [PHP] Array and Object

2008-03-24 Thread Eric Butera
On Mon, Mar 24, 2008 at 12:50 PM, VamVan <[EMAIL PROTECTED]> wrote: > Hello All, > > I am having an array structure as displayed below, The title is the > key and value is the simplexmlelementobject. > > [Advanced Virtualization Technologies in Workstation 6-20080320 1604] > => SimpleXMLElemen

Re: [PHP] Why won't this query work?

2008-03-24 Thread Eric Butera
On Mon, Mar 24, 2008 at 2:40 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Mar 24, 2008 at 2:29 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > It's already been escaped, $business is pulled out of the database > > after they log in. :) > > I don't care, Prune. > > (I still

[PHP] session var not changed if file not found error

2008-03-25 Thread Eric Wood
e set fine. I've even enabled detailed php error reporting and I get no errors. Is this normal session behavior? Please say no. Any ideas? I can't understand why missing links would cause a session variable's annihilation. -eric wood -- PHP General Mailing List (http://www

Re: [PHP] session var not changed if file not found error

2008-03-25 Thread Eric Wood
use I'm using a template layout, you know). Therefor, the session file is obviously getting trampled on with these custom 404s.Wow, I would not have figured that out anytime soon. I just need to get less fancy with my 404 page, huh? Thanks, -eric wood -- PHP General Mailing List (htt

Re: [PHP] Quick email address check

2008-03-26 Thread Eric Butera
On Wed, Mar 26, 2008 at 1:28 PM, Al <[EMAIL PROTECTED]> wrote: > I'm scripting a simple registry where the user can input their name and email > address. > > I'd like to do a quick validity check on the email address they just > inputted. I can check the > syntax, etc. but want check if the add

Re: [PHP] Pattern etc to reduce duplicated validation?

2008-03-27 Thread Eric Butera
On Thu, Mar 27, 2008 at 5:36 AM, David Lidstone <[EMAIL PROTECTED]> wrote: > Hi All > > I seem to be writing a lot of this: > > > // SCRIPT = > $var = $_POST['var']; > > // validate $var > > $foo = new foo; > $foo->setBar($var); > > > // CLASS == > class foo

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Eric Butera
On Thu, Mar 27, 2008 at 12:41 PM, Peter Ford <[EMAIL PROTECTED]> wrote: > > Jason Pruim wrote: > > > > On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: > >> Al wrote: > >>> Good point. I usually do use the single quotes, just happened to key > >>> doubles for the email. > >>> > >>> Actua

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or > die("Sorry read failed: ". mysqli_error($chpwpostlink)); > $chpwresult = $chpwold[0]; Why would you pump that into an array instead of just calling it resu

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
On Fri, Mar 28, 2008 at 12:58 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Mar 28, 2008, at 12:40 PM, Eric Butera wrote: > > On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> > > wrote: > >> $chpwold[] = mysqli_query($chpwpostli

Re: [PHP] Severe Security Issue

2008-04-01 Thread Eric Butera
On Tue, Apr 1, 2008 at 11:14 AM, Stut <[EMAIL PROTECTED]> wrote: > Daniel Brown wrote: > > Hey, folks, ignore the coincidence of the date when reading this > email. > > > I'm thinking you're full of it... > > http://lxr.php.net/search?string=remote_bytecode_include > > Since it doesn't appear

Re: [PHP] Severe Security Issue

2008-04-01 Thread Eric Butera
On Tue, Apr 1, 2008 at 11:37 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 11:35 AM, Eric Butera <[EMAIL PROTECTED]> > wrote: > > > > It's April 1st regardless if he said to ignore it or not. :( > > Eric, > >That was

Re: [PHP] New Ajax search component

2008-04-08 Thread Eric Butera
On Tue, Apr 8, 2008 at 12:37 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > they pretty much have that in the scriptacuous lib under Ajax.Autocompleter, > atm > > http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter > http://demo.script.aculo.us/ajax/autocompleter > http://demo.scr

Re: [PHP] New Ajax search component

2008-04-08 Thread Eric Butera
On Tue, Apr 8, 2008 at 2:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > btw; planning on digging into extJs once i get a chance to take a piss :O I've heard a lot of good things about that. Let me know what you think, after you piss of course. =) -- PHP General Mailing List (http://www.php.ne

Re: [PHP] New Ajax search component

2008-04-09 Thread Eric Butera
On Wed, Apr 9, 2008 at 2:34 AM, Jeremy O'Connor <[EMAIL PROTECTED]> wrote: > OK, but my control only does the Ajax call when the user clicks the Go > button, whereas the scriptaculous library does an Ajax call everytime the > user presses a key. Any library should be flexible enough to register

Re: [PHP] New Ajax search component

2008-04-09 Thread Eric Butera
On Wed, Apr 9, 2008 at 8:07 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 9, 2008 at 7:50 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > On Wed, Apr 9, 2008 at 2:34 AM, Jeremy O'Connor > > > > <[EMAIL PROTECTED]> wrote: >

Re: [PHP] $_SESSION problem

2008-04-10 Thread Eric Wood
lack of session file locking. -eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] where to put a function

2008-04-14 Thread Eric Butera
On Mon, Apr 14, 2008 at 11:34 AM, Rick Pasotto <[EMAIL PROTECTED]> wrote: > I have a function that includes a specific sql query that is used on > only one page on the site. Should that function be coded (1) in the page > itself, (2) in a separate file that only that page includes, or (3) in a >

Re: [PHP] & performance issues

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic <[EMAIL PROTECTED]> > wrote: > > > > in PHP5 by default Objects are passed by reference and as you can see at > > this graph passing array by reference in PHP5 is slower >

Re: [PHP] & performance issues

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 7:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: >

Re: [PHP] PHP console script vs C/C++/C#

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 5:30 PM, Daniel Kolbo <[EMAIL PROTECTED]> wrote: > Hello, > > I am writing a PHP script for a local application (not web/html based). My > script is taking a longer time to execute than I want. The source code is a > few thousand lines, so I will spare you all this level

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 10:53 AM, Daniel Kolbo <[EMAIL PROTECTED]> wrote: > > > > Struan Donald wrote: > > > * at 17/04 16:30 -0500 Daniel Kolbo said: > > > > > > > Hello, > > > > > > I am writing a PHP script for a local application (not web/html > > > based). My script is taking a longer time to

Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 10:42 AM, Steve Holmes <[EMAIL PROTECTED]> wrote: > Greetings, I'm relatively new to PHP and I've been lurking for a while on > the list, but now I need a pointer or two. > I have an application which has one function that does a lengthy process > (installing a piece of s

<    2   3   4   5   6   7   8   9   10   11   >