Re: [PHP] counting with leading zeros

2007-09-26 Thread Jim Lucas
brian wrote: I have a directory that contains many images (no, not pr0n, unfortunately) and i'm working on an admin script for adding to it. I've got something that works alright but i'm wondering if there's a Better Way. Each image is named like: foo_01.jpg, foo_02.jpg, bar_01.jpg, and so on.

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Thu, 2007-09-27 at 00:23 -0400, brian wrote: > Robert Cummings wrote: > > When you use sort() the default behaviour is a lexical sort. This is why > > the 100th index breaks your system. I'm not trying to be a dickhead, > > just pointing out the flaw in your logic. You may be well aware that in

Re: [PHP] counting with leading zeros

2007-09-26 Thread brian
Robert Cummings wrote: When you use sort() the default behaviour is a lexical sort. This is why the 100th index breaks your system. I'm not trying to be a dickhead, just pointing out the flaw in your logic. You may be well aware that in counting 100 comes after 99, but it would seem you are not w

Re: [PHP] PDOStatement execute memory issue?

2007-09-26 Thread Larry Garfield
On Wednesday 26 September 2007, Carlton Whitehead wrote: > Could this be some bug in the way PHP, PDO, ODBC, and/or MS SQL are > communicating? Maybe 'image' columns aren't being handled correctly? > I'm fairly certain my code is correct. I appreciate all of your comments. > > Has anyone even tr

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 22:39 -0400, brian wrote: > Robert Cummings wrote: > > On Wed, 2007-09-26 at 19:10 -0400, brian wrote: > > > >>If my response to that gave you the impression i was > >>complaining, i assure you that i wasn't. I was simply suggesting > >>that i was wondering if there was a *mu

Re: [PHP] PDOStatement execute memory issue?

2007-09-26 Thread Carlton Whitehead
No, the faxes aren't 4GB. Most of the faxes are less than 50KB, although they can be as large as a few MB. 4GB is a ridiculous amount of memory to try to allocate for this. 4GB is the max that 32bit versions of Windows can see. Is something causing the memory allocation to loop until it rea

Re: [PHP] counting with leading zeros

2007-09-26 Thread brian
Robert Cummings wrote: On Wed, 2007-09-26 at 19:10 -0400, brian wrote: If my response to that gave you the impression i was complaining, i assure you that i wasn't. I was simply suggesting that i was wondering if there was a *much* simpler way to do this, ie. without using several functions to

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 19:10 -0400, brian wrote: > Robert Cummings wrote: > > >> Well, this is almost precisely the same thing i have, save for > >> using POSIX character classes, str_pad instead of sprintf(), and > >> incrementing elsewhere. What i was really wondering is if there was > >> a *mu

[PHP] Re: [horde] Requirement of IMP / Horde

2007-09-26 Thread Ashley M. Kirchner
[EMAIL PROTECTED] wrote: post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each script may spend parsing request data memory_limit = 512M ; Maximum amount of memory a script may consume file_uploads = O

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread Larry Garfield
On Wednesday 26 September 2007, David Christopher Zentgraf wrote: > On 26. Sep 2007, at 16:45, Nathan Nobbe wrote: > > i hate to suggest it, but you might want to take a little time and > > investigate what other restrictions you host has. if the list is > > long you may want to consider a > > mo

Re: [PHP] trouble trying to connect to gmail server.

2007-09-26 Thread Fábio Generoso
*Hi Cris,* *I have tried to use:* *$mbox = imap_open('{**pop.gmail.com:995/pop3}INBOX **<**http://pop.gmail.com:995/pop3%7DINBOX**>',* *> '@**gmail.com**', ');* *As you suggest but it didn't work. * *The time out is not for the function:* *imap_num_r

Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]

2007-09-26 Thread Jim Lucas
[EMAIL PROTECTED] wrote: > Jim Lucas wrote: > >> [EMAIL PROTECTED] wrote: >> >>> post_max_size = 10M >>> max_execution_time = 3600 ; Maximum execution time of each script, in >>> seconds >>> max_input_time = 3600 ; Maximum amount of time each script may spend >>> parsing request data >>> memory_li

Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]

2007-09-26 Thread edwardspl
Jim Lucas wrote: > [EMAIL PROTECTED] wrote: > >> >> post_max_size = 10M >> max_execution_time = 3600 ; Maximum execution time of each script, in >> seconds >> max_input_time = 3600 ; Maximum amount of time each script may spend >> parsing request data >> memory_limit = 512M ; Maximum amount of mem

Re: [PHP] counting with leading zeros

2007-09-26 Thread brian
Robert Cummings wrote: On Wed, 2007-09-26 at 15:58 -0400, brian wrote: Robert Cummings wrote: On Wed, 2007-09-26 at 15:11 -0400, brian wrote: I have a directory that contains many images (no, not pr0n, unfortunately) and i'm working on an admin script for adding to it. I've got something

Re: [PHP] PDOStatement execute memory issue?

2007-09-26 Thread Jeffery Fernandez
On Thursday 27 September 2007 04:21, Carlton Whitehead wrote: > Hi everyone, > > I'm working on a script that downloads archived fax images (TIFFs and PDFs) > from a MS SQL Server using the PDO ODBC driver. I get the below error > regardless of which fax I try to get from the database. Each fax is

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 15:58 -0400, brian wrote: > Robert Cummings wrote: > > On Wed, 2007-09-26 at 15:11 -0400, brian wrote: > > > >>I have a directory that contains many images (no, not pr0n, > >>unfortunately) and i'm working on an admin script for adding to it. I've > >>got something that wor

Re: [PHP] Compile issue

2007-09-26 Thread Nathan Nobbe
you might try experimenting w/ the configure command; perhaps if you start w/ a minimal php installation it will compile. then you could one-by-one enable the things you have in your standard configure command. maybe at least you could narrow down the problem that way. -nathan On 9/26/07, Eric Bu

Re: [PHP] Compile issue

2007-09-26 Thread Eric Butera
Yep! I made a little sh script that I keep the same ./configure string in. When a new version comes out I extract it, copy my script in there, and run it. Usually everything works out perfectly. I've been using it happily since 5.1.2 and now all of a sudden after 5.2.2 I can't anymore. On 9/26

Re: [PHP] counting with leading zeros

2007-09-26 Thread brian
Robert Cummings wrote: On Wed, 2007-09-26 at 15:11 -0400, brian wrote: I have a directory that contains many images (no, not pr0n, unfortunately) and i'm working on an admin script for adding to it. I've got something that works alright but i'm wondering if there's a Better Way. Each image i

Re: [PHP] Compile issue

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

Re: [PHP] counting with leading zeros

2007-09-26 Thread Robert Cummings
On Wed, 2007-09-26 at 15:11 -0400, brian wrote: > I have a directory that contains many images (no, not pr0n, > unfortunately) and i'm working on an admin script for adding to it. I've > got something that works alright but i'm wondering if there's a Better Way. > > Each image is named like: foo

[PHP] counting with leading zeros

2007-09-26 Thread brian
I have a directory that contains many images (no, not pr0n, unfortunately) and i'm working on an admin script for adding to it. I've got something that works alright but i'm wondering if there's a Better Way. Each image is named like: foo_01.jpg, foo_02.jpg, bar_01.jpg, and so on. When adding

Re: [PHP] IF's!

2007-09-26 Thread Dan Shirah
Thanks! I think I saw mssql_error() somewhere on a forum a long time ago so I just inherently started using it. Thanks for pointing that out. Jim, yes you are right...that was just a portion of my code. The entire page in which that section resides is over 900 lines and I didn't want everyone t

Re: [PHP] IF's!

2007-09-26 Thread Daniel Brown
On 9/26/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > Okay, I know this is probably a real easy fix, and I could swear I've done > it before, but for some reason it's just not working. > > Below is my query, it does a conditional search based on info put in a form > by the user. If I put in a valid l

Re: [PHP] IF's!

2007-09-26 Thread Jim Lucas
Dan Shirah wrote: Okay, I know this is probably a real easy fix, and I could swear I've done it before, but for some reason it's just not working. Below is my query, it does a conditional search based on info put in a form by the user. If I put in a valid letter/name for the last_name that I kno

[PHP] simple product selection guide

2007-09-26 Thread David
This is probably pretty basic but : I'd like to create a page where the end result is the product(s) listed based on certain criteria selected by the user, so I would like a drop down menu or other means that they select from and based on that selection a second list apears and then a third list

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread Paul Scott
On Wed, 2007-09-26 at 13:26 +0900, David Christopher Zentgraf wrote: > But I just found out about NuSOAP (http://dietrich.ganx4.com/ > nusoap/), which seems to be what I'm looking for, a no-strings- > attached SOAP implementation. I'm trying my luck with this one for > now. :) If you are usin

[PHP] PDOStatement execute memory issue?

2007-09-26 Thread Carlton Whitehead
Hi everyone, I'm working on a script that downloads archived fax images (TIFFs and PDFs) from a MS SQL Server using the PDO ODBC driver. I get the below error regardless of which fax I try to get from the database. Each fax is a different size, and both of the memory allocation numbers are alw

Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]

2007-09-26 Thread Jim Lucas
[EMAIL PROTECTED] wrote: post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each script may spend parsing request data memory_limit = 512M ; Maximum amount of memory a script may consume file_uploads =

[PHP] IF's!

2007-09-26 Thread Dan Shirah
Okay, I know this is probably a real easy fix, and I could swear I've done it before, but for some reason it's just not working. Below is my query, it does a conditional search based on info put in a form by the user. If I put in a valid letter/name for the last_name that I know is in my database

[PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]

2007-09-26 Thread edwardspl
Dear All, Would you mind to help ? Thanks ! Edward. Original Message Subject:Attachment Size and Memory limit with php and FC6 System Date: Thu, 27 Sep 2007 00:28:03 +0800 From: [EMAIL PROTECTED] Reply-To: For users of Fedora <[EMAIL PROTECTED]> To: IMP <

[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] Re: Data request

2007-09-26 Thread David Robley
Paul Scott wrote: > > On Tue, 2007-09-25 at 09:17 -0400, Robert Cummings wrote: >> Oh sure, and now when I'm searching for "shit" I'll get all these >> Henry's cat references *bleh*. >> > Well then why not tie in "coprophilia" as well? > > ugh. > > --Paul You gotta love that shit... oh wait,

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread David Christopher Zentgraf
On 26. Sep 2007, at 16:45, Nathan Nobbe wrote: i hate to suggest it, but you might want to take a little time and investigate what other restrictions you host has. if the list is long you may want to consider a move. it may seem arduous now, but the longer you wait the more arduous it will

[PHP] Extract SOAP Request Data

2007-09-26 Thread Jeffery Fernandez
I have a SOAP request logger which logs all SOAP requests/responses being made on the system. What I want to do is extract the function name being called and the params passed to it. The following is an example XML Request: http://www.w3.org/2003/05/soap-envelope"; xmlns:ns1="urn:Gateway_Proxy"

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread Nathan Nobbe
as i said, its a relic. i started using it where i work because we are still on php4 (dont ask) and was dismayed. i looked around at some articles online and thats where i got the impression it was the defacto standard back in php4 when java already had a robust soap api (and probly .net too). i

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread David Christopher Zentgraf
On 26. Sep 2007, at 16:14, mike wrote: On 9/25/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: i try to stay away from it if i can. i think the same of SOAP. in my opinion a shower is the only place for soap. Well put. :-D I, too, fail to see what's so terribly special about it. -- PHP Gene

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread David Christopher Zentgraf
On 26. Sep 2007, at 15:26, Nathan Nobbe wrote: i just read the first message in this thread and NuSoap immediately came to mind. though it will solve your problem you may end up like me, hating to use NuSoap under duress. i think it was really popular back in th php4 days when there was n

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread mike
On 9/25/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i try to stay away from it if i can. i think the same of SOAP. in my opinion a shower is the only place for soap. simple XML, REST, JSON, lighter weight things are what i prefer. even XML-RPC i can live without. my $0.02 -- PHP General Mail