Re: [PHP] Database abstraction?

2008-04-16 Thread Chris
Jason Pruim wrote: On Apr 16, 2008, at 5:37 PM, Chris wrote: Jason Pruim wrote: Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who ha

Re: [PHP] & performance issues

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 23:37 -0400, Nathan Nobbe wrote: > all, > > i have heard from various sources that using the & in php can at times be > costly, and therefore, it should not be used when it is not needed. for > example, passing an array by reference because you think youre passing the > act

Re: [PHP] PHP Serialization Performance

2008-04-16 Thread Casey
On Wed, Apr 16, 2008 at 4:04 AM, Waynn Lue <[EMAIL PROTECTED]> wrote: > I'm using PHP to cache files that are backed by the database. In the > course of writing these functions, I end up with a set of variables > that are needed by my application, returned in an array. I can either > directly

[PHP] & performance issues

2008-04-16 Thread Nathan Nobbe
all, i have heard from various sources that using the & in php can at times be costly, and therefore, it should not be used when it is not needed. for example, passing an array by reference because you think youre passing the actual array is not a good idea. only pass it by reference if a modifi

Re: [PHP] Database abstraction?

2008-04-16 Thread Jason Pruim
On Apr 16, 2008, at 5:37 PM, Chris wrote: Jason Pruim wrote: Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 1:30 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > hope ya dont mind if i borrow that one :D > > > > arm, have you seen my website...? :-) > umm; sry, havent :( i was reading through it, and i was like; holy shit; that dudes from the > list !! btw, i talked to the guy

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 9:13 PM, Daevid Vincent <[EMAIL PROTECTED]> wrote: > > >> All that extra code for absolutely no benefit! It is > > possible to define an > > >> interface (as in API) without actually using the term > > "interface", so IMHO > > >> the term "interface" is totally redundant an

[PHP] Re: Reserved var for checking remote IP address

2008-04-16 Thread Spamm Trappe
On Wed, 16 Apr 2008 13:26:09 -0500, Javier Huerta wrote: >>>""Daniel Brown"" <[EMAIL PROTECTED]> wrote: >> >>> Is there a reverved variable that can be used to check >>> the remote IP address of the computer hitting your web page? >> >> > $_SERVER['REMOTE_ADDR']; >> ?> > > Wow that was quick, thank

[PHP] PHP_OUTPUT_HANDLER_START et al

2008-04-16 Thread Richard Lynch
Can anybody tell me what is the purpose of PHP_OUTPUT_HANDLER_START (et al) so I can add a Note to the manual? They aren't really explained anywhere I can find, and the source... Well, it seems to be just |= PHP_OUTPUT_HANDLER_START when the first handler starts and then I kinda get lost as to wh

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Daevid Vincent
> >> All that extra code for absolutely no benefit! It is > possible to define an > >> interface (as in API) without actually using the term > "interface", so IMHO > >> the term "interface" is totally redundant and a waste of time. > > > > While I agree that Interfaces are mostly a lot of extra

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jochem Maas
seems nobody has a proper example of how a defined abstract class and/or interface can actually be usefu beyond documentation or compile time checks. well consider this (no code, it would take too much I think): 1. a CMS that manages a dynamic, user-created tree of nodes, each node containing 's

Re: [PHP] Query in Query problems

2008-04-16 Thread Chris
VamVan wrote: Hello All, We many times encounter the situations of having Queries inside loop of another query. Many times we can solve the issue by query joins but there will be some situations where we cannot do it. For Example: function Change($id){ $qry_reg = "SELECT registrationI

[PHP] Query in Query problems

2008-04-16 Thread VamVan
Hello All, We many times encounter the situations of having Queries inside loop of another query. Many times we can solve the issue by query joins but there will be some situations where we cannot do it. For Example: function Change($id){ $qry_reg = "SELECT registrationID FROM registrat

Re: [PHP] PHP with NNTP?

2008-04-16 Thread vester_s
I need to get the list for all of the people that subscribing to this newsreader, this list will be used to modify the other mailing list programs. Basically by getting the list of the people that subscribing on this newsgroup, then i could migrate it to our new forum based. So is it possible fo

Re: [PHP] Database abstraction?

2008-04-16 Thread Chris
Jason Pruim wrote: Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the years! Here's my question... I have a pr

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > > Why do I need both from_addr and field_4 (Email Address)? Could I just use > > $from = $_POST['field_4']? Sorry, I noticed it after I started rewriting the form processor, and then forgot to edit the email accordin

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Stut
On 16 Apr 2008, at 18:01, vester_s wrote: Is it possible to do it without using imap? I am trying to get the list of all users that is on the newsgroup, is that possible? I'm wondering what possible legitimate reason you could have for wanting that list? There is a way to get it (it's not

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:56 PM: On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: The entire processor.php file is: http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); mail("[EMAIL PROTECTED],[EMAIL PROTECTED]","SUBSCR

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > > The entire processor.php file is: > > > > $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); > > mail("[EMAIL PROTECTED],[EMAIL PROTECTED]","SUBSCRIBE","Form > data: > >

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:04 PM: On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from Sour

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote: > I wanted a form for people in my community to use to subscribe to a yahoo > group that I run. > > Not being a PHP programmer, I created the form with phpFormGenerator from > SourceForge. > > It works fine except that the

[PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from SourceForge. It works fine except that the email that gets sent to yahoo appears to come from my web host's domain! How can

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:27 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > > Well, NNTP (the protocol) certainly has a userid/password concept, and > so does e.g. INN, the news-server I'm using. > I'm sure INN _could_ use a PAM-module for interfacing Linux access > control, but the straight forwa

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Per Jessen
Daniel Brown wrote: > On Wed, Apr 16, 2008 at 2:42 PM, Per Jessen <[EMAIL PROTECTED]> wrote: >> >> If required, authentication is done via NNTP. The nntp servers can >> be set up to require authentication for some or more groups, for >> instance for closed user communities. >> If you check yo

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jeremy Privett
Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett <[EMAIL PROTECTED]> wrote: This is a holy war that is never going to end. It boils down to personal and professional preferences. The fact of the matter is, if a company uses these concepts and you don't know, understand,

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 2:42 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > > If required, authentication is done via NNTP. The nntp servers can be > set up to require authentication for some or more groups, for instance > for closed user communities. > If you check your newsreader, you'll no dou

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett <[EMAIL PROTECTED]> wrote: > This is a holy war that is never going to end. It boils down to personal > and professional preferences. The fact of the matter is, if a company uses > these concepts and you don't know, understand, or execute that know

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jeremy Privett
Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston <[EMAIL PROTECTED]> wrote: "Robert Cummings" <[EMAIL PROTECTED]> wrote in message While I agree that Interfaces are mostly a lot of extra code, I have to also say that they are there primarily to enforce a contract betwe

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:54 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-04-16 at 12:43 -0600, Nathan Nobbe wrote: > > On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston < > [EMAIL PROTECTED]> > > wrote: > > > > > > > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > > >

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:01 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-04-16 at 17:22 +0100, Robin Vickery wrote: > > On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > > [snip] > > > > What about encapsulation? > > > > > > Interfaces have nothing to do with encap

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 12:43 -0600, Nathan Nobbe wrote: > On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston <[EMAIL PROTECTED]> > wrote: > > > > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > > While I agree that Interfaces are mostly a lot of extra code, I have to > > > also say that th

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston <[EMAIL PROTECTED]> wrote: > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > While I agree that Interfaces are mostly a lot of extra code, I have to > > also say that they are there primarily to enforce a contract between the > > user of t

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Per Jessen
Daniel Brown wrote: > On Wed, Apr 16, 2008 at 3:38 AM, Crayon Shin Chan > <[EMAIL PROTECTED]> wrote: >> On Wednesday 16 April 2008, vester_s wrote: >> >> > Can anybody tell me how can php connect to NNTP to get the list of >> > all users in the newsgroups? >> >> NNTP has no concept of "users".

Re: [PHP] Reserved var for checking remote IP address

2008-04-16 Thread Javier Huerta
>>""Daniel Brown"" <[EMAIL PROTECTED]> wrote in >message >> Is there a >>reverved variable that can be >used to check the remote IP address >> of the computer hitting your web page? > > $_SERVER['REMOTE_ADDR']; > ?> > Wow that was quick, thanks Daniel. Javier -- PHP General Mailing List (

Re: [PHP] PHP Unit Test - Code Coverage - Continuous Intergration?

2008-04-16 Thread Brice
Hello, I think of PHPUnit+Xdebug+PHPUndercontrol. Brice Favre On Wed, Apr 16, 2008 at 8:17 PM, Jay Paulson <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I¹m just not getting into unit testing and was wondering what tools are > out > there that will automatically run unit tests continuously and

[PHP] PHP Unit Test - Code Coverage - Continuous Intergration?

2008-04-16 Thread Jay Paulson
Hi everyone, I¹m just not getting into unit testing and was wondering what tools are out there that will automatically run unit tests continuously and make reports if a test failed and how much/what code was tested. Currently in Java land I¹m using Hudson, ant, Junit, and Coberatura. Thanks! Jay

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 17:22 +0100, Robin Vickery wrote: > On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > > > What about encapsulation? > > > > Interfaces have nothing to do with encapsulation for the smple reason > > that I > > can have encapsulation without using interfa

Re: [PHP] Reserved var for checking remote IP address

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 1:57 PM, Javier Huerta <[EMAIL PROTECTED]> wrote: > Is there a reverved variable that can be used to check the remote IP address > of the computer hitting your web page? -- Ask me about: Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo., and shared hos

[PHP] Reserved var for checking remote IP address

2008-04-16 Thread Javier Huerta
Is there a reverved variable that can be used to check the remote IP address of the computer hitting your web page? Javier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forking and fsock

2008-04-16 Thread Daniel Brown
On Tue, Apr 15, 2008 at 7:16 PM, Kyle Browning <[EMAIL PROTECTED]> wrote: > Is there a way I can get my fsock to stay open when the child process exits? > > Kyle Kyle, Are you trying to create a PHP daemon? What do you mean by "child process" is PHP launching a second script to

Re: [PHP] Database abstraction?

2008-04-16 Thread Richard Heyes
hope ya dont mind if i borrow that one :D arm, have you seen my website...? :-) i was reading through it, and i was like; holy shit; that dudes from the list !! btw, i talked to the guy who wrote solar, when i was in dc last year. really cool fellow; but i talked his ear off :O Hope you re

Re: [PHP] Hack question

2008-04-16 Thread Jim Lucas
Al wrote: I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is "nobody". I can sort of figure what is doing; but, I can'

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:38 AM, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: > On Wednesday 16 April 2008, vester_s wrote: > > > Can anybody tell me how can php connect to NNTP to get the list of all > > users in the newsgroups? > > NNTP has no concept of "users". Crayon is right. Auth

Re: [PHP] PHP with NNTP?

2008-04-16 Thread vester_s
Is it possible to do it without using imap? I am trying to get the list of all users that is on the newsgroup, is that possible? chris smith-9 wrote: > > vester_s wrote: >> Hi, >> >> Can anybody tell me how can php connect to NNTP to get the list of all >> users >> in the newsgroups? > > http

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 12:00 PM, David Giragosian <[EMAIL PROTECTED]> wrote: > > On 4/16/08, tedd <[EMAIL PROTECTED]> wrote: > > > > At 10:53 AM -0400 4/16/08, Andrew Ballard wrote: > > > > > On Wed, Apr 16, 2008 at 9:59 AM, tedd <[EMAIL PROTECTED]> wrote: > > > > > > > I saw one the other

Re: [PHP] Hack question

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 12:13 PM, Al <[EMAIL PROTECTED]> wrote: > I'm still fighting my hack problem on one of my servers. Can anyone help me > figure out what's the purpose of this code. The hack places this file in > numerous dirs on the site, I assume using a php script because the owner is > "

Re: [PHP] Hack question

2008-04-16 Thread Greg Bowser
> I can sort of figure what is doing; but, I can't figure out what the hacker > is using it for. It will allow him to upload and execute arbitrary code on your server. Generally speaking, arbitrary code execution is a bad thing. :). -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Robin Vickery
On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > > What about encapsulation? > > Interfaces have nothing to do with encapsulation for the smple reason > that I > can have encapsulation without using interfaces. Unique use of logic there. By similar reasoning; swimming trunks

Re: [PHP] Hack question

2008-04-16 Thread Aschwin Wesselius
Al wrote: I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is "nobody". I can sort of figure what is doing; but, I can'

Re: [PHP] Hack question

2008-04-16 Thread Aschwin Wesselius
Al wrote: I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is "nobody". I can sort of figure what is doing; but, I can'

[PHP] Hack question

2008-04-16 Thread Al
I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is "nobody". I can sort of figure what is doing; but, I can't figure out

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread David Giragosian
On 4/16/08, tedd <[EMAIL PROTECTED]> wrote: > > At 10:53 AM -0400 4/16/08, Andrew Ballard wrote: > > > On Wed, Apr 16, 2008 at 9:59 AM, tedd <[EMAIL PROTECTED]> wrote: > > > > > I saw one the other day that caught my eye -- will look into it. > > > > > > > > The first problem I see implementing t

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jay Blanchard
[snip] > What about encapsulation? Interfaces have nothing to do with encapsulation for the smple reason that I can have encapsulation without using interfaces. > Also, there is an advantage to > interfaces that has not been mentioned yet, the fact that a > class can implement multiple interfac

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 11:42 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Daniel Brown wrote: > > I guess it's a matter of preference - I tend to think that a shared > hosting user is best restricted to whatever changes he can do > in .htaccess (with php_admin_flag etc.). I allow overrides

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread tedd
At 10:53 AM -0400 4/16/08, Andrew Ballard wrote: On Wed, Apr 16, 2008 at 9:59 AM, tedd <[EMAIL PROTECTED]> wrote: > I saw one the other day that caught my eye -- will look into it. The first problem I see implementing the approach is the JavaScript sandbox. JavaScript is allowed to read the

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: > On Wed, Apr 16, 2008 at 10:36 AM, Per Jessen <[EMAIL PROTECTED]> wrote: >> >> I'm curious - why? To me php.ini seems to be exactly the kind of >> thing you wouldn't the user to fiddle with - in a shared >> environment. > > To allow flexibility for the user, and give

Re: [PHP] How to get the HTTP authenticated user name?

2008-04-16 Thread Georgios Kasapoglou
Thanks Daniel, I found it in $_SERVER["REMOTE_USER"] but $_SERVER["PHP_AUTH_USER"] (which you propose) gives me the same information. Regards, Georgios Daniel Brown wrote: On Wed, Apr 16, 2008 at 5:37 AM, Georgios Kasapoglou <[EMAIL PROTECTED]> wrote: Hi all, I'm new to the list. I'm r

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 9:15 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > off-subject (yes total thread robbery here [more of a side note really]). > > i saw a reference to some of your work in the Solar framework richard, for > > clearing out the 'environment' or rather the superglobal arrays

Re: [PHP] How to get the HTTP authenticated user name?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 5:37 AM, Georgios Kasapoglou <[EMAIL PROTECTED]> wrote: > Hi all, > I'm new to the list. > I'm running on Apache 2 and I want to use the mod_auth_basic module, which > authenticates the user. > But I need the username to use it in my php script. How can I? > Is there any

Re: [PHP] Database abstraction?

2008-04-16 Thread Richard Heyes
off-subject (yes total thread robbery here [more of a side note really]). i saw a reference to some of your work in the Solar framework richard, for clearing out the 'environment' or rather the superglobal arrays. good stuff. Thanks (I think you're referring to clearing register_globals cra

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:58 AM, Wolf <[EMAIL PROTECTED]> wrote: > > Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > > ive always been partial to brokensoftware.com, but someones actually beaten > > me to it :O > > brokensoftware.com redirects me to microsoft.com > > How cool is that!!

Re: [PHP] Database abstraction?

2008-04-16 Thread Larry Garfield
On Wed, 16 Apr 2008 10:43:15 -0400, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone! > > I'm back with yet another question But getting closer to sounding > like I know what I'm talking about and that's all thanks to all of > you. A free beer (Or beverage of choice)* for everyone who has

Re: [PHP] Database abstraction?

2008-04-16 Thread Steve Holmes
Assuming a recent release of MySQL: open the schema information_schema then select TABLE_NAME, COLUMN_NAME from COLUMNS where TABLE_NAME = '$table'; Steve On Wed, Apr 16, 2008 at 10:55 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > I'm back with yet another question But getting closer to so

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:55 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > I'm back with yet another question But getting closer to sounding like > > I know what I'm talking about and that's all thanks to all of you. A free > > beer (Or beverage of choice)* for everyone who has helped me over

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:36 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > > I'm curious - why? To me php.ini seems to be exactly the kind of thing > you wouldn't the user to fiddle with - in a shared environment. To allow flexibility for the user, and give them the opportunity to customize

Re: [PHP] PHP Speech

2008-04-16 Thread Wolf
Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 8:46 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > > On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard <[EMAIL PROTECTED]> > > wrote: > > > > > > What was the name of your company again? blindeyehosting.com? ;-) > > > >

Re: [PHP] PHP Speech

2008-04-16 Thread Wolf
Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > > > What was the name of your company again? blindeyehosting.com? ;-) > > No, we had to change the name, so we went with a more obscure > reference: piratepatchhos

Re: [PHP] Database abstraction?

2008-04-16 Thread Richard Heyes
I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the years! I would prefer hard (or soft) cash... :-) Here's my question... I h

Re: [PHP] Database abstraction?

2008-04-16 Thread David Giragosian
On 4/16/08, Jason Pruim <[EMAIL PROTECTED]> wrote: > > Hi Everyone! > > I'm back with yet another question But getting closer to sounding like > I know what I'm talking about and that's all thanks to all of you. A free > beer (Or beverage of choice)* for everyone who has helped me over the year

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:46 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard <[EMAIL PROTECTED]> > wrote: > > > > What was the name of your company again? blindeyehosting.com? ;-) > > No, we had to change the name, so we went with a more obscure

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 9:59 AM, tedd <[EMAIL PROTECTED]> wrote: > > At 9:41 AM -0400 4/16/08, Andrew Ballard wrote: > > > On Wed, Apr 16, 2008 at 7:56 AM, tedd <[EMAIL PROTECTED]> wrote: > > > > > At 6:48 PM +0900 4/16/08, Dave M G wrote: > > > > > > > PHP list, > > > > > > > > I have a PHP sc

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > What was the name of your company again? blindeyehosting.com? ;-) No, we had to change the name, so we went with a more obscure reference: piratepatchhosting.name. ;-P -- Ask me about: Dedicated servers start

[PHP] Database abstraction?

2008-04-16 Thread Jason Pruim
Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the years! Here's my question... I have a program, where I wa

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: > On Wed, Apr 16, 2008 at 9:57 AM, Per Jessen <[EMAIL PROTECTED]> wrote: >> Daniel Brown wrote: >> > >> > And on a shared host, the likelihood of increased billing for >> > overuse of memory. >> >> Except a shared hoster would probably not permit anyone to change >> ph

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:02 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:56 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > > > it sounds like thats what theyre talking about doing... > > > [snip!] > > > > that way, you could get rid of them almost as quickly as they

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:59 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > > > well since i dont have your service dan, im filling in blanks over here; > > but, do users get to determine the name of the files that get c

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > > In addition to the added time, aren't there any problems with race > > conditions if two users try to create a file at the same time and eac

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:13 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > It's a start, but what about a user who never returns? You still want > some way to clean out those old files, and I think that's the approach > Thiago was presenting by purging all files older than X > days/hours/minutes

Re: [PHP] PHP Speech

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 10:10 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:59 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > > > > In addition to the added time, aren't there any problems with race > > conditions if two users try to create a file at the same time a

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:14 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > sure, why not; but ill not let you lure me into a full hosting deal. ive > got my own systems, atm. Congratulations! I'm not trying to sell you on anything, just thought you might like to have more of an idea

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:14 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:13 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown <[EMAIL PROTECTED]> > wrote: > > > > >You are the weakest link. Goodbye! > > > > have your

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:13 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > >You are the weakest link. Goodbye! > > have your bitter posting days started early ? :P No, but that annoying woman's face and voice p

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:12 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <[EMAIL PROTECTED]> > wrote: > > > > > In addition to the added time, aren't there any problem

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:57 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Daniel Brown wrote: > > > > And on a shared host, the likelihood of increased billing for > > overuse of memory. > > Except a shared hoster would probably not permit anyone to change > php.ini :-) I do. A lot of

Re: [PHP] PHP Speech

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > > In addition to the added time, aren't there any problems with race > > conditions if two users try to create a file at the same time and each

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:59 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > In addition to the added time, aren't there any problems with race > conditions if two users try to create a file at the same time and each > user's script tries to clean the same files at the same time? With out

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:59 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > well since i dont have your service dan, im filling in blanks over here; > but, do users get to determine the name of the files that get created by > this script, or at least rename them; that could be very beneficial.

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > In addition to the added time, aren't there any problems with race > conditions if two users try to create a file at the same time and each > user's script tries to clean the same files at the same time? ergo, the need

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:56 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > it sounds like thats what theyre talking about doing... > [snip!] > > that way, you could get rid of them almost as quickly as they are created; > you wont be overwriting any files for different users, and you have the > g

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread tedd
At 9:41 AM -0400 4/16/08, Andrew Ballard wrote: On Wed, Apr 16, 2008 at 7:56 AM, tedd <[EMAIL PROTECTED]> wrote: At 6:48 PM +0900 4/16/08, Dave M G wrote: > PHP list, > > I have a PHP script that resizes an image. It takes just about whatever size and shrinks and crops it down to 320X240.

Re: [PHP] PHP Speech

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 9:53 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda > <[EMAIL PROTECTED]> wrote: > > > > I don't know if I'm just lazy or stupid (or both). > > Stupid, definitely not. Lazy well, maybe. ;-P > > > > I went into a si

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:53 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda > <[EMAIL PROTECTED]> wrote: > > > > I don't know if I'm just lazy or stupid (or both). > > Stupid, definitely not. Lazy well, maybe. ;-P > > > I went into a similar

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: > On Wed, Apr 16, 2008 at 6:07 AM, Per Jessen <[EMAIL PROTECTED]> wrote: >> >> > Actually, I have no idea what the potential dangers are. >> >> Using up all available memory is the only real "risk". It might >> lead to swapping which in turn will most likely increase respon

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:37 AM, Thiago Pojda < [EMAIL PROTECTED]> wrote: > {Top Posting} > > I don't know if I'm just lazy or stupid (or both). > > I went into a similar issue few weeks ago and my solution was to add a > function to delete files created in the last X hours (mine was 24), and > ca

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda <[EMAIL PROTECTED]> wrote: > > I don't know if I'm just lazy or stupid (or both). Stupid, definitely not. Lazy well, maybe. ;-P > I went into a similar issue few weeks ago and my solution was to add a > function to delete files created in

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 7:56 AM, tedd <[EMAIL PROTECTED]> wrote: > At 6:48 PM +0900 4/16/08, Dave M G wrote: > > > PHP list, > > > > I have a PHP script that resizes an image. It takes just about whatever > size and shrinks and crops it down to 320X240. > > > > I've found that these days, it's not

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 6:07 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > > > Actually, I have no idea what the potential dangers are. > > Using up all available memory is the only real "risk". It might lead to > swapping which in turn will most likely increase response times. And on a shar

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 7:56 AM, tedd <[EMAIL PROTECTED]> wrote: > At 6:48 PM +0900 4/16/08, Dave M G wrote: > > > PHP list, > > > > I have a PHP script that resizes an image. It takes just about whatever > size and shrinks and crops it down to 320X240. > > > > I've found that these days, it's not

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 5:48 AM, Dave M G <[EMAIL PROTECTED]> wrote: > PHP list, > > I have a PHP script that resizes an image. It takes just about whatever > size and shrinks and crops it down to 320X240. > [snip!] > > So sometimes I've seen an error in my logs that says: > > Fatal error: Allow

RES: [PHP] PHP Speech

2008-04-16 Thread Thiago Pojda
{Top Posting} I don't know if I'm just lazy or stupid (or both). I went into a similar issue few weeks ago and my solution was to add a function to delete files created in the last X hours (mine was 24), and call it on the same script that creates the files. Which means it tries to clean up old

  1   2   >