php-general Digest 4 May 2012 12:43:41 -0000 Issue 7800

2012-05-04 Thread php-general-digest-help
php-general Digest 4 May 2012 12:43:41 - Issue 7800 Topics (messages 317763 through 317772): Re: PHP Mailto() - Google now displaying HTML as Plain Text 317763 by: Terry Ally (Gmail) Re: PHP Database Problems -- Code Snippets 317764 by: Ethan Rosenberg PDF Form Field

Re: [PHP] function

2012-05-04 Thread Simon Schick
On Fri, May 4, 2012 at 4:29 AM, Dan Joseph dmjos...@gmail.com wrote: Are these inside classes or anything?  If they're just functions, they should work fine together, example of 2 working functions together: ?php hellotwo(); function helloone() {        echo hi 1; } function

Re: [PHP] PHP Emacs

2012-05-04 Thread Gerardo Benitez
Hi Mihamina, I think that a few number of people use Emacs to write Php, in fact for proffesionals porpuse the people use a IDE for Php, like Netbeams, Eclipse PDT or Zend Studio. Regards, Gerardo On Wed, May 2, 2012 at 8:21 AM, Mihamina Rakotomandimby miham...@rktmb.orgwrote: Hi all, For

Re: [PHP] Best PHP Template System

2012-05-04 Thread Gerardo Benitez
I have used smarty in project with pure php and the template system of Zend Framework in proyects done in Zend Framework, both are fine for me. Gerardo. On Thu, Apr 26, 2012 at 5:48 AM, Simon Schick simonsimc...@googlemail.comwrote: On Thu, Apr 26, 2012 at 12:07 AM, Yared Hufkens

[PHP] Re: function

2012-05-04 Thread Jim Giner
Ron Piggott ron.pigg...@actsministries.org wrote in message news:499A66F0FB394E1DB44F7E0C011CF11C@RonPiggottPC... 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?

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread David OBrien
Google is still your friend On Fri, May 4, 2012 at 9:36 AM, Terry Ally (Gmail) terrya...@gmail.comwrote: Does anyone have a working/example PHP script that calculates driving distances between UK postcodes that they can share? Thanks -- *Terry Ally* Twitter.com/terryally

[PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Ethan Rosenberg
I am sending this again to see if more ideas for solution of this problem are available. Ethan === Dear list - Sorry for the attachment. Here are code snippets --- GET THE DATA FROM INTAKE3: function handle_data() { global $cxn; $query = select * from Intake3

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread Terry Ally (Gmail)
Google works in Javascript extensively - not a language with which I have in-depth experience hence my reason for asking for PHP solution. For example the following will get me a JSON output with the distance in Kms and time. I don't know how to get PHP to read this information and extract just

Re: [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Jim Giner
I don't think posting the same voluminous code is going to generate any better responses. The suggestion to start over and make your insert/retrieve queries fool proof before starting to write some logic into your code was a very good one. Why don't you work on that so that any requests for

Re: [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Jim Giner
Nor will posting to multiple lists.(Sorry to the rest of you - didn't realize it until now.) Jim Giner jim.gi...@albanyhandball.com wrote in message news:c6.f8.38082.efae3...@pb1.pair.com... I don't think posting the same voluminous code is going to generate any better responses. The

[PHP] howto get pgUp, pgDn, delete, home and end keycodes in CLI PHP script

2012-05-04 Thread Andres Gonzalez
I am trying to code a CLI PHP script that will give me the keycodes for these (and other) keyboard keys. I want to basically block until the user presses a single key, then I want to process that event without the user having to press the Enter key after pressing a single key. I have tried

Re: [PHP] howto get pgUp, pgDn, delete, home and end keycodes in CLI PHP script

2012-05-04 Thread David OBrien
 On Fri, May 4, 2012 at 10:48 AM, Andres Gonzalez and...@packetstorm.comwrote: I am trying to code a CLI PHP script that will give me the keycodes for these (and other) keyboard keys. I want to basically block until the user presses a single key, then I want to process that event without the

Re: [PHP] howto get pgUp, pgDn, delete, home and end keycodes in CLI PHP script

2012-05-04 Thread Andres Gonzalez
David, Thank you for your response. The code does not run on my box. I get an undefined variable error on the: if ($buffer != ) { line. Also, I need the code to block until the user presses a single key. Plus, the fgets() routine does not return extended codes for pgUp, pgDn, etc, only codes

Re: [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Govinda
Ethan, before you get frustrated or feel abandoned, let me *sincerely* try to help: Here is honestly what I am utterly convinced you need to do to get any where in the medium/long run: Break everything down into very small steps. Making web apps is just building a whole lot of

[PHP] RE: [PHP-DB] [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Gavin Chalkley
Ethan, You have been given advise and break down on your code. Have you taken the advise given? Which part of the code isn't working? Not which chunk, but break it down and show which part BR, Gav -Original Message- From: Ethan Rosenberg [mailto:eth...@earthlink.net] Sent: 04 May

Re: [PHP] howto get pgUp, pgDn, delete, home and end keycodes in CLI PHP script

2012-05-04 Thread Stuart Dallas
On 4 May 2012, at 15:48, Andres Gonzalez wrote: I am trying to code a CLI PHP script that will give me the keycodes for these (and other) keyboard keys. I want to basically block until the user presses a single key, then I want to process that event without the user having to press the

Re: [PHP] howto get pgUp, pgDn, delete, home and end keycodes in CLI PHP script

2012-05-04 Thread Andres Gonzalez
Thank you for your reply Stuart, I will look at ncurses extensions. -Andres Stuart Dallas wrote: On 4 May 2012, at 15:48, Andres Gonzalez wrote: I am trying to code a CLI PHP script that will give me the keycodes for these (and other) keyboard keys. I want to basically block until the

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread Mike Mackintosh
On Friday, May 4, 2012 at 10:18, Terry Ally (Gmail) wrote: Google works in Javascript extensively - not a language with which I have in-depth experience hence my reason for asking for PHP solution. For example the following will get me a JSON output with the distance in Kms and time. I don't

Re: [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Marco Behnke
Am 04.05.2012 16:09, schrieb Ethan Rosenberg: function handle_data() { global $cxn; What does this function? It neither takes any parameters nor returns any value. And it does not write back anything to its global $cxn. So it is quite useless and can be deleted. $query = select * from

[PHP] Running through an enormous SQL file

2012-05-04 Thread Brian Dunning
I have a script that downloads a 267MB SQL file (it creates and loads a MySQL database). Any idea how to do this? Obviously I'm not going to get a file that size into memory to loop through. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread Bastien
Bastien Koert On 2012-05-04, at 7:36 PM, Brian Dunning br...@briandunning.com wrote: I have a script that downloads a 267MB SQL file (it creates and loads a MySQL database). Any idea how to do this? Obviously I'm not going to get a file that size into memory to loop through. -- PHP

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 6:36 PM, Brian Dunning br...@briandunning.com wrote: I have a script that downloads a 267MB SQL file (it creates and loads a MySQL database). Any idea how to do this? Obviously I'm not going to get a file that size into memory to loop through. Is there any need to use

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 9:18 AM, Terry Ally (Gmail) terrya...@gmail.com wrote: Google works in Javascript extensively - not a language with which I have in-depth experience hence my reason for asking for PHP solution. For example the following will get me a JSON output with the distance in Kms

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9: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? I

Re: [PHP] PHP Emacs

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 7:43 AM, Gerardo Benitez gerardobeni...@gmail.com wrote: Hi Mihamina, I think that a few number of people use Emacs to write Php, in fact for proffesionals porpuse the people use a IDE for Php, like Netbeams, Eclipse PDT or Zend Studio. Regards, Gerardo On Wed, May

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

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 11:37 PM, EPA WC epawc...@gmail.com wrote: Hi List, I am trying to write a crawler to go through web pages at http://www.freebookspot.es/CompactDefault.aspx?Keyword=. But I am not quite familiar with how asp uses _doPostBack function with the next button below the book

Re: [PHP] function

2012-05-04 Thread Jim Giner
But the OP says function is defined inside a different function. Your theories to a solution don't fit that problem. tamouse mailing lists tamouse.li...@gmail.com wrote in message news:cahuc_t-416_-lpcn3mo8qqxwrh4pnq5fmwouhwpdk+hmkgh...@mail.gmail.com... On Thu, May 3, 2012 at 9:12 PM, Ron

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread Brian Dunning
How would you launch that from PHP? On May 4, 2012, at 6:11 PM, tamouse mailing lists wrote: Is there any need to use PHP with this at all? If it's already in SQL, can't you just feed it to mysql? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] get content rss feed

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 7:00 AM, Doeke Wartena clankil...@gmail.com wrote: I try to get the content from the following rss feed http://www.adafruit.com/blog/feed/ I want to store it in a database in order to use it for a school assignment. If i look in my browser to the feed then i see content

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread tamouse mailing lists
Please put replies at BOTTOM On Fri, May 4, 2012 at 9:24 PM, Brian Dunning br...@briandunning.com wrote: How would you launch that from PHP? On May 4, 2012, at 6:11 PM, tamouse mailing lists wrote: Is there any need to use PHP with this at all? If it's already in SQL, can't you just feed it

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 9:18 PM, Jim Giner jim.gi...@albanyhandball.com wrote: But the OP says function is defined inside a different function.  Your theories to a solution don't fit that problem. [snip] But the OP says function is defined inside a different function.  Your theories to a

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9: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? I

Re: [PHP] code deployment through php

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 5:23 AM, rene7705 rene7...@gmail.com wrote: On Wed, May 2, 2012 at 11:47 AM, rene7705 rene7...@gmail.com wrote: I can't use anything like git on my shared hoster. But I suppose I could use something like git at home, and use a sync script like I posted in my OP on the