php-general Digest 3 May 2012 20:05:51 -0000 Issue 7799

2012-05-03 Thread php-general-digest-help
php-general Digest 3 May 2012 20:05:51 - Issue 7799 Topics (messages 317758 through 317762): Re: Retrieve pages from an ASP driven site 317758 by: Terry Ally (Gmail) 317759 by: Lester Caine 317761 by: EPA WC Why might fclose() block? 317760 by: Andy

Re: [PHP] date conversion/extraction issues

2012-05-03 Thread Jim Lucas
On 05/02/2012 02:36 PM, Haluk Karamete wrote: This is my code and the output is right after that... $PDate = $row['PDate']; //row is tapping into ms-sql date field. //and the ms-sql data field has a value like this for the PDate; //07/12/2001 $PDate = $PDate-date; echo h1[, $PDate , ]/h1; echo

Re: [PHP] date conversion/extraction issues

2012-05-03 Thread Terry Ally (Gmail)
Haluk, After you retrieve the date from the database you still have to convert it from a string to time and then to a date. Try: ?php echo date(l j M Y, , strtotime($row['PDate'])) ; ? Terry On 2 May 2012 22:36, Haluk Karamete halukkaram...@gmail.com wrote: This is my code and the output is

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread Terry Ally (Gmail)
Tom, Here is how you would paginate in PHP. // // Number of records to show per page: $display = 4; // Determine how many records there are. if (isset($_GET['np'])) { $num_pages = $_GET['np']; } else { $query = SELECT * FROM mytable; $query_result =

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread Lester Caine
Terry Ally (Gmail) wrote: Here is how you would paginate in PHP. Terry - Tom is not trying to create this in PHP, but read existing ASP pages. Tom - I don't think that it's simply a matter of the ASP code here, but rather how they have constructed the set of information they are sending

[PHP] Why might fclose() block?

2012-05-03 Thread Andy Theuninck
I'm currently seeing this in 5.3.10, although it's an intermittent problem I've seen earlier versions too. Occasionally I get a maximum execution time error when calling fclose() on a parallel port file descriptor. Code looks like this: $fp = fopen('/dev/lp0','w'); if ($fp){

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread EPA WC
Thanks Lester. On Thu, May 3, 2012 at 3:49 AM, Lester Caine les...@lsces.co.uk wrote: Terry Ally (Gmail) wrote: Here is how you would paginate in PHP. Terry - Tom is not trying to create this in PHP, but read existing ASP pages. Tom - I don't think that it's simply a matter of the ASP

Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text

2012-05-03 Thread Gerardo Benitez
Do you know if the mailto script allow set headers? Probably you must set a html header, something like this $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n; Regards, Gerardo. On Tue, May 1, 2012 at 5:14 PM, Marco Behnke ma...@behnke.biz wrote: Am 29.04.2012 22:31, schrieb

Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text

2012-05-03 Thread Terry Ally (Gmail)
Hi all, This question is now closed. There is nothing wrong with my script. It was an error by Google when they switched over to the new-look email and have since rectified the issue and all is back to normal. Thanks to all who have responded. Terry On 3 May 2012 21:05, Gerardo Benitez

Re: [PHP] PHP Database Problems -- Code Snippets

2012-05-03 Thread Ethan Rosenberg
At 06:47 PM 5/2/2012, Matijn Woudt wrote: On Wed, May 2, 2012 at 11:43 PM, Ethan Rosenberg eth...@earthlink.net wrote: Dear list - Sorry for the attachment. Â Here are code snippets --- Ethan, I don't want to sound rude, but it appears to me you don't have any understanding of what you're

[PHP] PDF Form Field

2012-05-03 Thread Dan Joseph
Hi, I've spent hours researching this with no luck. I have a PDF with a form field that I want to populate and output the PDF. Can someone point me in the right direction? Can FPDF do this natively, or I need something else? My host doesn't have PDFLib installed, so that's not an option.

Re: [PHP] PDF Form Field

2012-05-03 Thread David OBrien
On May 3, 2012 9:08 PM, David OBrien dgobr...@gmail.com wrote: On May 3, 2012 8:53 PM, Dan Joseph dmjos...@gmail.com wrote: Hi, I've spent hours researching this with no luck. I have a PDF with a form field that I want to populate and output the PDF. Can someone point me in the

Re: [PHP] PDF Form Field

2012-05-03 Thread David OBrien
On May 3, 2012 8:53 PM, Dan Joseph dmjos...@gmail.com wrote: Hi, I've spent hours researching this with no luck. I have a PDF with a form field that I want to populate and output the PDF. Can someone point me in the right direction? Can FPDF do this natively, or I need something else?

Re: [PHP] PDF Form Field

2012-05-03 Thread Dan Joseph
On Thu, May 3, 2012 at 9:13 PM, David OBrien dgobr...@gmail.com wrote: I just found fpdfi using Google. It looks like what you need Wow, you said the key phrase in your last e-mail, 'text on top'. I didn't think of that. fpdi/fpdf does that like a charm, thanks! -- -Dan Joseph

[PHP] function

2012-05-03 Thread Ron Piggott
I need to access a FUNCTION I programmed within a different FUNCTION. Are these able to be passed like a variable? Or are they able to become like a $_SESSION variable in nature? How am I able to do this? I am essentially programming: === function name( $flag1, $flag2 ) { # some PHP

Re: [PHP] function

2012-05-03 Thread Dan Joseph
On Thu, May 3, 2012 at 10:12 PM, Ron Piggott ron.pigg...@actsministries.org wrote: I need to access a FUNCTION I programmed within a different FUNCTION. Are these able to be passed like a variable? Or are they able to become like a $_SESSION variable in nature? How am I able to do this?