php-general Digest 23 Mar 2008 10:22:13 -0000 Issue 5363

2008-03-23 Thread php-general-digest-help
php-general Digest 23 Mar 2008 10:22:13 - Issue 5363 Topics (messages 271991 through 272005): sprintf problem... 271991 by: Richard Re: sprintf problem... (with simplified code ) 271992 by: Richard Re: strange list behavior when replying to message on list 271993

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Mark Weaver
Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior

Re: [PHP] Re: selling gpl software?

2008-03-23 Thread Larry Garfield
On Saturday 22 March 2008, Nilesh Govindrajan wrote: Larry, read the GPL license. It has can be used, distributed, modified under GPL only. And where have I said otherwise? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Nilesh Govindrajan
Mark Weaver wrote: Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Jason Pruim
On Mar 23, 2008, at 2:48 AM, Mark Weaver wrote: Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird

Re: [PHP] sprintf problem... (with simplified code )

2008-03-23 Thread Richard
Sorry, this morning I have gone through everything again, and the simplified example was wrong, but corrected it gives the right answer, however although I'm sure I've done the same with the main script I can not get the correct answer. I need to round each article seperatly so that the Vat

[PHP] Including files for templates

2008-03-23 Thread Terry Burns-Dyson
I'm trying to write a template system, my template is the HTML layout, and my content is fetched from another source. However I don't quite understand how to output the template so that all the variables are parsed by PHP. Simple version of what I'm trying to do; ob_start( ); extract(

Re: [PHP] spider

2008-03-23 Thread Michelle Konzack
Am 2008-03-21 19:15:13, schrieb Børge Holen: wget is fast and easy though... umm I'm on an direct 100mbit connection... wget does it brute Sometimes it is too fast for me... :-) Specialy If I work in Paris on my Dual-STM-4 network... Then, --limit-rate=rate is my friend. Thanks, Greetings

Re: [PHP] spider

2008-03-23 Thread Michelle Konzack
Am 2008-03-21 14:12:04, schrieb Wolf: OK, so I stand corrected there... But has anyone seen a PHP port of wget or is curl the only one of the 2 which does it natively in a compiled version of php with curl? :) AFAIK, there is no native port. But why do you want one? -- wget is working

Re: [PHP] spider

2008-03-23 Thread Michelle Konzack
Am 2008-03-21 13:58:59, schrieb Wolf: Both are pretty effecitve and give pretty much the same results, however with the CURL you can pass other things alone (user:pass) which with wget you can not do. ??? wget http://${USER}:[EMAIL PROTECTED]/ is working and wget --http-user=${USER}

[PHP] Manipulating PDF

2008-03-23 Thread Aschwin Wesselius
Hi, I know it is possible to create PDF's and read them within PHP. But I'm after a method to read a PDF file, analyze it (dump structure or whatever) and being able to modify it in a valid way. And with modifying I don't mean just replacing text. I want to be able to remap layout, change

Re: [PHP] Manipulating PDF

2008-03-23 Thread tedd
At 4:36 PM +0100 3/23/08, Aschwin Wesselius wrote: Again, I'm not after PHPLib or FPDF, since these libraries are either old or insufficient for what I want. Hey, don't discount old things. :-) I can do just about anything I want with those old files. http://webbytedd.com/bb/pdf/ Cheers,

Re: [PHP] Including files for templates

2008-03-23 Thread Daniel Brown
On Sun, Mar 23, 2008 at 6:32 AM, Terry Burns-Dyson [EMAIL PROTECTED] wrote: [snip!] $pageTitle is in the template, it's replaced, $pageContent is in the template, it's replaced. But any variables within the page_to_display are simply output into the page rather than processed by PHP. I

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Daniel Brown
On Sun, Mar 23, 2008 at 1:48 AM, Mark Weaver [EMAIL PROTECTED] wrote: by the way... I thought everyone would be rather interested to know that because of the way the list is setup and running at the moment and not hiding the senders email address, it's extremely easy to harvest addresses

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Daniel Brown
On Sun, Mar 23, 2008 at 5:22 AM, Nilesh Govindrajan [EMAIL PROTECTED] wrote: It is not possible. This is one of the major drawbacks of mailing lists / news groups. It's unnecessary, but it's certainly possible. It's all in the configuration of the mailing list software (mailman, in this

Re: [PHP] sprintf problem...

2008-03-23 Thread Daniel Brown
On Sat, Mar 22, 2008 at 3:37 PM, Richard [EMAIL PROTECTED] wrote: [snip=code!] When I have one item at 10.03, the result is : Total Vat = 1.97 - Total without vat = 10.03 Total with vat = 12.00 but if I have two items at 10.03 the result is : Total vat = 3.93 - Total without vat = 20.06

Re: [PHP] spider

2008-03-23 Thread Børge Holen
On Sunday 23 March 2008 12:12:04 Michelle Konzack wrote: Am 2008-03-21 19:15:13, schrieb Børge Holen: wget is fast and easy though... umm I'm on an direct 100mbit connection... wget does it brute Sometimes it is too fast for me... :-) Specialy If I work in Paris on my Dual-STM-4

[PHP] De-Duplicate A Query Result List

2008-03-23 Thread [EMAIL PROTECTED]
Newbie Question: Using let's say, a contacts database table - I would like to get a unique list of categories for whatever was selected. So, let's say I chose to find everyone in California - then I would like to create a unique list of categories (for California) - with no duplicates - (to be

Re: [PHP] De-Duplicate A Query Result List

2008-03-23 Thread Greg Bowser
Sounds like you want something like the following: SELECT DISTINCT category FROM `contacts` WHERE state='california'; --GREG

[PHP] ob_start: Capturing STDOUT and STDERR

2008-03-23 Thread Greg Sims
Hey There, I looked at the ob_start manual and found a segment of code that can be used to capture the output of a shell script and place it into a log file. One of the entries indicates this should work for both STDOUT and STDERR (29-Mar-2007). I wrote the following piece of code to test it

Re: [PHP] ob_start: Capturing STDOUT and STDERR

2008-03-23 Thread Casey
On Sun, Mar 23, 2008 at 6:08 PM, Greg Sims [EMAIL PROTECTED] wrote: Hey There, I looked at the ob_start manual and found a segment of code that can be used to capture the output of a shell script and place it into a log file. One of the entries indicates this should work for both STDOUT

[PHP] Re: ob_start: Capturing STDOUT and STDERR

2008-03-23 Thread Jonesy
On Sun, 23 Mar 2008 18:08:19 -0700, Greg Sims wrote: Hey There, I looked at the ob_start manual and found a segment of code that can be used to capture the output of a shell script and place it into a log file. One of the entries indicates this should work for both STDOUT and STDERR

[PHP] Date math

2008-03-23 Thread Ron Piggott
I have this math equation this list helped me generate a few weeks ago. The purpose is to calculate how many days have passed between 2 dates. Right now my output ($difference) is 93.958333 days. I am finding this a little weird. Does anyone see anything wrong with the way this is

Re: [PHP] Date math

2008-03-23 Thread Simon Welsh
On 24/03/2008, at 5:17, Ron Piggott wrote: I have this math equation this list helped me generate a few weeks ago. The purpose is to calculate how many days have passed between 2 dates. Right now my output ($difference) is 93.958333 days. I am finding this a little weird. Does anyone

Re: [PHP] Date math

2008-03-23 Thread Casey
On Sun, Mar 23, 2008 at 9:17 PM, Ron Piggott [EMAIL PROTECTED] wrote: I have this math equation this list helped me generate a few weeks ago. The purpose is to calculate how many days have passed between 2 dates. snip $date1 = strtotime($date1); (March 21st 2008) $date2 =