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. Twelfth Night, Act II,

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: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54'].

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 it was asked about; actually, there are rare times

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 probably

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 do not

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 wrote: On Feb 6, 2008 4:18 PM, nihilism machine [EMAIL PROTECTED] wrote

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 09:03:57

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 you to add multiple custom fields to each product? --e

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 extend/maintain/secure it. Well, I guess not. Look

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 Mailing List

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... Consider

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 code? I really fail to see any security

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 exec(gzip -c). Except for that little thing where you

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) ?php ob_start(ob_gzhandler); while ($someString = getTheNextPartOfTheLargeFile()) { echo $someString;

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 not a static

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 and will continue to use the static

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: I like it from a coding point of view (it's neat and elegant), but I

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 something

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

2008-02-25 Thread Eric Butera
On Mon, Feb 25, 2008 at 11:07 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 10:38 AM, Robert Cummings [EMAIL PROTECTED] wrote: My favourite patterns are the following: factory singleton adaptor i dont know about any favorites at this time but as far as

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 is

Re: [PHP] Performance Problem

2008-02-27 Thread Eric Butera
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, Eric Butera wrote: Try using Xdebug[1

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 many of

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 should stop posting code that doesn't

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, Jason Pruim [EMAIL PROTECTED] wrote: So I was supposed

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 going to happen. :) Heh. It is a bad visual

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 server doesn't have PHP configured properly? ;-P

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: And I'd appreciate it if you kept all your posts

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. D'oh! Didn't even notice that. Sorry

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 is the

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 there a reason not

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 the right thing (namely inserts 4 spaces

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

2008-02-28 Thread Eric Butera
, Notepad in Vista defaults to Lucida Console. I have a friend who uses Consolas in Vista. -TG - Original Message - From: Eric Butera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Date: Thu, 28 Feb 2008 15:39:21 -0500 Subject: Re: [PHP] Sometimes I

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-Oriented app,

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 whether

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 with the

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 function calls cost against you and it all adds up

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

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 consistent.

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 so can

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 privileged information. If you are not named

Re: [PHP] CVS Scripts

2008-03-06 Thread Eric Butera
:42 To: Adrian Walls Cc: 'Eric Butera'; php-general@lists.php.net Subject: RE: [PHP] CVS Scripts Adrian Walls [EMAIL PROTECTED] wrote: 1. It is a legal thing, whether it means anything or not or regardless of what anyone else's take is on it. 2. It was a straight forward

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. It says

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. Please configure your email client to use a real name

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 now) and then

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 same

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 ACLs for a PHP application? http://en.wikipedia.org/wiki

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. -- Gustavo

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:

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 can figure

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 ? I really would like to figure out the problem. However, my simple script

Re: [PHP] Last Friday of every month

2008-03-14 Thread Eric Butera
On Thu, Mar 13, 2008 at 9:39 PM, Andrés Robinet [EMAIL PROTECTED] wrote: -Original Message- From: VamVan [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 9:13 PM To: php-general@lists.php.net Subject: [PHP] Last Friday of every month Can you tell me how to do

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: ?php

Re: [PHP] Re: second/custom PEAR/PECL installation. possible? how?

2007-06-06 Thread Eric Butera
On 6/6/07, Greg Beaver [EMAIL PROTECTED] wrote: Jochem Maas wrote: I have a [gentoo] server with 2 apache installations ... the std distro apache runs with php4 which includes an installation of PEAR and PECL. the second apache is compiled by hand and runs with php5 (also compiled by

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Stut [EMAIL PROTECTED] wrote: Dave Goodchild wrote: Unless some server config error causes that stuff to be output on the page? I tend to put such functions in a .inc file and amend the .htaccess to prevent download. Unless some server config error causes it to ignore .htaccess.

Re: [PHP] any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Ross [EMAIL PROTECTED] wrote: I have a page of functions that I include in my page head. In this I have a function to connect. I can then just call this on each page when i need it. Does doing it this way cause any potential security risks? function connect() { $host=localhost;

Re: [PHP] efficient log system

2007-06-12 Thread Eric Butera
On 6/12/07, Alain Roger [EMAIL PROTECTED] wrote: Hi, I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Richard Lynch [EMAIL PROTECTED] wrote: The downside of that is that something as simple as: ?php phpinfo();? will dump your password out as part of $_ENV or $_SERVER That's probably NOT a good idea in many environments, but an excellent idea in some. Security cannot be evaluated in

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, June 12, 2007 2:41 pm, Eric Butera wrote: Hopefully nobody has phpinfo just sitting out on a production server. A quick Google: http://www.google.com/search?hl=enq=%22Zend+logo+This+program+makes+use+of+the+Zend+Scripting+Language

Re: [PHP] Checking Phone Numbers

2007-06-14 Thread Eric Butera
On 6/14/07, Kevin Murphy [EMAIL PROTECTED] wrote: I collect phone numbers via a web form that breaks the phone number up into 3 parts (3-digit area, 3-digit prefix, etc). Occasionally, I am having people put in a phone number such as 999-999- or 000-000- or other numbers that are all the

Re: [PHP] Latest PHP for Mac OS X 10.3.9 (Panther)

2007-06-21 Thread Eric Butera
On 6/21/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I¹m looking for the latest PHP releases (5.2.2 or higher) for Mac OS X 10.3.9 (Panther). Entropy.ch is only providing releases for Mac OS X 10.4 (Tiger), in fact there stable PHP 5.2.2 release won¹t even install on 10.4 Mac¹s. Is

[PHP] Byte conversion

2007-06-25 Thread Eric Butera
I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i + 1] == (byte)0x51)) { The code is looping

Re: [PHP] Byte conversion

2007-06-25 Thread Eric Butera
On 6/25/07, Stut [EMAIL PROTECTED] wrote: Eric Butera wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0

Re: [PHP] Byte conversion

2007-06-25 Thread Eric Butera
On 6/25/07, Tijnema [EMAIL PROTECTED] wrote: On 6/25/07, Eric Butera [EMAIL PROTECTED] wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece

Re: [PHP] Proper way to remove an element from an array

2007-07-10 Thread Eric Butera
On 7/10/07, Dan [EMAIL PROTECTED] wrote: I know in some languages there's a right way to remove an element from an array and other ways that will give you problems. In PHP can I just set $arrayname[key] = null? Or will I then end up with key = null as a value. I looked on php.net under array

Re: [PHP] Problem with GD after upgrading Entropy 5.1.6 - 5.2.2

2007-07-10 Thread Eric Butera
On 7/10/07, M5 [EMAIL PROTECTED] wrote: I've got a little PHP script that generates charts, that has been working perfectly every day for the past couple years. Since upgrading the Xserve's PHP from 5.1.6 to 5.2.2 (both Entropy), it has stopped working. Specifically, it doesn't return any GIFs

Re: [PHP] Pirate PHP books online?

2007-07-17 Thread Eric Butera
On 7/16/07, Dotan Cohen [EMAIL PROTECTED] wrote: I just found some jerk on StumbleUpon with titles like: PHP Essentials (c)2007 (Neil Smyth) PHP Cookbook (David Sklar/Adam Trachtenberg) PHP 5 Power Programming (c)2005 (Andi Gutmans/Stig Bakken/Derick Rethans ) A Programmer's Introduction to PHP

Re: [PHP] repetition of tedious references

2007-07-19 Thread Eric Butera
On 7/19/07, tedd [EMAIL PROTECTED] wrote: At 2:24 PM +0200 7/18/07, Olav Mørkrid wrote: consider the following statement: $language = isset($_SERVER[HTTP_ACCEPT_LANGUAGE]) $_SERVER[HTTP_ACCEPT_LANGUAGE] != ? $_SERVER[HTTP_ACCEPT_LANGUAGE] : *; when using strings in arrays that may be

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Eric Butera
On 7/23/07, Steve Finkelstein [EMAIL PROTECTED] wrote: Hi all, This is more of a conceptual based inquiry. I'm currently working on some projects which require me to build system 'X' prior to any (X)HTML/CSS/graphics are available to me. A lot of the time, I just garble up default

Re: [PHP] Notice warnings and performance

2007-07-25 Thread Eric Butera
On 7/25/07, Richard Davey [EMAIL PROTECTED] wrote: Hi Erfan, Wednesday, July 25, 2007, 9:39:35 AM, you wrote: The site I'm working on has a lot of notice warnings, thousands. And they are all about: (Notice: Undefined variable..) I was wondering if I set the php.ini file to not log these

Re: [PHP] Objects

2007-07-25 Thread Eric Butera
On 7/25/07, Suporte - DPRJ Sistemas [EMAIL PROTECTED] wrote: Hello! Is there anyone here interested in teaching (lond distance, off course) OOP? I would like to learn how to use objects (I have been working all my life using structured language). All the books I have tried just talk about

Re: [PHP] Objects

2007-07-25 Thread Eric Butera
and now studying design patterns i would say learn the basic oop stuff first ;) -nathan On 7/25/07, Eric Butera [EMAIL PROTECTED] wrote: On 7/25/07, Tony Marston [EMAIL PROTECTED] wrote: Design patterns will just confuse the issue. If you come from a non-OO background (just like me) and want

Re: [PHP] Objects

2007-07-25 Thread Eric Butera
right; design patterns are key; and so is that book ;) -nathan On 7/25/07, Eric Butera [EMAIL PROTECTED] wrote: On 7/25/07, Suporte - DPRJ Sistemas [EMAIL PROTECTED] wrote: Hello! Is there anyone here interested in teaching (lond distance, off course) OOP? I would like to learn how

Re: [PHP] Hide the real URL

2007-07-26 Thread Eric Butera
On 7/26/07, elk dolk [EMAIL PROTECTED] wrote: Hi all, I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = SELECT * FROM table; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo img

Re: [PHP] Hide the real URL

2007-07-26 Thread Eric Butera
On 7/26/07, Nathan Nobbe [EMAIL PROTECTED] wrote: eric, ive seen this technique mentioned once or twice on the list now; do you know of an article online you could share that explains it? -nathan On 7/26/07, Eric Butera [EMAIL PROTECTED] wrote: On 7/26/07, elk dolk [EMAIL PROTECTED] wrote

Re: [PHP] Hide the real URL

2007-07-27 Thread Eric Butera
On 7/27/07, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, July 26, 2007 8:41 am, Eric Butera wrote: filenames. Are you trying to protect them from unauthorized viewing? If you are trying to protect from unauthorized viewing, they probably shouldn't be in the webtree at all, as it's

Re: [PHP] Hide the real URL

2007-07-27 Thread Eric Butera
On 7/27/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, July 27, 2007 8:20 am, Eric Butera wrote: Not everyone has the option to do that. Plus I think it is unintuitive to have things outside of your actual web site. You can disallow traffic with Apache fairly easily if you're paranoid

Re: [PHP] Hide the real URL

2007-07-27 Thread Eric Butera
On 7/28/07, brian [EMAIL PROTECTED] wrote: Eric Butera wrote: On 7/27/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, July 27, 2007 8:20 am, Eric Butera wrote: Not everyone has the option to do that. Plus I think it is unintuitive to have things outside of your actual web site. You

Re: [PHP] Objects

2007-07-31 Thread Eric Butera
On 7/31/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 7/31/07, Richard Lynch [EMAIL PROTECTED] wrote: Or, in my experience with pattern zealots, mis-recognize a problem as a pattern it isn't, mis-apply the solution and then spend years dealing with a square peg in a round hole... The

Re: [PHP] Job Opportunity: PHP Developer

2007-07-31 Thread Eric Butera
On 7/31/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-07-31 at 12:35 -0400, Daniel Brown wrote: Do we have an Eric here? Eric Butera? Though I don't see him anywhere in the thread :) Cheers, Rob. -- ... SwarmBuy.com

Re: [PHP] Loss of precision in intval()

2007-08-01 Thread Eric Butera
On 8/1/07, Mark Summers [EMAIL PROTECTED] wrote: This sort of thing really isn't helpful... ?php $a = 75.82 * 100; echo intval($a); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php What exactly were you expecting it to do? :)

Re: [PHP] Loss of precision in intval()

2007-08-01 Thread Eric Butera
On 8/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Probably return 7582 instead of 7581. = = = Original message = = = On 8/1/07, Mark Summers [EMAIL PROTECTED] wrote: This sort of thing really isn't helpful... ?php $a = 75.82 * 100; echo intval($a); ? -- PHP General

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread Eric Butera
On 8/2/07, Dan Shirah [EMAIL PROTECTED] wrote: Greetins all, In my form I have an area where the user enters in the payment amount: input type=Text value= size=20 maxlength=16 name=payment_amount This is all fine and dandy and works as generically as it can. BUT, the problem is that I need

Re: [PHP] QuickTime question

2007-08-15 Thread Eric Butera
On 8/15/07, tedd [EMAIL PROTECTED] wrote: Hi gang: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source =

Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Eric Butera
On 9/6/07, Tijnema [EMAIL PROTECTED] wrote: On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote: I'm a german web-designer living in Turkey. Sometimes I use opensource software like gallery2 or WP to have customers have some nice web albums or blog. The turkish translation files of such

Re: [PHP] back-button question

2007-09-17 Thread Eric Butera
On 9/17/07, Πρεκατές Αλέξανδρος [EMAIL PROTECTED] wrote: I'a writing first time so sorry if i reapeat but i wanted to say this in my own words and angle. My question is : Lets assume that we'r going throught php/html files a- b -- c || 1)From a to b through a

[PHP] Compile issue

2007-09-26 Thread Eric Butera
The last version of PHP I've been able to compile on my work machine was 5.2.2. It is a PowerPC OS X 10.4.10. I'm curious if anyone else has had this problem. I'm sure it is something stupid I'm doing but I can't seem to figure it out. I can still compile 5.2.2 just fine so nothing on that end

Re: [PHP] Compile issue

2007-09-26 Thread Eric Butera
/26/07, Nathan Nobbe [EMAIL PROTECTED] wrote: are you using the same configure command when compiling all 3 versions? -nathan On 9/26/07, Eric Butera [EMAIL PROTECTED] wrote: The last version of PHP I've been able to compile on my work machine was 5.2.2. It is a PowerPC OS X 10.4.10

Re: [PHP] Why $_REQUEST do the same thing as mysql_escape_string()

2007-10-17 Thread Eric Butera
On 10/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I put some thing in an form input filed like this: ' \ then submit to a php script. When use $_GET / $_POST / $_REQUEST to get the value, I always get: \' \ \\ In php expression it should be: $_REQUEST['field'] = \\' \\\ ; Any

Re: [PHP] GD to database directly

2006-07-11 Thread Eric Butera
On 7/11/06, Kevin Waterson [EMAIL PROTECTED] wrote: How much of a performance hit? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] GD to database directly

2006-07-12 Thread Eric Butera
On 7/11/06, Adam Zey [EMAIL PROTECTED] wrote: The time taken per request, though (and that's about all we can get with a concurrency as low as 5) doesn't tell us much. We also don't know exactly what the PHP code is doing, how it does it, how your database is organized/indexed/accessed, if you

[PHP] MCrypt resource limits?

2006-08-23 Thread Eric Butera
Hi list, Yesterday I noticed one of the sites I had created was running really slow. Yet all the other sites on our webserver were running great. I had our network admin look at the cpu, ram usage, etc of the webserver and everything looked fine. Finally I just recommended we stick Xdebug on

Re: [PHP] Format of Encrypted Password

2006-09-07 Thread Eric Butera
On 9/5/06, Kevin Murphy [EMAIL PROTECTED] wrote: $query = select name from table where name = '$authuser' and password = password('$auth_pw'); If you haven't tried this you can probably create accounts yourself manually in MySQL like this: INSERT INTO table (name, password) VALUES ('user',

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Wouldn't this actually bring me back to empty form? On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. On 9/13/06, [EMAIL PROTECTED]

<    1   2   3   4   5   6   7   8   >