Re: [PHP] Re: limiting

2012-10-10 Thread tamouse mailing lists
On Wed, Oct 10, 2012 at 7:37 PM, Jim Giner wrote: > On 10/10/2012 4:27 PM, Matijn Woudt wrote: >> >> On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan >> wrote: >>> >>> On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: >>> On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote:

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 4:27 PM, Matijn Woudt wrote: On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan wrote: On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone wrote: BTW - in any of your

[PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 2:36 PM, Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. back in like '85, I learned Pascal that's the only language I learned and I don't recall

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
On 10 Oct 2012 at 19:53, David McGlone wrote: > On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: >> On 10 Oct 2012 at 19:17, David McGlone wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. >>> back in

Re: [PHP] Re: limiting

2012-10-10 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan wrote: > On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: > >> On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: >> > On 10 Oct 2012 at 19:17, David McGlone wrote: >> > >> > >> > >> >> > >> >> > >> BTW - in any of your other co

Re: Re: [PHP] Re: limiting

2012-10-10 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 8:17 PM, David McGlone wrote: >> >> BTW - in any of your other computer languages didn't they utilize a >> 'return' statement? PHP's is no different. > > back in like '85, I learned Pascal that's the only language I learned and I > don't recall if it used return. > > --

Re: [PHP] Re: limiting

2012-10-10 Thread Ashley Sheridan
On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: > On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: > > On 10 Oct 2012 at 19:17, David McGlone wrote: > > > > > > >> > > >> > > >> BTW - in any of your other computer languages didn't they utilize a > > >> 'return' statement?

Re: [PHP] Re: limiting

2012-10-10 Thread David McGlone
On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: > On 10 Oct 2012 at 19:17, David McGlone wrote: > > > >> > >> > >> BTW - in any of your other computer languages didn't they utilize a > >> 'return' statement? PHP's is no different. > > > > > > > > back in like '85, I learned Pasc

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
On 10 Oct 2012 at 19:17, David McGlone wrote: >> >> BTW - in any of your other computer languages didn't they utilize a >> 'return' statement? PHP's is no different. > > back in like '85, I learned Pascal that's the only language I learned and I > don't recall if it used return. Mmmm. There's

Fwd: Re: [PHP] Re: limiting

2012-10-10 Thread David McGlone
-- Forwarded Message -- Subject: Re: [PHP] Re: limiting Date: Wednesday, October 10, 2012, 02:03:57 PM From: David McGlone To: jim.gi...@albanyhandball.com On Wednesday, October 10, 2012 01:31:58 PM Jim Giner wrote: > On 10/10/2012 1:19 PM, David McGlone wrote: > >

Re: [PHP] Re: limiting

2012-10-10 Thread Govinda
> [snip] > With that said, I just may leave the list. After all if this is all I'm going > to get out of it, it's not worth it! > [snip] > Hi David, it sounds like cliche, but you get out of it what you put in it. I recommend: (If you *want* to write code, then:) - don't get flustered; don't

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 1:19 PM, David McGlone wrote: With that said, I just may leave the list. After all if this is all I'm going to get out of it, it's not worth it! -- David M. This list has given you some very good advice, much of it from others. It may not have solved your understanding of 'gl

Re: [PHP] Re: limiting

2012-10-10 Thread David McGlone
On Wednesday, October 10, 2012 05:48:10 PM Matijn Woudt wrote: > On Wed, Oct 10, 2012 at 5:12 PM, Jim Giner wrote: > > On 10/10/2012 10:07 AM, Floyd Resler wrote: > >> On Oct 10, 2012, at 9:12 AM, Andy McKenzie wrote: > >>> > >>> > > Have you read a book on php and perhaps one on CSS to he

Re: [PHP] Re: limiting

2012-10-10 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 5:12 PM, Jim Giner wrote: > On 10/10/2012 10:07 AM, Floyd Resler wrote: >> >> >> >> On Oct 10, 2012, at 9:12 AM, Andy McKenzie wrote: >> >>> > > Have you read a book on php and perhaps one on CSS to help > with your "hiding" problem? (BTW - that last was a hi

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 10:07 AM, Floyd Resler wrote: On Oct 10, 2012, at 9:12 AM, Andy McKenzie wrote: Have you read a book on php and perhaps one on CSS to help with your "hiding" problem? (BTW - that last was a hint.) I've read plenty of PHP books I own at least 5 and ALL of them I've read har

Re: [PHP] Re: limiting

2012-10-10 Thread Floyd Resler
On Oct 10, 2012, at 9:12 AM, Andy McKenzie wrote: > >>> Have you read a book on php and perhaps one on CSS to help >>> with your "hiding" problem? (BTW - that last was a hint.) >> >> I've read plenty of PHP books I own at least 5 and ALL of them I've read >> hardly ever explain anything at a

Re: [PHP] Re: limiting

2012-10-10 Thread Andy McKenzie
>> Have you read a book on php and perhaps one on CSS to help >> with your "hiding" problem? (BTW - that last was a hint.) > > I've read plenty of PHP books I own at least 5 and ALL of them I've read > hardly ever explain anything at all. They just throw some code in there and > say "this is what

Re: [PHP] Re: limiting

2012-10-09 Thread Ashley Sheridan
Matijn Woudt wrote: >On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater >wrote: >> On 09 Oct 2012 at 20:46, Matijn Woudt wrote: >> >>> For example your previous post, you >>> could have just looked up what the 'echo' and 'return' statements do >>> in the PHP manual, and they are probably explaine

Re: [PHP] Re: limiting

2012-10-09 Thread tamouse mailing lists
On Tue, Oct 9, 2012 at 5:19 PM, Matijn Woudt wrote: > On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater wrote: >> On 09 Oct 2012 at 20:46, Matijn Woudt wrote: >> >>> For example your previous post, you >>> could have just looked up what the 'echo' and 'return' statements do >>> in the PHP manual, a

Re: [PHP] Re: limiting

2012-10-09 Thread Matijn Woudt
On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater wrote: > On 09 Oct 2012 at 20:46, Matijn Woudt wrote: > >> For example your previous post, you >> could have just looked up what the 'echo' and 'return' statements do >> in the PHP manual, and they are probably explained pretty OK in those >> books y

Re: RES: [PHP] Re: limiting

2012-10-09 Thread Govinda
> [snip] > When posting, please try to write every bit of effort you had so far trying > to solve your problem. > > Besides that, please, don't feel sad or ignored or whatsoever if the answers > you've got wasn't satisfactory or doesn't came at all. As Matijn said, this > list isn't meant to b

[PHP] Re: limiting

2012-10-09 Thread Tim Streater
On 09 Oct 2012 at 20:46, Matijn Woudt wrote: > For example your previous post, you > could have just looked up what the 'echo' and 'return' statements do > in the PHP manual, and they are probably explained pretty OK in those > books you own too. You probably could have answered the questions you

Re: RES: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
ira, 9 de outubro de 2012 17:07 Para: php-general@lists.php.net Assunto: Re: [PHP] Re: limiting On 10/9/2012 3:46 PM, Matijn Woudt wrote: On Tue, Oct 9, 2012 at 9:18 PM, David McGlone wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: Sorry to be so blunt. It's fine I kinda fig

RES: [PHP] Re: limiting

2012-10-09 Thread Samuel Lopes Grigolato
rpreted as directions and hints, and not as yells or other bad things, doesn't matter how bad the words appear to be. Good luck in your path. -Mensagem original- De: Jim Giner [mailto:jim.gi...@albanyhandball.com] Enviada em: terça-feira, 9 de outubro de 2012 17:07 Para: php-general@lists.

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/9/2012 3:46 PM, Matijn Woudt wrote: On Tue, Oct 9, 2012 at 9:18 PM, David McGlone wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: Sorry to be so blunt. It's fine I kinda figured I'd be either ignored, or yelled at when I asked and I now know that I need to be a profes

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
PLEASE SEE MY COMMENTS INTERSPERSED AND BELOW. (yes this is a top post) On 10/9/2012 3:18 PM, David McGlone wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1 image

Re: [PHP] Re: limiting

2012-10-09 Thread Matijn Woudt
On Tue, Oct 9, 2012 at 9:18 PM, David McGlone wrote: > On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: >> >> Sorry to be so blunt. > > It's fine I kinda figured I'd be either ignored, or yelled at when I asked > and I > now know that I need to be a professional to ask questions here so

Re: [PHP] Re: limiting

2012-10-09 Thread David McGlone
On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: > On 10/8/2012 11:11 PM, David McGlone wrote: > > Hi all, > > > > is there any other way to limit this code to only displaying 1 image other > > than using return. When I use return, I can't get the other images to > > display in lightbox,

[PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1 image other than using return. When I use return, I can't get the other images to display in lightbox, but when I use echo, all 5 of the images will correctly display in lightbox, b

[PHP] Re: Limiting speed when using CURL functions

2007-03-12 Thread Manuel Lemos
Hello, on 03/12/2007 09:14 AM Tijnema ! said the following: > Hi, > > Is there any way i can limit the transfer speed when using CURL? > > I'm uploading a file to a server, and i don't want the script to f*** up > all > bandwidth. This is a an unusual question. I don't know how can you do that

Re: [PHP] Re: Limiting Cpu usage

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 8:20:46 AM, you wrote: z> Yeahh! i have made it z> i can slow down a php script , as i edited the zend engine source to usleep z> every 1000 low-level instructions z> now, is there a way to determine to check my cpu load and adjust it by that z> so if nothing

[PHP] Re: Limiting Cpu usage

2005-04-12 Thread zini10
Yeahh! i have made it i can slow down a php script , as i edited the zend engine source to usleep every 1000 low-level instructions now, is there a way to determine to check my cpu load and adjust it by that so if nothing (or very low cpu usage) is running on the system he'll get extra p

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
in a brief rethinking, that is excatly what i need to do - change the php itself... now, i found the execute function but can someone please explain how can i put a usleep or sleep or somethink which doesnt take up cpu cycles (like the sleep command in linux?) thanks/ -- PHP General Mailing L

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
Yeah . i thought about removing those entire functions by "DISABLE_FUNCTIONS" directive , it not that common either. is there a way to enforce declare(ticks=); automatically? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Limiting Cpu usage

2005-04-11 Thread Jared Williams
> but i must give them php support or else they coulnot do > anything on the server... > im limiting them by functions , safe mode and more.. I've known atleast one hosting operation that compile their own custom PHP, to limit the impact of problematic code. The only thing I can remember that

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
but i must give them php support or else they coulnot do anything on the server... im limiting them by functions , safe mode and more.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Limiting Cpu usage

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 10:55 am, zini10 said: > Thought about that, but its a free host that will host many many users.ill > prefer them to have low cpu usage limit also if the system is free of > tasks > as that will never happen. > any user can come, prepare a script which will do a infinite loop

[PHP] Re: Limiting Cpu usage

2005-04-10 Thread zini10
Thought about that, but its a free host that will host many many users.ill prefer them to have low cpu usage limit also if the system is free of tasks as that will never happen. any user can come, prepare a script which will do a infinite loop and will make the server slow for all other users. t

Re: [PHP] Re: Limiting repetitive file access

2003-11-16 Thread Manuel Lemos
Hello, On 11/16/2003 04:32 PM, Andre Dubuc wrote: Sometimes I have that problem because some users of my site think they can use site sucking programs to get all its content. What was done is to have a script monitoring the Web server logs and if the same user of the same IP makes an excessive amo

Re: [PHP] Re: Limiting repetitive file access

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 06:40 am, Manuel Lemos wrote: > Hello, > > On 11/16/2003 02:52 AM, Andre Dubuc wrote: > > Recently, a 'user' attempted to access a restricted area of my site > > repetitively (spanning five hours) entering the same url repetitively > > [probably by script]. A massive lo

[PHP] Re: Limiting repetitive file access

2003-11-16 Thread Manuel Lemos
Hello, On 11/16/2003 02:52 AM, Andre Dubuc wrote: Recently, a 'user' attempted to access a restricted area of my site repetitively (spanning five hours) entering the same url repetitively [probably by script]. A massive log file was generated. I would like to ban such behavior by limiting the n

[PHP] Re: limiting rows and pages like google -- again

2001-09-12 Thread Adam
i spent a good day learning how to do this from scratch. I'll post my code and you can decypher it yourself. «previous '; }else{ echo '«previous '; } } else { echo '«previous '; } while ($select_numrows > 0) { if ($page != $i) { if ($i==1){ echo ''.$i.' '; } else{ echo ''.$

Re: [PHP] Re: limiting lines

2001-07-29 Thread Jan Wilson
* dan <[EMAIL PROTECTED]> [010729 11:11]: > Problem is, the only new lines are at the end of paragraphs, so that, in > effect, is limiting them to 55 paragraphs. I'm using a wrap=physical> which says that it adds a "%0A%0D" (carriage return/line > feed) at the end of each line. > > Anyone kno

Re: [PHP] Re: limiting lines

2001-07-29 Thread dan
Thanks for the quick answers. Problem is, the only new lines are at the end of paragraphs, so that, in effect, is limiting them to 55 paragraphs. I'm using a which says that it adds a "%0A%0D" (carriage return/line feed) at the end of each line. Anyone know how to convert that to a "\n" ?

[PHP] Re: limiting lines

2001-07-29 Thread James, Yz
Hiya Dan, If you're expecting new lines, you could do this: $length = explode("\n", $message); if (sizeof($length) > 55) { // error } And also limit the number of characters, using strlen() James "Dan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi