Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 5:21 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:54 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > On Jan 16, 2008 4:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > > On Jan 16, 2008 4:48 PM, Eric Butera <[EM

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 5:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 5:09 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > Here is an implementation: > > http://framework.zend.com/manual/en/zend.registry.html > > > > Here is another: >

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 5:06 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > Eric Butera schreef: > > > > > > > > > > > I still don't understand the obsession of a singleton in

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > > On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > >> On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> > >>>

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:48 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > You did forget to escape the user input value in case I was trying to > > hacks myself. :) > > > > No I didn't. &

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:35 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:30 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > His program was for CLI. > > Correct. Sorry, forgot to mention it lunch was calling my > name, and I had to answer. &

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > given that dbaccess doesn't extend mysqli instantiation of dbaccess is > > completely > > pointless no? > > > i dont know; i think using an instance of dbaccess t

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:27 PM, Andrés Robinet <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > From: Daniel Brown [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, January 16, 2008 5:06 PM > > To: Eric Butera > > Cc: Andrés Robinet; php php > > S

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 2:32 PM, Andrés Robinet <[EMAIL PROTECTED]> wrote: > A couple of days ago I've come across this: > http://www.seomoz.org/blog/network-solutions-exploits-icanns-fiveday-refund- > rule-to-hoard-domains > > So... I don't even think that network solutions is the only one doing it. I > k

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 12:57 PM, julian <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am implementing this > > class dbaccess{ >static $db=null; >static $othervar=33; > >private function dbaccess(){ > dbaccess::$db= new mysqli("localhost",USER,PASSWD,DB); > if(mysqli_connect_errno()){

[PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
... otherwise this will happen: erics:~/Sites eric$ /opt/php5/bin/php networksolutions.php Starting at 01/16/2008 12:36pm.Result: ...snip... Your Domain Name Search Results Congratulations! The following domains are available eric-butera-for-php-general Then a few minutes later: erics:~ eric

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Eric Butera
On Jan 15, 2008 9:27 AM, Adam Williams <[EMAIL PROTECTED]> wrote: > I'm having users enter dates in MM-DD- format. is there a way to > check if what they have entered is invalid (like if they enter 1-15-2008 > instead of 01-15-2008) ? > > -- > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] Posting Summary for Week Ending 11 January, 2008: php-general@lists.php.net

2008-01-14 Thread Eric Butera
On Jan 14, 2008 1:12 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, January 11, 2008 3:00 pm, PostTrack [Dan Brown] wrote: > > > Messages| Bytes | Sender > > +-+-- > > 226 (100%) 255776 (100%) E

Re: [PHP] XML Data merging

2008-01-12 Thread Eric Butera
On 1/12/08, Naz Gassiep <[EMAIL PROTECTED]> wrote: > I'm using simplexml to fetch data from a set of data files. If I have > two files, and one is an update to the other, is there an easy way to > merge the two files together, rather than having write logic that checks > one and then the other? > >

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Eric Butera
On Jan 11, 2008 1:33 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > I used to use htmlMimeMail, but now I use Zend_Mail as it has a better > > API and is also faster in regards to the quoted printable encoding. > > IIRC htmlMimeMail use the PHP built in function to do quoted printable > encoding.

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Eric Butera
On Jan 11, 2008 1:22 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > On Jan 11, 2008 11:33 AM, Stut <[EMAIL PROTECTED]> wrote: > >> No brainer, SMTP will almost certainly be faster. My mailing list system > >> (written in PHP obviously)

Re: [PHP] Determine which are user defined keys?

2008-01-11 Thread Eric Butera
On Jan 11, 2008 1:17 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > explain what your trying to achieve and why. because it seems like your > 'requirement' is a result of tackling the problem from the wrong end. I'd wait and listen to what Jochem has to say first, but you might be able to keep a cop

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Eric Butera
On Jan 11, 2008 11:33 AM, Stut <[EMAIL PROTECTED]> wrote: > No brainer, SMTP will almost certainly be faster. My mailing list system > (written in PHP obviously) can dump 600k customised emails to the local > SMTP server in a couple of hours. Doing the same with the mail command > took over 24 hour

Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Eric Butera
On Jan 10, 2008 5:59 PM, Ryan H. Madison <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to increase upload_max_filesize beyond the 2M > limit. I've set this in my /etc/php.ini file, but every time I look at > the output of phpinfo(); the changes I make in /etc/php.init don't seem >

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 4:41 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > On Jan 10, 2008 4:00 PM, Stut <[EMAIL PROTECTED]> wrote: > >> Eric Butera wrote: > >>> Haha. Thank you for all that insightful research. Seriously though, > &

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 4:00 PM, Stut <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > Haha. Thank you for all that insightful research. Seriously though, > > using globals you might already be in hell! =\ > > IMHO global variables are evil in the same way that regis

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 3:34 PM, David Giragosian <[EMAIL PROTECTED]> wrote: > > > On 1/10/08, David Giragosian <[EMAIL PROTECTED]> wrote: > > > > > > On 1/10/08, Eric Butera <[EMAIL PROTECTED] > wrote: > > > On Jan 10, 2008 2:28 PM, David Giragosian

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 2:28 PM, David Giragosian <[EMAIL PROTECTED]> wrote: > > On 1/10/08, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > On Jan 10, 2008 2:02 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > > > On Jan 10, 2008, at 12:48 PM, Eric Butera

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 2:02 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jan 10, 2008, at 12:48 PM, Eric Butera wrote: > > > On Jan 10, 2008 1:33 PM, <[EMAIL PROTECTED]> wrote: > >> I have been using define to create a constant for the link resource > >&g

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 1:33 PM, <[EMAIL PROTECTED]> wrote: > I have been using define to create a constant for the link resource returned > by mysql > pconnect like so: > > $PL = @mysql_pconnect("localhost", $DBUser, $DBPass); > define("SITE_DB",$PL); > > > Later I use the constant to select my database

Re: [PHP] PHTML files showing as blank pages

2008-01-08 Thread Eric Butera
On Jan 5, 2008 9:39 AM, A.smith <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having a problem getting .phtml files to display in a web browser. I > can successfully display a test.php page as per PHP install instructions but > the phtml files show up blank > (in firefox or IE). > > I have added these

Re: [PHP] php form help...

2008-01-08 Thread Eric Butera
On Jan 8, 2008 12:00 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 8, 2008 11:56 AM, 2 Logic Studios <[EMAIL PROTECTED]> wrote: > > Daniel, > > > > Thanks...worked like a charm > > My pleasure. Just remember to sanitize the code as I said if > you're going to do anything other than

Re: [PHP] global address collection

2008-01-08 Thread Eric Butera
On Jan 8, 2008 10:08 AM, tedd <[EMAIL PROTECTED]> wrote: > I just finished a credit card portion for a site where the programmer > before me required the customers to enter their credit card number > without spaces -- why? It's a simple matter to remove spaces for > processing -- why throw that re

Re: [PHP] Byte Size of an array

2008-01-08 Thread Eric Butera
On Jan 7, 2008 3:45 AM, Sancar Saran <[EMAIL PROTECTED]> wrote: > Hello, > > I just wonder to how can I find a memory size of an array. > > Regards > > Sancar > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > If you're wondering how m

Re: [PHP] Function variables in classes

2007-11-01 Thread Eric Butera
On Nov 1, 2007, at 7:10 AM, Paul van Haren wrote: Hi there, I'm trying to execute function variables. This works fine outside class code, but gives a fatal error when run within a class. The demo code is here: foo2(); ?> The error message reads: Fatal error: Call to undef

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Eric Butera
On 10/24/07, jenix <[EMAIL PROTECTED]> wrote: > > Hi, > > When using CURL to access a page with frames I get the "Your browser does > not appear to support frames" error. How can get around this? Is there > special header info that can be added? Also, if I were using fopen can > anyone offer sample

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Eric Butera
On 10/25/07, Sascha Braun <[EMAIL PROTECTED]> wrote: > What is the cause for that error: > > Fatal error: Maximum function nesting level of '100' reached, aborting! > in /home/Projekte/spectral/modules/xml_mm/classes/xml_mm.class.php on > line 118 > > Thank you! > > Sascha > > -- > PHP General Mail

Re: [PHP] window.open() and search engines

2007-10-23 Thread Eric Butera
On 10/23/07, Richard Heyes <[EMAIL PROTECTED]> wrote: > Can anyone say for sure whether window.open() links get spidered by > search engines? > > Thanks. > > -- > Richard Heyes > +44 (0)800 0213 172 > http://www.websupportsolutions.co.uk > > Knowledge Base and HelpDesk software > that can cut the c

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'] = "\\' \\\"

Re: [PHP] Compile issue

2007-09-26 Thread Eric Butera
ore. On 9/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 c

[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] 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

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 file

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_sour

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: > > > > This is all fine and dandy and works as generically as it can. BUT, the > problem is that I need to make sure the user didn't fat finger any of the >

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... > > > > > > > $a = 75.82 * 100; > > > > echo intval($a); > > >

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... > > > $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 t

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 t

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.

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 th

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

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 i

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

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 ""; } if you look at the source in br

Re: [PHP] Objects

2007-07-25 Thread Eric Butera
w/ java and php 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

Re: [PHP] Objects

2007-07-25 Thread Eric Butera
news:[EMAIL PROTECTED] > eric is exactly 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! >>

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

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 tables/forms

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 array

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] 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] 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 arra

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 J

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

[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 throu

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.

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 th

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=en&q=%22Zend+logo+This+program+makes+use+of+the+Zend+Scrip

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: 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 isolation. An

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 se

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] 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 .htacce

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 >

Re: [PHP] problems in WHERE statment

2007-05-23 Thread Eric Butera
On 5/21/07, Mike Ryan <[EMAIL PROTECTED]> wrote: I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT * F

Re: [PHP] Re: self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, M.Sokolewicz <[EMAIL PROTECTED]> wrote: statically: Class Foo { static $a = 1; static function Bar() { self::a++; } } echo Foo:a; >> 1 Foo::Bar(); // will probably throw a warning, not sure of that though echo Foo:a; >> 1 (no change) I'm not sure I understand

Re: [PHP] self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, Mariano Guadagnini <[EMAIL PROTECTED]> wrote: Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never could figure out the clear difference between using this-> or self:: when calling member functions, wether they are

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-11 Thread Eric Butera
On 5/10/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: I'm a PHP guru Then this question shouldn't have been asked. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-11 Thread Eric Butera
On 5/10/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Micky Hulse wrote: > Ah, well Chapter 6, page 144-145 have helped clear-up a little bit of my > confusion: Sorry, forgot to mention what book I was refering to: O'Reilly Programming PHP By Rasmus Lerdorf & Kevin Tatroe

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-10 Thread Eric Butera
On 5/10/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi, This might be a real obvious question/answer... but I have been up all night geeking on code, so my mind is kinda mushy -- please be kind. :) I have a class called Randimg. Within that class, I have several methods. Within a few of those me

Re: [PHP] Run a script apart from request

2007-04-30 Thread Eric Butera
On 4/30/07, Brad Fuller <[EMAIL PROTECTED]> wrote: Hi all, I am developing a program that does some intensive data processing, and is triggered from a page hit and/or a SOAP request. The processing takes on average 30 seconds to 1 minute, which is OK for a web page (I can use set_time_limit(0)

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/27/07, Edward Kay <[EMAIL PROTECTED]> wrote: > When I searched for "csv" against on php.net I got redirected to > http://us2.php.net/manual/en/function.gzeof.php. That isn't exactly > obvious is it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/26/07, Edward Kay <[EMAIL PROTECTED]> wrote: Todd Cary wrote: > Is there a function that can parse a comma delimited file into an array? > > Todd > fgetcsv - http://uk.php.net/fgetcsv Did you even try looking in the manual? Edward -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-24 Thread Eric Butera
On 4/24/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: Thanks. Most of that has already been done now, but I'll certainly keep your functions handy. I'll likely need them at some point. One thing you might want to keep in mind is that this little "fix" is going to get executed on each request if yo

Re: [PHP] Debug recursion

2007-04-23 Thread Eric Butera
On 4/23/07, kioto <[EMAIL PROTECTED]> wrote: Hi all i have found a bug in my db class when i use the recursion. I try to use the adjacency list model to develop a three menu but when i call the function in recursive way i loose data because the value returned from the fetch seem to be empty. I h

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard <[EMAIL PROTECTED]> wrote: Tried this at the root level and got the response below... sudo: pecl: command not found I am on a Suse linux box and I install the PEAR package with YAST. >>> "Eric Butera" <[EMAIL PROTECTED]> 4/23/2007

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard <[EMAIL PROTECTED]> wrote: I just upgraded to PHP 5 from PHP 4. I am using the crack lib function for password dictionary uniqueness. However, now my web page utilizing the crack-lib is crashing with " PHP Fatal error: Call to undefined function crack_opendict()". Doe

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread Eric Butera
On 4/23/07, WeberSites LTD <[EMAIL PROTECTED]> wrote: I'm trying to understand from the examples why anyone that has get_magic_quotes_gpc() returning true would need to use stripslashes() and then mysql_real_escape_string(). wouldn't that just add slashes to the same places? berber Yes, sort

Re: [PHP] serialize an object

2007-04-20 Thread Eric Butera
On 4/19/07, Stut <[EMAIL PROTECTED]> wrote: Tobias Wurst wrote: > i use serialize() to save my object in $_SESSION. Why? There's no point in serialising something into $_SESSION. Anything you put in there gets serialised by the session handler. That isn't necessarily 100% true. http://www.stub

Re: [PHP] CSS vs. Tables OT

2007-04-18 Thread Eric Butera
On 4/18/07, Wolf <[EMAIL PROTECTED]> wrote: OK, so I like sticking my nose in sometimes... Accessibility Standards and being bobby approved. http://webxact2.watchfire.com/report.asp?t=2#priority3 on http://lonewolf.homelinux.net/ Is just about as good as http://www.csszengarden.com Just the s

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Eric Butera
On 4/12/07, Chetan Graham <[EMAIL PROTECTED]> wrote: Hello to All! I've been monitoring this emotional listing from the beginning and feel the need to bring out some of my personal experience on this exciting matter of WYSIWYG vs. the 'power-user' 1) I started back when there where no GUI's ava

[PHP] output gz compression

2007-04-11 Thread Eric Butera
I am just curious if anybody else has this issue. My platform is OSX 10.4.9 using a custom compiled PHP 4.4.x (4.4.6 & 4.4.7RC1) I've tried using the php.ini setting zlib.output_compression = On and also ob_start("ob_gzhandler"); directly. Each time I call up the page it crashes. On the server

Re: [PHP] keeping credit card info in session

2007-04-10 Thread Eric Butera
On 4/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thanks a lot every one. These are great replies. I guess I should have explained a bit more about what I'm doing. first of all, this is not my site, it's for a client of mine. second, I did suggest using a paypal API or a paid site to tak

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread Eric Butera
On 4/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Eric Butera wrote .. > On 4/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hey... I am new to the list so please forgive me if I say anything that > might have already been discussed. So here we go... >

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread Eric Butera
On 4/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hey... I am new to the list so please forgive me if I say anything that might have already been discussed. So here we go... OK I am attempting to start a new application using PHP. I have started and stoped this application now 2 times

Re: [PHP] Debugging Extensions (APD, etc.)

2007-04-05 Thread Eric Butera
On 4/5/07, Daniel Brown <[EMAIL PROTECTED]> wrote: Does anyone have any experience using engine-level debuggers and/or extensions in PHP? I installed the PECL module APD just a moment ago, and haven't even used it yet, because I wanted to see if anyone here has a better suggestion. I'd like

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/3/07, Mário Gamito <[EMAIL PROTECTED]> wrote: Hi, > One popular method is to place your files outside of the webroot. I thought about that. > This makes it so people cannot access the files directly. Then create > a PHP script to read the file to the user with the correct mime type > usin

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/1/07, Mário Gamito <[EMAIL PROTECTED]> wrote: Hi, I made this site in PHP that has a page with some PDFs to download. My costumer wants that only subscribed people are allowed to download the PDFs. I've already made the subscrbe and login mechanism. Now, my question for you is about letti

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Eric Butera
On 3/12/07, Larry Bradley <[EMAIL PROTECTED]> wrote: I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, usin

Re: [PHP] Opinion on on-line payment and banking gateway

2007-03-06 Thread Eric Butera
On 3/6/07, Seak, Teng-Fong <[EMAIL PROTECTED]> wrote: Jochem Maas wrote: > tell him this: "never ever ever ever so much as accept a creditcard number > as input to any of his scripts let alone store it somewhere - leave that to > the payment provider who has the expertise, secure (hopefully) syst

Re: [PHP] how can I find out if I have mcrypt and mhash installed?

2007-02-21 Thread Eric Butera
On 2/21/07, Ross <[EMAIL PROTECTED]> wrote: Thought it would be in the phpinfo() but cannot find it. R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If it is compiled in then you should see it in phpinfo. I looked at mine and saw a h

Re: [PHP] Foldable Checkbox lists

2007-02-14 Thread Eric Butera
On 2/14/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] Newbie to PHP here. I have a list of categories, as checkboxes, that I would like a user to be able to choose from. There are literally hundreds of categories, however most of them are children categories. I obviously don't want to di

Re: [PHP] how do I just escape double quotes within a string?

2007-02-13 Thread Eric Butera
On 2/13/07, blackwater dev <[EMAIL PROTECTED]> wrote: If I use add slashes, it strips everything, I just want to replace all the double quotes with slash double quote but this, of course, throws errors: str_replace(""","\"",$code); Thanks! Try this $string = 'Hello "person." How are you?';

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Butera
On 2/1/07, Eric Gorr <[EMAIL PROTECTED]> wrote: On Feb 1, 2007, at 9:50 AM, Jay Blanchard wrote: > > Also, check out > http://www.shiflett.org as Chris is one of if not the leading > expert in > security with PHP. Great site. thank you. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] One last try at this!

2007-01-17 Thread Eric Butera
On 1/17/07, Beauford <[EMAIL PROTECTED]> wrote: I hope I can explain this so I can get this figured out, 'cause if not I may just have to find an alternative to PHP. I can't be wasting 3 and 4 days on something as simple as this. This isn't a very nice intro into asking a question on a mailing l

<    2   3   4   5   6   7   8   >