Re: [PHP] code deployment through php

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 5:23 AM, rene7705 wrote: > On Wed, May 2, 2012 at 11:47 AM, rene7705 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 shared hoster. >> >> >> > Mayb

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9:12 PM, Ron Piggott 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 am essentially programmin

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 9:18 PM, Jim Giner 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 solution don't fit that pro

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 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 to mysql? It

Re: [PHP] get content rss feed

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 7:00 AM, Doeke Wartena 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 and description

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: http://www.php.net/u

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" wrote in message news:cahuc_t-416_-lpcn3mo8qqxwrh4pnq5fmwouhwpdk+hmkgh...@mail.gmail.com... On Thu, May 3, 2012 at 9:12 PM, Ron Piggott wrote: Where i

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 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 list to ad

Re: [PHP] PHP & Emacs

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 7:43 AM, Gerardo Benitez 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 2, 2012 at 8:2

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9:12 PM, Ron Piggott 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 am essentially programmin

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) 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 do

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 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 PHP with this at all

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 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 General Mailing List

[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] 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 I

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 d

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 us

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

[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 201

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 layers/colle

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 code

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 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 pr

[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 sev

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"" 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 suggestion to start over and

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 he

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 th

[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 w

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) wrote: > 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 > Facebook.com/terryally > ~

[PHP] Re: function

2012-05-04 Thread Jim Giner
""Ron Piggott"" 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? How am I able to do this?

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 wrote: > On Thu, Apr 26, 2012 at 12:07 AM, Yared Hufkens wrote: > > > > Why use an external en

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 wrote: > Hi all, > > For curiosity, are th