Re: [PHP] limit access to php page

2013-05-31 Thread Tamara Temple
Camilo Sperberg wrote: > On 30 mei 2013, at 05:05, Paul M Foster wrote: > > > On Wed, May 29, 2013 at 08:51:47PM -0400, Tedd Sperling wrote: > > > >> On May 29, 2013, at 7:11 PM, Tim Dunphy wrote: > >> > >>> Hello list, > >>> > >>> I've created an authentication page (index.php) that logs in

Re: [PHP] limit access to php page

2013-05-30 Thread Paul M Foster
On Thu, May 30, 2013 at 12:06:02PM -0400, Tedd Sperling wrote: > On May 29, 2013, at 11:05 PM, Paul M Foster > wrote: > >> http://sperling.com/php/authorization/log-on.php > > > > I realize this is example code. > > > > My question is, in a real application where that $_SESSION['auth'] > > toke

Re: [PHP] limit access to php page

2013-05-30 Thread Tedd Sperling
On May 29, 2013, at 11:05 PM, Paul M Foster wrote: >> http://sperling.com/php/authorization/log-on.php > > I realize this is example code. > > My question is, in a real application where that $_SESSION['auth'] token > would be used subsequently to gain entry to other pages, what would you > use

Re: [PHP] limit access to php page

2013-05-29 Thread Camilo Sperberg
On 30 mei 2013, at 05:05, Paul M Foster wrote: > On Wed, May 29, 2013 at 08:51:47PM -0400, Tedd Sperling wrote: > >> On May 29, 2013, at 7:11 PM, Tim Dunphy wrote: >> >>> Hello list, >>> >>> I've created an authentication page (index.php) that logs into an LDAP >>> server, then points you to

Re: [PHP] limit access to php page

2013-05-29 Thread Paul M Foster
On Wed, May 29, 2013 at 08:51:47PM -0400, Tedd Sperling wrote: > On May 29, 2013, at 7:11 PM, Tim Dunphy wrote: > > > Hello list, > > > > I've created an authentication page (index.php) that logs into an LDAP > > server, then points you to a second page that some folks are intended to > > use t

Re: [PHP] limit access to php page

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 7:11 PM, Tim Dunphy wrote: > Hello list, > > I've created an authentication page (index.php) that logs into an LDAP > server, then points you to a second page that some folks are intended to > use to request apache redirects from the sysadmin group (redirect.php). > > Everyt

Re: [PHP] limit access to php page

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 6:11 PM, Tim Dunphy wrote: > Hello list, > > I've created an authentication page (index.php) that logs into an LDAP > server, then points you to a second page that some folks are intended to > use to request apache redirects from the sysadmin group (redirect.php). > > Ever

[PHP] limit access to php page

2013-05-29 Thread Tim Dunphy
Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group (redirect.php). Everything works great so far, except if you pop the full URL of red

[PHP] apache or php limit?

2011-05-30 Thread Peet Grobler
Hi there, new to this list. I have a problem I can't seem to figure out. Here goes. PHP page has 100s of textboxes on it. Submit on the development machine, everything works as expected. Submit on live machine - only part of the $_POST variables are there. The script doesn't stop executing - it e

Re: [PHP] Limit failed logins attempts

2010-08-09 Thread Peter Lind
On 9 August 2010 15:10, Richard Quadling wrote: > On 9 August 2010 14:04, Juan Rodriguez Monti > wrote: >> 2010/8/9 Richard Quadling : >>> On 9 August 2010 13:30, Juan Rodriguez Monti >>> wrote: I thought that might be a good idea, to define a session variable called ( failedattempts

Re: [PHP] Limit failed logins attempts

2010-08-09 Thread Richard Quadling
On 9 August 2010 14:04, Juan Rodriguez Monti wrote: > 2010/8/9 Richard Quadling : >> On 9 August 2010 13:30, Juan Rodriguez Monti >> wrote: >>> I thought that might be a good idea, to define a session variable >>> called ( failedattempts ), then check and if $failedattempts is >>> greater than,

RE: [PHP] Limit failed logins attempts

2010-08-09 Thread Bob McConnell
From: Juan Rodriguez Monti > I would like to know what do you suggest to implement a limit for > failed login attempts. > > I thought that might be a good idea, to define a session variable > called ( failedattempts ), then check and if $failedattempts is > greater than, suppose, 4 write to a Dat

Re: [PHP] Limit failed logins attempts

2010-08-09 Thread Richard Quadling
On 9 August 2010 13:30, Juan Rodriguez Monti wrote: > I thought that might be a good idea, to define a session variable > called ( failedattempts ), then check and if $failedattempts is > greater than, suppose, 4 ... As sessions are connected to a request through a session cookie, putting the fai

Re: [PHP] Limit failed logins attempts

2010-08-09 Thread Peter Lind
On 9 August 2010 14:30, Juan Rodriguez Monti wrote: > Hi guys, > I would like to know what do you suggest to implement a limit for > failed login attempts. I use velocity control (or whatever it is called). After the first failed attempt, set a ban-period before another login is possible for the

[PHP] Limit failed logins attempts

2010-08-09 Thread Juan Rodriguez Monti
Hi guys, I would like to know what do you suggest to implement a limit for failed login attempts. I thought that might be a good idea, to define a session variable called ( failedattempts ), then check and if $failedattempts is greater than, suppose, 4 write to a Database ( ip, username and last-t

Re: [PHP] limit to var_dump?

2010-04-17 Thread Michiel Sikma
On 16 April 2010 16:15, Ashley Sheridan wrote: > I'm seeing some strange behaviour with var_dump. Is there a limit to how > many levels deep that var_dump can display? > > -snip- > > However, when I var_dump the top-most object (the Gantt object) the > predecessors array for Gantt_Task 1.2 just s

Re: [PHP] limit to var_dump?

2010-04-16 Thread Peter Lind
There's a limit to how deep var_dump goes, at least if you're using xdebug. Compare the output with that of print_r which is not limited in the same way. On 16 April 2010 16:15, Ashley Sheridan wrote: > I'm seeing some strange behaviour with var_dump. Is there a limit to how > many levels deep th

[PHP] limit to var_dump?

2010-04-16 Thread Ashley Sheridan
I'm seeing some strange behaviour with var_dump. Is there a limit to how many levels deep that var_dump can display? Basically, my object looks like this: object(Gantt)[1] public 'tasks' => array 1 => object(Gantt_Task)[2] public 'name' => string 'task 1' (length 6)

Re: [PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
On Oct 22, 2009, at 3:30 PM, Phpster wrote: Have you run an explain plan on the query? Bastien Sent from my iPod Yes, I have. For giggles, I wanted to run it again. Here it is (slightly stripped down) and it looks good to me. mysql> EXPLAIN SELECT -> `p`.`patient_id`, -> `p`.`add

Re: [PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
On Oct 22, 2009, at 3:26 PM, Eddie Drapkin wrote: On Thu, Oct 22, 2009 at 4:14 PM, Philip Thompson > wrote: Hi all. I'm running into a random issue where sometimes it take several minutes (up to 10 or 15) to complete a query. According to 1 or 2 references, this may be a mysql bug. These li

Re: [PHP] Limit query/function time

2009-10-22 Thread Phpster
Have you run an explain plan on the query? Bastien Sent from my iPod On Oct 22, 2009, at 4:14 PM, Philip Thompson wrote: Hi all. I'm running into a random issue where sometimes it take several minutes (up to 10 or 15) to complete a query. According to 1 or 2 references, this may be a

Re: [PHP] Limit query/function time

2009-10-22 Thread Eddie Drapkin
On Thu, Oct 22, 2009 at 4:14 PM, Philip Thompson wrote: > Hi all. > > I'm running into a random issue where sometimes it take several minutes (up > to 10 or 15) to complete a query. According to 1 or 2 references, this may > be a mysql bug. These links explain the similar problem I'm experiencing:

[PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
Hi all. I'm running into a random issue where sometimes it take several minutes (up to 10 or 15) to complete a query. According to 1 or 2 references, this may be a mysql bug. These links explain the similar problem I'm experiencing: http://forums.mysql.com/read.php?24,57257 http://forum.p

RE: [PHP] LIMIT and SESSION WAS: What is this called?

2009-07-06 Thread Daevid Vincent
> -Original Message- > From: Wolf [mailto:lonew...@nc.rr.com] > Sent: Monday, July 06, 2009 8:10 AM > > Basically, go smack whomever told you to load all that stuff > into a session. It's a paging query that you want to do, but > I'd not recommend doing it to store it in a session. > >

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
Hi Ashley. That's what I'm doing, but want to limit what gets stored to just the content. Every page has a drop-down menu of, for instance, various cities, so I want to exclude that part of the page in my search terms. I don't want every page to think it has content on Calgary, Hamburg, Ph

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread Ashley Sheridan
What about storing all of the page content in the database to start with, then searching with a mysql statement is a breeze! On Thu, 2009-03-26 at 16:29 -0600, George Langley wrote: > - Original Message - > > From: Stuart > > > You can't have any extra info in a closing HTML tag. This >

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
- Original Message - > From: Stuart > > You can't have any extra info in a closing HTML tag. This > > problem is > > usually handled using comments. Something like the following... > > > > > > > > sofihsod hiosdh sdh gus us u sg > > > > > > > > You then just start with you see the b

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
> 2009/3/26 George Langley : > > How do I STOP it? Is it permissible to add the id again in the > closing div tag ie . > From: Stuart > You can't have any extra info in a closing HTML tag. This > problem is > usually handled using comments. Something like the following... > > > > sofihsod hi

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread Stuart
2009/3/26 George Langley : >        Hi all! Am building a Search feature following the excellent tutorial > at: > > > > It loops through a page and stores the words found in a mySQL database. >        I have about 60 pages, a

[PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
Hi all! Am building a Search feature following the excellent tutorial at: It loops through a page and stores the words found in a mySQL database. I have about 60 pages, and all of them share a number of comm

Re: [PHP] limit mail() function

2008-04-09 Thread Jordi Moles
hi, thanks for all your opinions and suggestions, i'll have a look at all of them to see if i can implement a restricted system for mail() functions. I'll report back in a few days to let you know if i've come up with something that really works. Thanks for all. En/na Andrew Ballard ha esc

Re: [PHP] limit mail() function

2008-04-08 Thread Andrew Ballard
On Tue, Apr 8, 2008 at 3:51 PM, Greg Bowser <[EMAIL PROTECTED]> wrote: > >postfix has rate-limitation facilities you can use for this > > I'm aware of several configuration directives that limit rate, none of > which directly limit the send rate local users. Perhaps some kludgly > or elusive t

Re: [PHP] limit mail() function

2008-04-08 Thread Greg Bowser
>Pardon me, but that's one kludgy idea Hence my use of the term hackish. But really, is isn't all that kludgy. An software solution that implements this natively would have to keep track of the stats somehow; undoubtely via some sort of stats file. So the real difference is that two processes are

Re: [PHP] limit mail() function

2008-04-08 Thread Per Jessen
Greg Bowser wrote: > I'm not sure how, or if there is a way to do this in postfix. The > mail() function calls the sendmail binary, so one sort of hackish way > might be to move this binary and write a wrapper script that keeps > track of per-user rate limits, and then invokes the real sendmail >

Re: [PHP] limit mail() function

2008-04-08 Thread Greg Bowser
As far as I know, there's no way you can do this via PHP. PHP doesn't "know" about users on the system. Generally, PHP is run as an apache module, and thus the scripts are run as the user apache is running as. So to start with, you'd probably need to be running a Fast CGI + SuExec setup or somet

Re: [PHP] limit mail() function

2008-04-08 Thread Per Jessen
Jordi Moles wrote: > I've got a server with apache2 and postfix and php5 providing hosting > to some clients. I've got this big problem about clients sending spam > massively, either consciously or because they website have been > hacked. The main way to spam is by using the "mail()" function. > S

[PHP] limit mail() function

2008-04-08 Thread Jordi Moles
hello everyone, first of all... i'm sorry if this has been asked like a million times before... but i've been looking for info about this and found nothing so far. anyway I've got a server with apache2 and postfix and php5 providing hosting to some clients. I've got this big problem abo

Re: [PHP] Limit query results

2007-05-04 Thread Jim Lucas
Dan Shirah wrote: $result = mssql_query($sql) or die(mssql_error()); // print_r ($result); You realize that this will print the Resource ID# for the resource pointer, but not the actual result set. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and

Re: [PHP] Limit query results

2007-05-04 Thread Miguel J. Jiménez
Use "SELECT DISTINCT" in your SQL syntax. -- Miguel J. Jiménez Programador Senior Área de Internet/XSL/PHP [EMAIL PROTECTED] ISOTROL Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta. Parque Tecnológico Cartuja '93, 41092 Sevilla. Teléfono:

Re: [PHP] Limit query results

2007-05-04 Thread Zoltán Németh
SELECT DISTINCT? greets Zoltán Németh 2007. 05. 4, péntek keltezéssel 08.44-kor Dan Shirah ezt írta: > Good Morning everyone. > > In the below code I am pulling records from two tables. the records are > tied together by a common key in a 3rd table. Everything works correctly > down to the $re

Re: [PHP] Limit query results

2007-05-04 Thread Fredrik Thunberg
"GROUP BY whatever_id_you_want" in the SQL Dan Shirah skrev: Good Morning everyone. In the below code I am pulling records from two tables. the records are tied together by a common key in a 3rd table. Everything works correctly down to the $result. // Connect to the database $connection =

[PHP] Limit query results

2007-05-04 Thread Dan Shirah
Good Morning everyone. In the below code I am pulling records from two tables. the records are tied together by a common key in a 3rd table. Everything works correctly down to the $result. // Connect to the database $connection = mssql_pconnect($host, $user, $pass) or die ('server connection

[PHP] limit on the mail function

2006-02-13 Thread spamdetect
Hello! I would like to know whether some limits on the mail function could be set. We host a lot of virtual hosts and some of our users send a lot of messages by the mail() function. However I would like to implement a limit such as max. 512 emails per virtualhost per hour. Is it possible with

Re: [PHP] LIMIT?

2006-02-06 Thread John Nichel
Chris wrote: Hi, Just because it supports the keyword 'limit' doesn't mean much. mysql does: select * from table limit x,y; postgresql does: select * from table limit y offset x; different syntax. Because it makes the thread harder to read. Why is top posting bad? Anywho, A) I said that "

Re: [PHP] LIMIT?

2006-02-06 Thread Chris
Hi, Just because it supports the keyword 'limit' doesn't mean much. mysql does: select * from table limit x,y; postgresql does: select * from table limit y offset x; different syntax. John Nichel wrote: James Kaufman wrote: On Mon, Feb 06, 2006 at 05:08:59PM +0200, Andrei wrote: You can

Re: [PHP] LIMIT?

2006-02-06 Thread Joe Henry
On Feb 6, 2006, at 12:11 PM, James Kaufman wrote: Answers that show SQL commands that apply to specific databases annoy me. Not everyone uses MySQL. I've worked with several databases that don't support a LIMIT command. At least mention the database engine you are referencing. Response like th

Re: [PHP] LIMIT?

2006-02-06 Thread John Nichel
James Kaufman wrote: On Mon, Feb 06, 2006 at 05:08:59PM +0200, Andrei wrote: You can use SELECT fields FROM table WHERE condition LIMIT 15, -1 and it will select all from 15... Andy William Stokes wrote: Hello I have a news page which is getting quite long now and I would like to

Re: [PHP] LIMIT?

2006-02-06 Thread James Kaufman
On Mon, Feb 06, 2006 at 05:08:59PM +0200, Andrei wrote: > > You can use SELECT fields FROM table WHERE condition LIMIT 15, -1 and it > will select all from 15... > > Andy > > William Stokes wrote: > >Hello > > > >I have a news page which is getting quite long now and I would like to > >s

Re: [PHP] LIMIT?

2006-02-06 Thread Andrei
You can use SELECT fields FROM table WHERE condition LIMIT 15, -1 and it will select all from 15... Andy William Stokes wrote: Hello I have a news page which is getting quite long now and I would like to split the news to two pages. Now I have one SQL query for all the rows and I t

RE: [PHP] LIMIT?

2006-02-06 Thread Albert
William Stokes wrote: > One page one there's headline and short summary and the second page should > be "archive" with only the headline so all remaining rows can be printed > to one page. > > Something like: "SELECT * FROM `x_news` LIMIT 0 , 15" but how to do the > archive page SELECT * FROM `

Re: [PHP] LIMIT?

2006-02-06 Thread Larry E. Ullman
I have a news page which is getting quite long now and I would like to split the news to two pages. Now I have one SQL query for all the rows and I think I could use LIMIT to limit the results but how to limit the results for example to 15 rows for page one and from 16 to the last on second

[PHP] LIMIT?

2006-02-06 Thread William Stokes
Hello I have a news page which is getting quite long now and I would like to split the news to two pages. Now I have one SQL query for all the rows and I think I could use LIMIT to limit the results but how to limit the results for example to 15 rows for page one and from 16 to the last on seco

Fw: [PHP] Limit - nr of sessions on a domain?

2005-09-08 Thread Gustav Wiberg
- Original Message - From: "Gustav Wiberg" <[EMAIL PROTECTED]> To: "PHP General" Sent: Thursday, September 08, 2005 11:36 PM Subject: [PHP] Limit - nr of sessions on a domain? Hi there! I'm trying to set 30 diffrent cookies on a domain, but it seems

[PHP] Limit - nr of sessions on a domain?

2005-09-08 Thread Gustav Wiberg
Hi there! I'm trying to set 30 diffrent cookies on a domain, but it seems that a cookie sets to zero and there is a max of 18 or 19 cookies... Can this be right? /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Jochem Maas
Edward Vermillion wrote: Ryan A wrote: Hey, 'prolly' is not a member of the english language. and yes it's completely off topic but you knew that... Yep, I prolly did :-) Should have taken out the "most prolly" and just had OT, my apoligies. Cheers, Ryan P.S Join me in my campaign to

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Dotan Cohen
On 8/1/05, Ryan A <[EMAIL PROTECTED]> wrote: > > > P.S Join me in my campaign to get "PROLLY" as a member of the > > > English langauge... > > > > > > If enough people use it, it will prolly get into the dictionary in a few > > > years. > > > > > > :-D > > > > > Here in Texas it's > > already there

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Ryan A
> > P.S Join me in my campaign to get "PROLLY" as a member of the > > English langauge... > > > > If enough people use it, it will prolly get into the dictionary in a few > > years. > > > > :-D > > > Here in Texas it's > already there... :D Good! That means my works already done there :-p -- PH

RE: [PHP] Limit emails from servers & recommend a control panel O T

2005-08-01 Thread Ryan A
> [/snip] > P.S Join me in my campaign to get "PROLLY" as a member of the > English langauge... > > If enough people use it, it will prolly get into the dictionary in a few > years. > [snip] > > I ceriusly dowt it. Hahahahah good one -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Edward Vermillion
Ryan A wrote: Hey, 'prolly' is not a member of the english language. and yes it's completely off topic but you knew that... Yep, I prolly did :-) Should have taken out the "most prolly" and just had OT, my apoligies. Cheers, Ryan P.S Join me in my campaign to get "PROLLY" as a member of

RE: [PHP] Limit emails from servers & recommend a control panel O T

2005-08-01 Thread Jay Blanchard
[/snip] P.S Join me in my campaign to get "PROLLY" as a member of the English langauge... If enough people use it, it will prolly get into the dictionary in a few years. [snip] I ceriusly dowt it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Ryan A
Hey, > 'prolly' is not a member of the english language. > and yes it's completely off topic but you knew that... Yep, I prolly did :-) Should have taken out the "most prolly" and just had OT, my apoligies. Cheers, Ryan P.S Join me in my campaign to get "PROLLY" as a member of the English lang

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Jochem Maas
'prolly' is not a member of the english language. and yes it's completely off topic but you knew that... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Ryan A
Hi, A client of mine wants to offer freehosting to tech companies in Sweden. (He plans to take a dedicated *unix server) 1) The main problem with offering hosting is there are some SOBs who will use that account to spam, so he asked me if it is possible to limit the amount of emails from each acco

Re: [PHP] Limit iterations on a foreach loop?

2005-02-11 Thread Robby Russell
On Thu, 2005-02-10 at 15:58 -0800, Brian Dunning wrote: > I'm using an RSS feed that has WAY too much content, I only want the > first 10. I'm outputting the array with a foreach loop: is there a way > to limit it to only go through the first 10? > > Thanks, > > - Brian > Is this data coming

Re: [PHP] Limit iterations on a foreach loop?

2005-02-11 Thread Alex Hogan
> I'm using an RSS feed that has WAY too much content, I only want the > first 10. I'm outputting the array with a foreach loop: is there a way > to limit it to only go through the first 10? foreach($var as $newvar){ if($count <= 10){ // Do something here } else{ break;

Re: [PHP] Limit iterations on a foreach loop?

2005-02-11 Thread Greg Donald
On Thu, 10 Feb 2005 15:58:28 -0800, Brian Dunning <[EMAIL PROTECTED]> wrote: > I'm using an RSS feed that has WAY too much content, I only want the > first 10. I'm outputting the array with a foreach loop: is there a way > to limit it to only go through the first 10? Use a counter variable and bre

[PHP] Limit iterations on a foreach loop?

2005-02-11 Thread Brian Dunning
I'm using an RSS feed that has WAY too much content, I only want the first 10. I'm outputting the array with a foreach loop: is there a way to limit it to only go through the first 10? Thanks, - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] LIMIT with MSSQL

2005-01-26 Thread Richard Lynch
Zouari Fourat wrote: > Is there anybody who succed in doing per/page listing from a MS SQL Server > db. Sure. > knowing that mssql doesnt support LIMIT like mysql and it uses TOP. Ain't never heard of TOP... But start reading the MS SQL manual about "cursors" to get efficient paging. -- Like

[PHP] LIMIT with MSSQL

2005-01-26 Thread Zouari Fourat
Hello Is there anybody who succed in doing per/page listing from a MS SQL Server db. knowing that mssql doesnt support LIMIT like mysql and it uses TOP. i didnt find an optimized way to make a per/page script. Here's what am doing know : to replace a MySQL "SELECT FROM LIMIT $x,$y" i did

[PHP] Limit to the number of sockets socket_select can supervise?

2004-11-20 Thread Hans-Christian Jehg
Hi Im building a TCP server in PHP 5.0.2 on Windows. It will have to serve a lot of clients (500+) with low traffic. During this I have noticed that socket_select seems unable to supervise more than 64 connections at a time (Not good when I need 500+). It stops with a message that "Socket sele

Re: [PHP] Limit the number of characters in a string

2004-06-12 Thread Richard Harb
actually it is: substr($string, 0, 100); http://www.php.net/substr -Original Message- From: php-general Sent: Friday, June 11, 2004, 3:17:15 PM > substr( xxx, 1, 100) >>> >>>Hi >>> >>>Anyone know how to clip the number of characters in a string? For instance, >>>I have a string carrying

Re: [PHP] Limit the number of characters in a string

2004-06-11 Thread Daniel Clark
substr( xxx, 1, 100) >> >>Hi >> >>Anyone know how to clip the number of characters in a string? For instance, >>I have a string carrying a long piece of text, say, of 200 characters, but I >>want to reduce this to just the first 100 characters. >> >> >>Thanks in advance. >> >>Russell -- PHP Gene

[PHP] Limit number of characters in a string

2004-06-11 Thread Russell Curtis
Hi Anyone know how to clip the number of characters in a string? For instance, I have a string carrying a long piece of text, say, of 200 characters, but I want to reduce this to just the first 100 characters. Thanks in advance. Russell -- --- Russell Curtis -

[PHP] Limit the number of characters in a string

2004-06-11 Thread Russell Curtis
Hi Anyone know how to clip the number of characters in a string? For instance, I have a string carrying a long piece of text, say, of 200 characters, but I want to reduce this to just the first 100 characters. Thanks in advance. Russell -- --- Russell Curtis

[PHP] limit number of CGI processes

2004-04-16 Thread Florian Effenberger
Hi there, I run PHP as CGI (because of suEXEC), but some configuration must be wrong. I just tried out to reload a PHP generated website about 20 or 30 times in my browser, and this really bogged down the server, I had a load of about 20 or 30. Is there anything I can do to limit this risk? I alr

RE: [PHP] limit on ammount of generated jscript arrays

2004-04-08 Thread Jay Blanchard
[snip] Hi there i am building an app of insteading of building a list menu of items, i am generating arrays of the data in javascript using a php class, this is then autocompleted in a textbox. Is there a limit to how many i can list in the page, like will it eventually slow the page down ? [/snip]

[PHP] limit on ammount of generated jscript arrays

2004-04-08 Thread electroteque
Hi there i am building an app of insteading of building a list menu of items, i am generating arrays of the data in javascript using a php class, this is then autocompleted in a textbox. Is there a limit to how many i can list in the page, like will it eventually slow the page down ? -- PHP Gener

Re: [PHP] limit run time of a function?

2004-02-11 Thread Richard Davey
Hello Anthony, Wednesday, February 11, 2004, 1:43:29 PM, you wrote: A> I have a function in my application that does a large query on my database. A> In certain instances the query will take to long to return and will reach A> the max execution time set in PHP.ini. This is ok though, it's alread

[PHP] limit run time of a function?

2004-02-11 Thread Anthony
I have a function in my application that does a large query on my database. In certain instances the query will take to long to return and will reach the max execution time set in PHP.ini. This is ok though, it's already set to 90 secs and I don't want it any longer than that. What I would like i

Re: [PHP] limit mysql connections

2004-01-09 Thread John W. Holmes
Diana Castillo wrote: Is there any way to limit the connections so that this error never happens? Warning: mysql_connect(): Too many connections at /home/local/global/php/libraries/dblayer_mysql.php line 14. The connections are already limited, that's why you get this warning. You need to handle

[PHP] limit mysql connections

2004-01-09 Thread Diana Castillo
Is there any way to limit the connections so that this error never happens? Warning: mysql_connect(): Too many connections at /home/local/global/php/libraries/dblayer_mysql.php line 14. -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax

Re: [PHP] limit to elements in an array?

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 04:48, Ian Truelsen wrote: > Is there an upper limit to the number of elements that can be in an > array? If so, what is that limit? I think it is only limitted by your computer's memory or the size of a long integer (2.4 billion or so). I did a test one day to see just how m

[PHP] limit to elements in an array?

2003-10-24 Thread Ian Truelsen
Is there an upper limit to the number of elements that can be in an array? If so, what is that limit? -- Ian Truelsen Email: [EMAIL PROTECTED] AIM: ihtruelsen Homepage: http://www.ihtruelsen.dyndns.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] Limit output of query field

2003-07-05 Thread Giz
(strlen($post) > $maxsize ) ? substr(substr($post,0,$maxsize-1), 0, strrpos(substr($post,0,$maxsize-1),' '))."... more" : $post; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 6:59 AM To: [EMAIL PROTECTED]

Re: [PHP] Limit output of query field

2003-07-05 Thread Dan Anderson
> Make it with your sql query, it will be faster: > SELECT ..., IF(LENGTH(text)>50, CONCAT(SUBSTRING(text,0,50),'...'), > text) as text I won't outright disagree, but warn fkessen to be careful. There are some scenarios in which that would not be faster. -Dan -- PHP General Mailing List (htt

Re: [PHP] Limit output of query field

2003-07-05 Thread Marek Kilimajer
Make it with your sql query, it will be faster: SELECT ..., IF(LENGTH(text)>50, CONCAT(SUBSTRING(text,0,50),'...'), text) as text [EMAIL PROTECTED] wrote: Hi there, Hope you can help me with the following: I have a query and i'm showing the output: echo $row->text; That goes o.k. but the text

RE: [PHP] Limit output of query field

2003-07-05 Thread Audun Larsen
Try this: if(strlen($row->text)>50) { echo substr($row->text,0,47) . "..."; } else { echo $row->text; } - Audun -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Limit output of query field

2003-07-05 Thread Dan Anderson
Look up the function substr. It will allow you to create a string of the first 50 chars from your 400 char string. -Dan On Sat, 2003-07-05 at 09:58, [EMAIL PROTECTED] wrote: > Hi there, > > Hope you can help me with the following: > > I have a query and i'm showing the output: > > echo $row->

[PHP] Limit output of query field

2003-07-05 Thread fkeessen
Hi there, Hope you can help me with the following: I have a query and i'm showing the output: echo $row->text; That goes o.k. but the text is 400 characters long and I only one to show the first 50 characters and at the end showing ... dot's.. Help! Thank you very much! Frank -- PHP Gener

Re: [PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Justin French
Here one way you can do it (untested): Justin on 23/06/03 10:41 AM, Artoo ([EMAIL PROTECTED]) wrote: > Hi, > > How can I start searching for the first space in a string while starting at > say the 150th character? I'm trying to display the first 150 characters of > an article that is store

Re: [PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Adam i Agnieszka Gasiorowski FNORD
Artoo wrote: > For example supose the 150th character is the v in the word "privileges" I > would want to finish displaying the word and end with "privileges" rather > then ending with"priv" How about using the SUBSTRING_INDEX function with delimiter set to ' ' (space). You could sele

[PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Artoo
Hi, How can I start searching for the first space in a string while starting at say the 150th character? I'm trying to display the first 150 characters of an article that is stored in a LONGTEXT filed of a MYSQL database, and should the 150th character be inside a word, I would want to finish dis

Re: [PHP] limit contral

2003-02-19 Thread Ernest E Vogelsinger
At 13:11 19.02.2003, James Shergold said: [snip] >I'm making a script that pulls property (house) from a mysql >database in categories e.g. there cat1, cat2 ect and in each >category I only want to show 10 properties a time then click >next to show the next 1

Re: [PHP] limit contral

2003-02-19 Thread Jono Bacon
James Shergold wrote: Hi, all I'm quite new to php and still finding my way round and came across a problem. I'm making a script that pulls property (house) from a mysql database in categories e.g. there cat1, cat2 ect and in each category I only want to show 10 properties a time then click nex

[PHP] limit contral

2003-02-19 Thread James Shergold
Hi, all I'm quite new to php and still finding my way round and came across a problem. I'm making a script that pulls property (house) from a mysql database in categories e.g. there cat1, cat2 ect and in each category I only want to show 10 properties a time then click next to show the next 10 pr

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Chris Shiflett
--- Chad Day <[EMAIL PROTECTED]> wrote: > if (!isset($startlimit)) { > $startlimit = 0; > } > > $endlimit = $startlimit + 10; > > $yourquery = "your query data LIMIT $startlimit, > $endlimit" > > that should give you enough insight on how to work it. Nice example. As an interesting tidbi

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Chad Day
nt: Friday, February 07, 2003 3:53 PM To: [EMAIL PROTECTED] Subject: [PHP] Limit the amount of returns in a MySQL query Hi All, Imagine I have a giant database table tracking email addresses (I don't but it is the first example that jumps to mind after my recent antispam campaign!). If i do a

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Rankin, Randy
select * from mailaddresses where id < 10 LIMIT 10; -Original Message- From: Daniel Page [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:53 PM To: [EMAIL PROTECTED] Subject: [PHP] Limit the amount of returns in a MySQL query Hi All, Imagine I have a giant database ta

[PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Daniel Page
Hi All, Imagine I have a giant database table tracking email addresses (I don't but it is the first example that jumps to mind after my recent antispam campaign!). If i do a select * from mailaddresses; I will get all of the table. If i do a select * from mailaddresses where id < 10; I will get

Re: [PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Jim MacCormaic
On Friday, January 3, 2003, at 08:59 am, Leif K-Brooks wrote: The limit to tinyint is 255... use int. On Friday, January 3, 2003, at 09:02 am, Jasper Bryant-Greene wrote: Change the field type from TINYINT to SMALLINT or MEDIUMINT. UNSIGNED TINYINT only has a range of 0 thru 255. Thanks s

  1   2   >