Re: [PHP] Google Chrome

2008-09-02 Thread Eric Butera
On Tue, Sep 2, 2008 at 4:10 PM, Douglas Temple <[EMAIL PROTECTED]> wrote: > Once. > > 'Nuff said. > I used to hate it. After using it for a while though I noticed that it rendered pages faster than all the other browsers I use. Too bad the developer console isn't as nice as firebug though. :) -

Re: [PHP] Secure way to handle pw on session.

2008-09-02 Thread Eric Butera
On Tue, Sep 2, 2008 at 5:58 PM, Diogo Neves <[EMAIL PROTECTED]> wrote: > > > On Tue, Sep 2, 2008 at 9:10 PM, Eric Butera <[EMAIL PROTECTED]> wrote: >> >> On Tue, Sep 2, 2008 at 4:06 PM, Robert Cummings <[EMAIL PROTECTED]> >> wrote: >> > On T

Re: [PHP] Recommendation

2008-09-02 Thread Eric Butera
On Tue, Sep 2, 2008 at 7:55 PM, Dan Joseph <[EMAIL PROTECTED]> wrote: > On Tue, Sep 2, 2008 at 3:08 PM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > >> [snip] >> ... >> [/snip] >> >> Who is going to create the group? >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit:

Re: [PHP] Summing array indexes.

2008-09-04 Thread Eric Gorr
Not a direct answer to your question (don't worry, I hate it when people do this to me too), but one thought I had was to have all of the products ordered as their own array. [0] => array(15) { ["order_date"] => string(8) "09-01-08" ["order_products"] => array(2) { [0] => string(5

Re: [PHP] Google Chrome

2008-09-05 Thread Eric Butera
On Thu, Sep 4, 2008 at 9:15 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > rather like someone running off with your girlfriend ... you get denied > service. Burn of the week! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xss filter

2008-09-08 Thread Eric Butera
On Mon, Sep 8, 2008 at 8:16 AM, Emil Edeholt <[EMAIL PROTECTED]> wrote: > Hello, > > Do you know of any good ways to filter out javascript from html code? I've > seen this code http://kallahar.com/smallprojects/php_xss_filter_function.php > but I found some old discussions about it saying that it w

Re: [PHP] CSV output.

2008-09-08 Thread Eric Gorr
On Sep 8, 2008, at 5:06 PM, Tom Shaw wrote: Actually that won't work I tried it. For some reason the .00 shows up when I try to manually add a .00. I know weird. Did you mean to say that it .00 _doesn't_ show up when you try to manually add a .00? The value is in the array or string be

Re: [PHP] CSV output.

2008-09-08 Thread Eric Gorr
("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=inventory_report.csv"); print $out; This prints wrong. -Original Message- From: Eric Gorr [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 4:21 PM To: PHP General Subject: Re: [PH

Re: [PHP] Problem of Connection Character Sets and Collations

2008-09-09 Thread Eric Butera
On Sat, Sep 6, 2008 at 10:41 AM, <[EMAIL PROTECTED]> wrote: > php : > Which command line is right ? > 1, mysql_query("SET NAMES utf8"); > 2, mysql_query("SET NAMES utf-8"); > > Many thank for your help ! > > Edward. On the php side look at this: http://us3.php.net/manual/en/function.mysql-set-ch

Re: [PHP] Recommendation

2008-09-10 Thread Eric Butera
On Tue, Sep 9, 2008 at 9:51 PM, tedd <[EMAIL PROTECTED]> wrote: > How do I get an email to you at: Shawn McKenzie <[EMAIL PROTECTED]> ? I was grabbing addresses for the whole mass invitation thing and noticed this too. Of course I was like I've been had. Then for some reason I just tried it and

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 11:39 AM, Andrew Ballard wrote: On Fri, Sep 12, 2008 at 9:52 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: Luke schreef: I wonder if this is a shared trait between C and PHP (since I understand PHP is written in C) that the break; and the default: are placed for good

Re: [PHP] check if a file is included

2008-09-12 Thread Eric Butera
On Fri, Sep 12, 2008 at 8:44 AM, clive <[EMAIL PROTECTED]> wrote: > I have a file called interceptor.php, which I would like to make use of in > two ways > > 1. either call it directly from the browser or > 2. included from another file > > I know I could use something like this to see if it was c

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 2:14 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 11:47 -0400, Eric Gorr wrote: On Sep 12, 2008, at 11:39 AM, Andrew Ballard wrote: On Fri, Sep 12, 2008 at 9:52 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: Luke schreef: I wonder if this is a shared trait bet

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 2:51 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 14:33 -0400, Eric Gorr wrote: On Sep 12, 2008, at 2:14 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 11:47 -0400, Eric Gorr wrote: On Sep 12, 2008, at 11:39 AM, Andrew Ballard wrote: On Fri, Sep 12, 2008 at 9:52

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: I don't see how that in any way makes an argument for or against. Once still must spend client's money wasting time on code that has questionable merit. Yes, some debugging code is a great boon in any application, but littered everywhere to fu

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Eric Gorr
On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:11 -0400, Eric Gorr wrote: On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: I don't see how that in any way makes an argument for or against. Once still must spend client's money wasting time on cod

Re: [PHP] check if a file is included

2008-09-12 Thread Eric Butera
On Fri, Sep 12, 2008 at 7:41 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > Could you not check one of the variables in the $_SERVER array to > determine if the script called by the browser is the current file? > > -- Forwarded message -- > To: clive <[EMAIL PROTECTED]> >> 2. incl

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-13 Thread Eric Gorr
On Sep 12, 2008, at 5:13 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:51 -0400, Eric Gorr wrote: On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:11 -0400, Eric Gorr wrote: On Sep 12, 2008, at 3:44 PM, Robert Cummings wrote: I don't see how that i

Re: [PHP] check if a file is included

2008-09-13 Thread Eric Butera
On Sat, Sep 13, 2008 at 2:16 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> Please stop top-posting. > > Lest you be smitten with a vengeance reserved only for top-posters. A > nasty one. :-) > > -- > Richard Heyes > > HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: > http://www.phpguru.org/

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-13 Thread Eric Gorr
On Sep 13, 2008, at 12:12 PM, Robert Cummings wrote: On Sat, 2008-09-13 at 10:09 -0400, Eric Gorr wrote: On Sep 12, 2008, at 5:13 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:51 -0400, Eric Gorr wrote: On Sep 12, 2008, at 4:27 PM, Robert Cummings wrote: On Fri, 2008-09-12 at 16:11

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-16 Thread Eric Butera
On Tue, Sep 16, 2008 at 2:51 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-09-16 at 11:26 -0400, tedd wrote: >> At 11:57 PM +0100 9/15/08, Ashley Sheridan wrote: >> >I agree on your point about trying before bashing. I've tried Vista. >> >Hell, I had to use it for 2 months solid whi

Re: [PHP] Making array to string

2008-09-17 Thread Eric Gorr
On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 => "Good morning", 1 => "Good afternoon", 2 => "Good evening", 3 => "Good night" ); Now I would like to convert the array to something l

Re: [PHP] Making array to string

2008-09-17 Thread Eric Gorr
On Sep 17, 2008, at 10:54 AM, Nathan Rixham wrote: Eric Gorr wrote: On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 => "Good morning", 1 => "Good afternoo

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Eric Butera
On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm not sure if this is possible, but basically I was wondering if > anyone had any experience with using PHP to read/deconstruct a PDF file. > > I'm asking because a system I built at work is being used by a

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Eric Butera
On Thu, Sep 18, 2008 at 3:28 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Thu, 2008-09-18 at 15:20 -0400, Eric Butera wrote: >> On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > Hi All, >> > >> >

Re: [PHP] Error message

2008-09-18 Thread Eric Gorr
On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> Well, this is weird. When I copied your t

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Eric Butera
On Fri, Sep 19, 2008 at 12:05 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Sep 19, 2008, at 10:54 AM, Wolf wrote: > >> Philip Thompson <[EMAIL PROTECTED]> wrote: >>> >>> Hi all. >>> >>> Let me start out by saying, I have STFW and read through the list >>> archives. Now that that's out o

Re: [PHP] how to recognize CSV file?

2008-09-19 Thread Eric Butera
On Fri, Sep 19, 2008 at 2:59 PM, Afan Pasalic <[EMAIL PROTECTED]> wrote: > hi, > I have form where administrator has toupload csv file to update dome > data in mysql. > I was trying to validate entered file but got some crazy stuff I don't > understand: > > for the same uploaded csv file, in differ

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Eric Butera
On Fri, Sep 19, 2008 at 2:50 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: >4. lack of industry adoption There needs to be some sort of expensive test to certify one may wear the badge. Then it will have higher adoption rates. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Eric Gorr
I believe what you are looking is: http://us2.php.net/manual/en/function.pow.php number pow ( number $base , number $exp ) Returns base raised to the power of exp On Sep 19, 2008, at 3:34 PM, Stephen Johnson wrote: OK.. Math is NOT my forte ... I am converting a site from ASP to PHP ...

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Eric Gorr
that is producing even funkier results... doing pow( (1-(1+$nMonthlyInterest)) , ($iMonths*-1) ) ; Gives me : 4.2502451372964E-35 = 25000 * (0.00104167 / 6.1270975733019E +35); From: Eric Gorr <[EMAIL PROTECTED]> I believe what you are looking is: http://us2.php.net/man

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Eric Butera
On Fri, Sep 19, 2008 at 4:31 PM, Stut <[EMAIL PROTECTED]> wrote: > On 19 Sep 2008, at 21:22, Robert Cummings wrote: >> >> On Fri, 2008-09-19 at 16:15 -0400, tedd wrote: >>> >>> At 3:11 PM -0400 9/19/08, Eric Butera wrote: >>>> >>>> On

Re: [PHP] how to recognize CSV file?

2008-09-20 Thread Eric Butera
On Sat, Sep 20, 2008 at 10:23 AM, Afan Pasalic <[EMAIL PROTECTED]> wrote: > > > Ashley Sheridan wrote: >> >> On Fri, 2008-09-19 at 14:24 -0500, Afan Pasalic wrote: >>> >>> Eric Butera wrote: >>>> >>>> On Fri, Sep 19, 2008 at 3

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 1:19 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Michelle Konzack wrote: >> >> >> * Do not Cc: me, because I READ THIS LIST, if I write here * >> *Keine Cc: am mich, ich LESE DIESE LI

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: > >> Michelle Konzack wrote: >>> >>> >>> *

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 3:26 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: >> On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > On Sun, 2008-09-21 at 14:34 -0400, Er

Re: [PHP] SESSIONS vs. MySQL

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 6:48 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Philip Thompson schreef: >> >> Hi all. >> >> Let me start out by saying, I have STFW and read through the list >> archives. Now that that's out of the way. >> >> To speed up our application, we want to implement using SESSION

Re: [PHP] Passing variables between pages

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 9:49 AM, tedd <[EMAIL PROTECTED]> wrote: > At 11:19 PM +0100 9/21/08, Nathan Rixham wrote: >> >> so may as well just have everything in one script then.. > > You always have the option to write one huge script for any application. > > But normally in programming, we confront

Re: [PHP] Re: Problem with sorting

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 10:42 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: > LOL! > > ~Phil > > PS... This was read and replied to on a Monday. =P *golf clap* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] __autoload alternative

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 11:59 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: >> >> On Mon, Sep 22, 2008 at 2:54 AM, Shelley <[EMAIL PROTECTED]> wrote: >> >>> Hi all, >>> >>> Is there any way to auto load a class without using __autoload() >>> function? >>> >>> As I want to load

Re: [PHP] Security warning

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 5:50 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: >ATTENTION LAWYERS AND THREAD-FLAMERS: > >That was meant to be a "reply" to Tedd personally, not a > "reply-all." Anyone wishing to slam me for advertising is welcome to > email your local /dev/null. > > -- > > More

Re: [PHP] Security warning

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 6:02 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Sep 22, 2008 at 5:55 PM, Eric Butera <[EMAIL PROTECTED]> wrote: >> >> That reply was just another attempt at getting your sig into the archives. >> :P > >

Re: [PHP] Reading a Word document from PHP

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 3:56 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > Hi All, > > I recently asked a question regarding reading a PDF with PHP. I've tried > Zend_pdf, but all this is able to give me is the number of pages in a > PDF, and cannot extract the text from the PDF files I have. I

Re: [PHP] PHP tags - any reasons to close ?>

2008-09-23 Thread Eric Butera
On Tue, Sep 23, 2008 at 8:32 AM, Martin ZvarĂ­k <[EMAIL PROTECTED]> wrote: > Hi, > I have seen some projects where people start with opening tag DON'T close it with ?> > This is especially the case of CONFIG.php files... > > 1) What's the reason of that? > > 2) What if you would not close any 100%

Re: [PHP] $this->value VS $value

2008-09-23 Thread Eric Butera
On Tue, Sep 23, 2008 at 12:26 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > (using $this->foo or MyClass::$foo for static properties). also self:: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $this->value VS $value

2008-09-23 Thread Eric Butera
On Tue, Sep 23, 2008 at 6:25 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe schreef: >> >> On Tue, Sep 23, 2008 at 10:41 AM, Micah Gersten <[EMAIL PROTECTED]> wrote: >> >>> Eric Butera wrote: >>>> >>>> On Tue, Sep 2

Re: [PHP] $this->value VS $value

2008-09-23 Thread Eric Butera
On Tue, Sep 23, 2008 at 7:20 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 4:42 PM, Eric Butera <[EMAIL PROTECTED]> wrote: >> >> Active Record sucks :P > > i prefer code generation to runtime introspection, but runtime > introsp

Re: [PHP] $this->value VS $value

2008-09-24 Thread Eric Butera
On Tue, Sep 23, 2008 at 7:30 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 5:25 PM, Eric Butera <[EMAIL PROTECTED]> wrote: >> >> I generate my data access objects too. It goes against my better >> judgment, but performance wins out in thi

Re: [PHP] Using Static Class Variables to Access Globally

2008-09-24 Thread Eric Butera
On Tue, Sep 23, 2008 at 9:03 PM, Ryan Panning <[EMAIL PROTECTED]> wrote: > The typical way to access a variable or instance from inside a > function/method is to either declare it a global variable or pass it as a > argument. Is there any reason why someone shouldn't use static class > variables to

Re: [PHP] calling functions from one or multiple files

2008-09-24 Thread Eric Butera
On Wed, Sep 24, 2008 at 12:28 PM, Lamp Lists <[EMAIL PROTECTED]> wrote: > Hi, > Right now I use one file, usually called functions.php, with all functions > I'm going to use most likely on every page. > Then, I create each function I'm going to use once in a while as separate > file. > Pro: I wou

Re: [PHP] Eclipse - PDT, prevent validation on some files

2008-09-24 Thread Eric Butera
On Wed, Sep 24, 2008 at 4:36 PM, Sancar Saran <[EMAIL PROTECTED]> wrote: > Hello there, > > sorry to bugging the list and I hope finding the answer quickly. > > Today I watch a youtube video which showing eclipse pdt and I want to try. > > It was amazing, it was so advanced after kate and if I hand

Re: [PHP] The Data Literacy Test

2008-09-24 Thread Eric Butera
On Wed, Sep 24, 2008 at 9:22 PM, Shelley <[EMAIL PROTECTED]> wrote: > 2008/9/25 Philip Thompson <[EMAIL PROTECTED]> > >> On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote: >> >> tedd wrote: >>> At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote: > On Wed, 2008-09-24 at 09:20 +0800,

Re: [PHP] Convert local dates into GMT+1 dates

2008-09-26 Thread Eric Butera
On Fri, Sep 26, 2008 at 8:52 AM, debussy007 <[EMAIL PROTECTED]> wrote: > > Hello everyone! > > I have local dates (Belgium), which I want to convert to GMT+1 date. > The dates are stored in the DB and are of the following format: '2008-06-24 > 23:30:02' > > So I think I'll need to check wether the

Re: [PHP] Re: Re: Problem with sorting

2008-09-26 Thread Eric Butera
On Thu, Sep 25, 2008 at 3:12 PM, Michelle Konzack <[EMAIL PROTECTED]> wrote: > Am 2008-09-21 15:21:51, schrieb Eric Butera: >> I could also always bcc replies to you so you get three. How great >> would that be? :D > > I could setup a botnet and subscribe y

Re: [PHP] Filters and sanitizing a regexp

2008-09-26 Thread Eric Butera
On Fri, Sep 26, 2008 at 12:03 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: >> -Original Message- >> > hate to say this but why not cater for all eventualities and just use >> > strtotime( $whatever ); >> >> Well it just doesn't have enough geek factor... > > Plus, strtotime() does non-intui

Re: [PHP] Filters and sanitizing a regexp

2008-09-26 Thread Eric Butera
On Fri, Sep 26, 2008 at 12:23 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> >> On Fri, Sep 26, 2008 at 12:03 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: >>>> >>>> -Original Message- >>>>> >>&

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Eric Butera
On Fri, Sep 26, 2008 at 2:41 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-09-26 at 21:23 +0300, Thodoris wrote: >> > On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: >> > >> >> Might I suggest you count the fields and divide it by the cols you want >> >> to display? >>

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Eric Butera
> echo 'Col: '. $col .''; > echo 'Row: '. $row .''; > echo 'Position: '. $position .''; > ?> > > > > empty cell >

Re: [PHP] Reuse MySQL prepared statement

2008-09-29 Thread Eric Butera
On Mon, Sep 29, 2008 at 11:21 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> Use a tree structure (I assume it's a tree type menu that has already >> been written and save yourself the hassle. The PEAR HTML_TreeMenu code >> can Create a tree structure from a Tree object (my own tree class at >> ph

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Eric Butera
On Mon, Sep 29, 2008 at 11:59 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Shawn McKenzie wrote: >> >> Shawn McKenzie wrote: >>> >>> Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright

Re: [PHP] navigation / location bar

2008-09-30 Thread Eric Butera
On Tue, Sep 30, 2008 at 3:54 PM, mike <[EMAIL PROTECTED]> wrote: > Also remember there are two styles of breadcrumbs: those which follow you > around the site and create a path of your previous pages (like a true > breadcrumb) or the more standard path-back-to-home hierarchial style. It > doesnt ma

Re: [PHP] Robert Cummings

2008-09-30 Thread Eric Butera
Congrats! Hope you saved up on your sleep. :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sterilizing regexp

2008-10-01 Thread Eric Butera
On Wed, Oct 1, 2008 at 2:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Frank Stanovcak wrote: > >> I've got to pass about 9 or 10 calls to it, some of which will be >> arrays, and I have to do it from several different places. Felt this >> was a bit more elegant than hard coding the pregmatches u

Re: [PHP] mt_rand() - the same forever?

2008-10-06 Thread Eric Butera
On Sun, Oct 5, 2008 at 2:25 PM, Janek <[EMAIL PROTECTED]> wrote: > I wonder whether I can rely on the stability of mt_srand() and > mt_rand(). I want them to generate the same sequence for a fixed seed, > regardless of PHP version. Do you think I can trust it? > Janek > > -- > PHP General Mailing L

Re: [PHP] How to capture origional client machine _directory_ and file name on uploads?

2008-10-06 Thread Eric Butera
On Mon, Oct 6, 2008 at 11:48 AM, J. Hill <[EMAIL PROTECTED]> wrote: > This should be trivial, but apparently not -- or maybe I just need more > caffeine. My searches have come up empty. > > I am trying to get not only the original file name on uploads, but also the > original directory on the clien

Re: [PHP] Required files not being parsed properly...

2008-10-06 Thread Eric Butera
On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson <[EMAIL PROTECTED]> wrote: > OK .. I am upgrading to PHP5 on a clients box, and after doing so I have > run into the problem that files that get brought in by a require statement, > or include, end up just getting dumped to the browser as text.. > >

Re: [PHP] Required files not being parsed properly...

2008-10-07 Thread Eric Butera
On Tue, Oct 7, 2008 at 10:32 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson >> <[EMAIL PROTECTED]> wrote: >>> OK .. I am upgrading to PHP5 on a clients box, and after doing so I have >>

Re: [PHP] Re: php framework vs just php?

2008-10-07 Thread Eric Butera
On Tue, Oct 7, 2008 at 2:47 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-07 at 11:20 -0300, uaca man wrote: >> Farid, >> >> I like to use PRADO(www.pradosoft.com), it is very easy to use for >> those who are coming from Microsoft .Net platform as it uses the same >> architecture

Re: [PHP] Selecting all records between a date range

2008-10-08 Thread Eric Butera
On Thu, Oct 2, 2008 at 12:35 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I am working on a app where I need to be able to select all the values from > a database where the 'timein' field is between a certain date range... > Essentially the last 7 days... > > here is the code that

Re: [PHP] Login

2008-10-09 Thread Eric Butera
On Thu, Oct 9, 2008 at 8:35 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Jason Pruim wrote: >> >> On Oct 8, 2008, at 5:48 PM, Stut wrote: >> >>> On 8 Oct 2008, at 22:32, Ashley Sheridan wrote: On Wed, 2008-10-08 at 22:15 +0100, Stut wrote: > >>> Obviously, I'm a programmer, so

Re: [PHP] Re: Problem with memory management

2008-10-10 Thread Eric Butera
On Fri, Oct 10, 2008 at 3:32 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Alan Boudreault wrote: >> >> Hi all, >> >> I'm wondering why PHP doesn't free my memory with this test code. The >> memory usage is always the same even if i unset my object. The Garbage >> collector seems to only free the

Re: [PHP] [Semi-OT] Tonns of jobs available

2008-10-10 Thread Eric Butera
On Fri, Oct 10, 2008 at 8:27 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > tedd wrote: >> >> At 12:38 AM +0100 10/11/08, Ashley Sheridan wrote: >>> >>> All these problems are just on one site and with one woman. >>> >>> Ash >> >> >> I won't comment on that, other than say -- while they may all loo

Re: [PHP] Re: Problem with memory management

2008-10-11 Thread Eric Butera
On Sat, Oct 11, 2008 at 1:58 PM, Alan Boudreault <[EMAIL PROTECTED]> wrote: > Richard Heyes wrote: >>> >>> Problem with memory management >>> >> >> I sure know that feeling... :-/ >> >> > > So, there is no other choice that waiting a new PHP release ? > > -- > Alan Boudreault > Mapgears > http://ww

Re: [PHP] Alternative to HTTP_REFERER?

2008-10-13 Thread Eric Butera
On Mon, Oct 13, 2008 at 3:09 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Ashley Sheridan wrote: > >> You should look at developing the app so that it doesn't rely on >> referrer information, as this is unpredictable as you've seen. > > Yep, that's what I did too. Can't remember exactly what I did,

Re: [PHP] Little regex help please...

2008-10-13 Thread Eric Butera
On Mon, Oct 13, 2008 at 12:52 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Ryan S [mailto:[EMAIL PROTECTED] >> Sent: Monday, October 13, 2008 11:33 AM >> To: php php >> Subject: [PHP] Little regex help please... >> >> Hello! >> >> Here's a regex that I got off

Re: [PHP] Little regex help please...

2008-10-13 Thread Eric Butera
On Mon, Oct 13, 2008 at 1:04 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: >> -Original Message----- >> From: Eric Butera [mailto:[EMAIL PROTECTED] >> Sent: Monday, October 13, 2008 12:00 PM >> To: Boyd, Todd M. >> Cc: Ryan S; php php >> Subject: Re:

[PHP] utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
Has anyone ever had reports of problems with Outlook 2003 using utf-8 and quoted printable? I've recently started getting complains from our clients that some of their subscribers are having problems with the message coming through as raw html. The email client is always Outlook 2003 on XP of var

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:17 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 17:06 -0400, Eric Butera wrote: >> On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > On Tue, 2008-10-14 at 15:55 -0500, Jay

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 15:55 -0500, Jay Moore wrote: >> Eric Butera wrote: >> > Has anyone ever had reports of problems with Outlook 2003 using utf-8 >> > and quoted printable? I'

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:24 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > I thought you just had to specify the multipart/alternative and use the > boundary sequence to separate the two messages? I can't see more than > one content type on any emails in my inbox. > > I just looked at my inbox.

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:36 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-10-14 at 17:26 -0400, Eric Butera wrote: >> On Tue, Oct 14, 2008 at 5:24 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > I thought you just had to specify t

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Eric Butera
On Tue, Oct 14, 2008 at 5:54 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> >> On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan > >> From: "Some Company" <[EMAIL PROTECTED]> >> Date: Tue, 14 Oct 2008 13:01:18 -0400 >&g

Re: [PHP] Information on Cookies

2008-10-15 Thread Eric Gorr
On Oct 15, 2008, at 1:21 PM, Yeti wrote: You encrypt stuff with a string that you keep secret. That string is needed to decrypt the string. I recommend you change that string once in a while. Also, picking up a copy of: Essential PHP Security by Chris Shiflett # ISBN-10: 059600656X # ISBN-

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-16 Thread Eric Butera
So it turns out the problem was inconsistent newlines. An include file ended up having unix line returns while the design file had mac line returns. Normalizing the pieced together content solved my problems. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-16 Thread Eric Butera
On Thu, Oct 16, 2008 at 12:33 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> >> So it turns out the problem was inconsistent newlines. An include >> file ended up having unix line returns while the design file had mac >> line returns. Normal

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Eric Butera
On Thu, Oct 16, 2008 at 7:14 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Evening All, > > I'd be /really/ interested to know who uses what! > > *Procedural or OOP?* oop > > *Dev OS* ubuntu & os x > > *Dev PHP Version* php 5.2.6 > > *Live Server OS* Mix of Red Hat Enteprise & Debian > > *Live

Re: [PHP] Searching MySQL with Japanese chars

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 8:22 AM, robert mena <[EMAIL PROTECTED]> wrote: > Hi, > I am developing my first application that will have to handle with japanese > data stored in a MySQL database. After digging a while it seems that I'd > have to set all pieces (from the charset of the apache, to the e

Re: [PHP] when mysql is down

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 11:52 AM, Rick Pasotto <[EMAIL PROTECTED]> wrote: > Today my hosting company took down the mysql server for about 1/2 hour. > As a result some php errors displayed. > > All of my pages have a random quote from a mysql table. If it's not > available it's really not a big deal

Re: [PHP] when mysql is down

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 12:07 PM, Stut <[EMAIL PROTECTED]> wrote: > On 17 Oct 2008, at 16:52, Rick Pasotto wrote: >> >> Today my hosting company took down the mysql server for about 1/2 hour. >> As a result some php errors displayed. > > Firstly if they didn't tell you it was going to happen then I

Re: [PHP] what's the difference in the following code?

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 1:58 PM, Lamp Lists <[EMAIL PROTECTED]> wrote: > I'm reading "Essential PHP Security" by Chris Shiflett. > > on the very beginning, page 5 & 6, if I got it correct, he said this is not > good: > > $search = isset($_GET['search']) ? $_GET['search'] : ''; > > and this is good

Re: [PHP] Singletons

2008-10-20 Thread Eric Butera
On Mon, Oct 20, 2008 at 1:07 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > Ok, so why isn't this working as (I, at the very least) expected? > > class singleTon > { >private static $thisObj = NULL; >private $thisProp = NULL; > >public function __construct() >{ > echo 'singleTon

Re: [PHP] Securing AJAX requests with PHP?

2008-10-21 Thread Eric Butera
On Tue, Oct 21, 2008 at 5:12 AM, Yeti <[EMAIL PROTECTED]> wrote: >> True, but then my permission / auth / workflow schema defines all that. the >> user won't like have that permission, the request will be logged and nothing >> is ever deleted from the app in any case since I only allow soft (record

Re: [PHP] display_errors in DEV

2008-10-21 Thread Eric Butera
On Tue, Oct 21, 2008 at 12:33 PM, <[EMAIL PROTECTED]> wrote: > > Until recently, I've thought that display_errors in DEV was "good" > > But as soon as you move into Ajax Web 2.0 world, it really doesn't cut it. > > You'll never see the E_NOTICE and E_WARNING errors for Ajax, probably, and > the w

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Eric Butera
On Wed, Oct 22, 2008 at 9:42 AM, Dan Joseph <[EMAIL PROTECTED]> wrote: > On Tue, Oct 21, 2008 at 5:14 PM, Stut <[EMAIL PROTECTED]> wrote: > >> >> When a script ends everything is released (with some small exceptions), thus also all references to instances of classes. Thus AFAIK a dec

Re: [PHP] CSV Files

2008-10-22 Thread Eric Butera
On Wed, Oct 22, 2008 at 7:59 PM, Jason Todd Slack-Moehrle <[EMAIL PROTECTED]> wrote: > Hi All, > > I need to take a record in MySQL and have my user get it as a CSV File. I am > OK with most everything, except when I create the CSV file, I write out the > column headers then I need to write out the

Re: [PHP] moved code to a new server

2008-10-24 Thread Eric Butera
On Fri, Oct 24, 2008 at 6:50 PM, Marc Fromm <[EMAIL PROTECTED]> wrote: > I think I fixed it. The error said that the file script.js, line 4 of the > code, could not be found: > 4 http://path/to/the/file/script.js";)?> > > I changed the line to this and it now works: > > > I wonder why on the old

Re: [PHP] preg_match

2008-10-27 Thread Eric Butera
On Mon, Oct 27, 2008 at 11:54 AM, Stut <[EMAIL PROTECTED]> wrote: > On 27 Oct 2008, at 15:46, Alex Chamberlain wrote: >> >> Problem solved: >> function __autoload($c) { >> $m = array(); >> preg_match('/(?:^[A-Z][a-z]+)Controller/', $c, $m); >> if (count($m)) { >> require_once(realpath(FS_CONTRO

Re: [PHP] Parsing URLs

2008-10-27 Thread Eric Butera
On Mon, Oct 27, 2008 at 10:04 PM, Ron Piggott <[EMAIL PROTECTED]> wrote: > I would like to parse the URLs in the values after the domain name. > > The URLs are the results of mod re-write statements. > > Example 1: > > http://www.domain.com/page/file/ > > The desired results would be: > $web_page_a

Re: [PHP] Recursive Directory Listing

2008-10-30 Thread Eric Butera
On Thu, Oct 30, 2008 at 3:28 PM, Joe Schaeffer <[EMAIL PROTECTED]> wrote: > Well, that makes things much easier (and that should teach me to rely > on a 5-year-old O'Reilly book...)! Thanks for the help! > > I'm able to display all the contents of the correct dirs and subdirs, > but I'm struggling

Re: [PHP] Reg Ex

2008-10-31 Thread Eric Butera
On Fri, Oct 31, 2008 at 8:41 AM, Kyle Terry <[EMAIL PROTECTED]> wrote: > I thought of a couple other ways anyway... > > basename($file, '.zip') > substr($file, 0, -4) > > On Fri, Oct 31, 2008 at 5:33 AM, Stut <[EMAIL PROTECTED]> wrote: > >> On 31 Oct 2008, at 12:27, Kyle Terry wrote: >> >>> I'm hor

<    6   7   8   9   10   11   12   13   >