php-general Digest 3 Jan 2009 09:28:31 -0000 Issue 5880

2009-01-03 Thread php-general-digest-help
php-general Digest 3 Jan 2009 09:28:31 - Issue 5880 Topics (messages 285375 through 285392): Re: Sending files via POST 285375 by: Anders Norrbring 285376 by: Daniel Brown 285377 by: Daniel Brown Posting Data? 285378 by: Stephen Alistoun 285379 by:

[PHP] Searching in a long text

2009-01-03 Thread Vicente
Hi all, I'm implementing a search tool to find phrases inside a book. Users will search for some word, then the engine will returns the 3 or 4 lines containing that word, and giving also the book page number. I have the book in plain text and the doubt is about different approaches in order to

Re: [PHP] Searching in a long text

2009-01-03 Thread Yeti
What if the whole text has only 1 line? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Searching in a long text

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 09:26 +0100, Vicente wrote: Hi all, I'm implementing a search tool to find phrases inside a book. Users will search for some word, then the engine will returns the 3 or 4 lines containing that word, and giving also the book page number. I have the book in plain

Re: [PHP] Searching in a long text

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 01:28 -0800, Yeti wrote: What if the whole text has only 1 line? What if? Shouldn't matter. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Searching in a long text

2009-01-03 Thread Richard Heyes
... You could look into using Zend_Search_Lucene, which is part of the Zend framework. It's file based and so doesn't require the use of MySQL. Might make it slightly more portable if that's a concern. It will be a little more work than simply using MySQL, but it would be worth it I think. --

Re[2]: [PHP] Searching in a long text

2009-01-03 Thread Vicente
Richard wrote: You could look into using Zend_Search_Lucene, which is part of the Zend framework. It's file based and so doesn't require the use of MySQL. Might make it slightly more portable if that's a concern. It will be a little more work than simply using MySQL, but it would be worth it

SV: SV: [PHP] Sending files via POST

2009-01-03 Thread Anders Norrbring
Nathan Rixham's original email. Hope it helps! On Thu, Jan 1, 2009 at 09:35, Nathan Rixham nrix...@gmail.com wrote: after having a flick through the source it looks like a limitation of http request; http://pear.php.net/package/HTTP_Request/docs/latest/__filesource/fsour

[PHP] Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Michelle Konzack
Good morning Jim, Thank your for your help, I will now adapt my scripts and test it. And if a user had done a partial download, how can I set the pointer to resume the download? I personaly find websites offering downloads but not resuming very annoying, so I like to do it better... :-) I

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Ashley Sheridan
On Sat, 2009-01-03 at 13:27 +0100, Michelle Konzack wrote: Good morning Jim, Thank your for your help, I will now adapt my scripts and test it. And if a user had done a partial download, how can I set the pointer to resume the download? I personaly find websites offering downloads but

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Eric Butera
On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sat, 2009-01-03 at 13:27 +0100, Michelle Konzack wrote: Good morning Jim, Thank your for your help, I will now adapt my scripts and test it. And if a user had done a partial download, how can I set the

[PHP] Number Punctuator

2009-01-03 Thread Alec Wright
Hey all, is there a php function to punctuate a number? eg 3482957239525 would become 3,482,957,239,525 and 274018 would become 274,018 etc Thanks :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Number Punctuator

2009-01-03 Thread Phpster
Number_format() Bastien Sent from my iPod On Jan 3, 2009, at 10:47 AM, Alec Wright ale...@gmail.com wrote: Hey all, is there a php function to punctuate a number? eg 3482957239525 would become 3,482,957,239,525 and 274018 would become 274,018 etc Thanks :) -- PHP General Mailing List

Re: [PHP] Please point me in the right direction

2009-01-03 Thread tedd
At 8:20 PM -0800 1/2/09, David Knapp wrote: Greetings, I need to create a secure customer section on my site. User name and login would take you to a secured page that displays information like a calendar, downloads, budgets. These sections would be the same but each customer would display

[PHP] Re: Please point me in the right direction

2009-01-03 Thread Al
David Knapp wrote: Greetings, I need to create a secure customer section on my site. User name and login would take you to a secured page that displays information like a calendar, downloads, budgets. These sections would be the same but each customer would display custom content (over 100

[PHP] Re: =.='' what wrong ? just simple code, however error.

2009-01-03 Thread Martin Zvarík
It works as expected on my PHP 5.2.4 LKSunny napsal(a): ? $credithold = 100; for($i=1;$i=1000;$i++){ $credithold -= 0.1; echo $creditholdbr /; } //i don't know why, when run this code, on 91.3 after expect is 91.2, however..91.2001 //who can help me ? and tell me why ?

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Nathan Rixham
rob, are you suggesting that the solution to the problems in the middle east is to be found lurking somewhere on the php.net site? perhaps with a little code example to show us how it's done? lolol great Robert Cummings wrote: I find the PHP site to be one of the best resources around. Maybe

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Nathan Rixham
oooh oooh found it, there's a few solutions actually! array_merge($christianity,$islam); unset($religion); //loads more Nathan Rixham wrote: rob, are you suggesting that the solution to the problems in the middle east is to be found lurking somewhere on the php.net site? perhaps with a little

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 17:55 +, Nathan Rixham wrote: oooh oooh found it, there's a few solutions actually! array_merge($christianity,$islam); unset($religion); //loads more Sounds like a better solution than: ?php die(); ? :) Nathan Rixham wrote: rob, are you suggesting that the

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Dotan Cohen
WTF? Isn't it the Gaza government (Hamas) that chooses to build rockets instead of buying food for it's citizens? So long at Hamas is in charge both the Gaza residents and the Israelis will suffer. Let's hope this finally roots them out for good. By the way, of the 400+ killed in Gaza, about 70

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Behzad
Enjoy ! Be Happy ! Let's free the Gaza! Let's bring there Democracy ! YEAH! Hamas is a terrorist group, and since it is elected by Gaza's people, they are terrorists, too! ... Enough already! For you information: 1) http://en.wikipedia.org/wiki/Sabra_and_Shatila_massacre 2)

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Daniel Brown
On Sat, Jan 3, 2009 at 14:00, Behzad behzad.esl...@gmail.com wrote: Who are we? Vampires or Blinds? Worse. We're geeks. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Dotan Cohen
2009/1/3 Daniel Brown danbr...@php.net: On Sat, Jan 3, 2009 at 14:00, Behzad behzad.esl...@gmail.com wrote: Who are we? Vampires or Blinds? Worse. We're geeks. And we have a troll in our midst. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Dotan Cohen
2009/1/3 Behzad behzad.esl...@gmail.com: since you have modern weapons, equipped with lasers! Did somebody say sharks with frigin' lasers? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Larry Garfield
On Saturday 03 January 2009 1:17:07 pm Dotan Cohen wrote: 2009/1/3 Behzad behzad.esl...@gmail.com: since you have modern weapons, equipped with lasers! Did somebody say sharks with frigin' lasers? No, but we have some ill-tempered sea-bass. -- Larry Garfield la...@garfieldtech.com --

Re: [PHP] Searching in a long text

2009-01-03 Thread Andrew Ballard
On Sat, Jan 3, 2009 at 4:28 AM, Yeti y...@myhich.com wrote: What if the whole text has only 1 line? I would worry more (though probably not much) about the fringe cases where a match spans across lines (or pages) such that it would either prevent a qualifying match from being returned at all,

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Lepidosteus
A six-to-one ratio of terrorists:civilians really is not that bad Ouch. -- Vianney Devreese - Lepidosteus http://lepidosteus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread tedd
At 5:55 PM + 1/3/09, Nathan Rixham wrote: oooh oooh found it, there's a few solutions actually! array_merge($christianity,$islam); unset($religion); I prefer: unlink($the_entire_mess); Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

[PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Michelle Konzack
Am 2009-01-03 10:16:43, schrieb Eric Butera: On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan I don't think this is actually possible. I've never seen it happen before. It would need some sort of dedicated client-side software to recognise exactly how much has been downloaded and then

RE: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Andrés Robinet
-Original Message- From: Behzad [mailto:behzad.esl...@gmail.com] Sent: Thursday, January 01, 2009 12:43 PM To: Zend Framework General; PHP General Mailing List; IxDA Subject: [PHP] Thank you everyone, What a wonderful world Hi List, I would like to appreciate from you all. I

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Eric Butera
On Sat, Jan 3, 2009 at 5:19 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Am 2009-01-03 10:16:43, schrieb Eric Butera: On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan I don't think this is actually possible. I've never seen it happen before. It would need some sort of dedicated

Re: [PHP] IE Problem Detecting Post Variables

2009-01-03 Thread Micah Gersten
Ashley Sheridan wrote: On Fri, 2009-01-02 at 18:06 -0500, Andrew Ballard wrote: On Fri, Jan 2, 2009 at 1:15 PM, Micah Gersten mi...@onshore.com wrote: You might want to consider the button element which allows you to display images, but doesn't send back coordinates. Instead it

[PHP] email app/script/needs...

2009-01-03 Thread bruce
HI... Playing around with an app and I need to implement some functionality allowing a user to email some text. Basically, I want to allow the user to select some text from a dropdown list. I then want to allow the user to edit the text if needed, and to then submit the text for email to a given

[PHP] If I make a mistake logging in, the error shows again even if I enter the right values

2009-01-03 Thread Fred Silsbee
my PHP programs are working great to access Oracle 11g1 and MySQL 5.1 I entered a bad value for user name /passwordand got a message Could not connect: Access denied for user 'landon'@'localhost' (using password: YES) I restarted the script under Firefox 3.0.5 and got the same error message

[PHP] Re: If I make a mistake logging in, the error shows again even if I enter the right values

2009-01-03 Thread Fred Silsbee
--- On Sun, 1/4/09, Fred Silsbee fredsils...@yahoo.com wrote: From: Fred Silsbee fredsils...@yahoo.com Subject: If I make a mistake logging in, the error shows again even if I enter the right values To: php...@lists.php.net, php-general@lists.php.net Date: Sunday, January 4, 2009, 2:45

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Ashley Sheridan
On Sat, 2009-01-03 at 17:39 -0500, Eric Butera wrote: On Sat, Jan 3, 2009 at 5:19 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Am 2009-01-03 10:16:43, schrieb Eric Butera: On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan I don't think this is actually possible. I've never

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Lars Torben Wilson
2009/1/3 Ashley Sheridan a...@ashleysheridan.co.uk: On Sat, 2009-01-03 at 17:39 -0500, Eric Butera wrote: On Sat, Jan 3, 2009 at 5:19 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Am 2009-01-03 10:16:43, schrieb Eric Butera: On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan I

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-03 Thread mike
I actually use $_SERVER['HTTP_CONTENT_RANGE'] in my setup (nginx + php-fpm) - I don't think I get an 'HTTP_RANGE' ... On Sat, Jan 3, 2009 at 9:52 PM, Lars Torben Wilson larstor...@gmail.com wrote: 2009/1/3 Ashley Sheridan a...@ashleysheridan.co.uk: On Sat, 2009-01-03 at 17:39 -0500, Eric