Re: [PHP] system command

2007-10-26 Thread Ronald Wiplinger
Instruct ICC wrote: Use double quotes to get the value of $a or else you get the literal string "$a". $aa=system("lynx -dump http://api.hostip.info/country.php?ip=$a",$location); or $aa=system('lynx -dump http://api.hostip.info/country.php?ip='.$a,$location); Thanks! 1st solution did

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread John A DAVIS
simplexml won't work for our version of PHP. planning on upgrading once we get the new server   >>> "mike" <[EMAIL PROTECTED]> 10/26/2007 4:42:09 PM >>> On 10/26/07, John A DAVIS <[EMAIL PROTECTED]> wrote:>>> this works:> $xml_data = file('xml_edwr2.xml');> var_dump($xml_data);>> I can get t

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS <[EMAIL PROTECTED]> wrote: > > > simplexml won't work for our version of PHP. planning on upgrading once we > get the new server then i guess if you need it now, it's probably easiest to look for a PEAR module. however... gophp5.org! :) -- PHP General Mailing List (htt

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS <[EMAIL PROTECTED]> wrote: > > > this works: > $xml_data = file('xml_edwr2.xml'); > var_dump($xml_data); > > I can get the var_dump to work for 1 sample, but I guess there are a many > samples in one xml file which turns into something like this(so, there is no > way for m

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread John A DAVIS
this works: $xml_data = file('xml_edwr2.xml');var_dump($xml_data);   I can get the var_dump to work for 1 sample, but I guess there are a many samples in one xml file which turns into something like this(so, there is no way for me to reference a "column"):   array(9780) { [0]=> string(19)

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS <[EMAIL PROTECTED]> wrote: > > > I've found simple examples on the web that work a simple XML file (song, > title, etc) but I need one that will parse an XML file into elements of an > array. And then, I need to reference these elements to validate against a > database. Th

[PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread John A DAVIS
I've found simple examples on the web that work a simple XML file (song, title, etc) but I need one that will parse an XML file into elements of an array. And then, I need to reference these elements to validate against a database. The data has to do with drinking water lab samples:   - <

Re: [PHP] RE: [Ticket #29] [PHP] Executing PHP

2007-10-26 Thread Jim Lucas
Daniel Brown wrote: On 10/26/07, Instruct ICC <[EMAIL PROTECTED]> wrote: What the hell is this? Is Charlie Schulz trying to get me to click on this link? Date: Fri, 26 Oct 2007 15:08:10 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Ticket #29] [PHP] Executing PHP Your ticket h

Re: [PHP] Slashes, include, AJAX? {SOLVED}

2007-10-26 Thread Rodrigo Poblanno Balp
Nathan Nobbe wrote: On 10/26/07, *Rodrigo Poblanno Balp* <[EMAIL PROTECTED] > wrote: I get something like this is the content<\/div> it seems like the '/' is being escaped, but I need it as HTML. how are you using the json object on the client-side after its

Re: [PHP] RE: [Ticket #29] [PHP] Executing PHP

2007-10-26 Thread Daniel Brown
On 10/26/07, Instruct ICC <[EMAIL PROTECTED]> wrote: > > What the hell is this? > Is Charlie Schulz trying to get me to click on this link? > > > Date: Fri, 26 Oct 2007 15:08:10 -0400 > > From: [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > > Subject: [Ticket #29] [PHP] Executing PHP > > > > Your ti

RE: [PHP] Executing PHP

2007-10-26 Thread Instruct ICC
> > Well on Mac/Unix/Linux you could type "ps" at the terminal to see the path > > to the running processes or "which php" to see which one you would invoke. > > > > Maybe you can upgrade to a Mac? > > > > Parallels running Windows XP didn't show me such info in the Task Manager; > > sorry. > >

[PHP] RE: [Ticket #29] [PHP] Executing PHP

2007-10-26 Thread Instruct ICC
What the hell is this? Is Charlie Schulz trying to get me to click on this link? > Date: Fri, 26 Oct 2007 15:08:10 -0400 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [Ticket #29] [PHP] Executing PHP > > Your ticket has been submitted. Please reply to this email (keeping the > s

RE: [PHP] system command

2007-10-26 Thread Instruct ICC
>> Use double quotes to get the value of $a or else you get the literal string >> "$a". >> >> $aa=system("lynx -dump http://api.hostip.info/country.php?ip=$a",$location); >> or >> $aa=system('lynx -dump http://api.hostip.info/country.php?ip='.$a,$location); >> >> > Thanks! 1st solution did not wo

Re: [PHP] Executing PHP

2007-10-26 Thread Philip Thompson
On 10/26/07, Instruct ICC <[EMAIL PROTECTED]> wrote: > > > Well on Mac/Unix/Linux you could type "ps" at the terminal to see the path > to the running processes or "which php" to see which one you would invoke. > > Maybe you can upgrade to a Mac? > > Parallels running Windows XP didn't show me such

RE: [PHP] Executing PHP

2007-10-26 Thread Instruct ICC
Well on Mac/Unix/Linux you could type "ps" at the terminal to see the path to the running processes or "which php" to see which one you would invoke. Maybe you can upgrade to a Mac? Parallels running Windows XP didn't show me such info in the Task Manager; sorry. > Date: Thu, 25 Oct 2007 15:

Re: [PHP] unable to find running php script

2007-10-26 Thread Daniel Brown
On 10/26/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2007-10-26 at 13:22 -0400, Daniel Brown wrote: > > On 10/26/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Fri, 2007-10-26 at 18:20 +0200, Jochem Maas wrote: > > > > ah yes ... Dan said it better :) but then he is a bigger n

Re: [PHP] unable to find running php script

2007-10-26 Thread Robert Cummings
On Fri, 2007-10-26 at 13:22 -0400, Daniel Brown wrote: > On 10/26/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-10-26 at 18:20 +0200, Jochem Maas wrote: > > > ah yes ... Dan said it better :) but then he is a bigger nerd than me ... > > > he has a truck which is more dalek than pi

Re: [PHP] unable to find running php script

2007-10-26 Thread Daniel Brown
On 10/26/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2007-10-26 at 18:20 +0200, Jochem Maas wrote: > > ah yes ... Dan said it better :) but then he is a bigger nerd than me ... > > he has a truck which is more dalek than pickup :-P > > *hehe* My favourite Dalek line... > > Dalek: C

Re: [PHP] unable to find running php script

2007-10-26 Thread Robert Cummings
On Fri, 2007-10-26 at 18:20 +0200, Jochem Maas wrote: > ah yes ... Dan said it better :) but then he is a bigger nerd than me ... > he has a truck which is more dalek than pickup :-P *hehe* My favourite Dalek line... Dalek: Cyrbermen are only good for one thing! Cyberman: What is that?

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Thijs Lensselink
Jochem Maas wrote: > T.Lensselink wrote: > > > ... > > >>> php -r 'function foo() { static $x = 1; echo "foo ", $x++, "\n"; foo(); } >>> foo();' >>> >>> ... >>> >>> Running your code shows that there is a limit. Although it doesn't throw >>> an >>> error.

Re: [PHP] unable to find running php script

2007-10-26 Thread Daniel Brown
On 10/26/07, Jean-Christophe Roux <[EMAIL PROTECTED]> wrote: > Hello, > I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler > I launched a script, which contains an infinite loop, from bash typing: > php script.php > > I'd like to end that process. when typing ps -A, I don't see

Re: [PHP] unable to find running php script

2007-10-26 Thread Jochem Maas
ah yes ... Dan said it better :) but then he is a bigger nerd than me ... he has a truck which is more dalek than pickup :-P Daniel Brown wrote: > On 10/26/07, Jean-Christophe Roux <[EMAIL PROTECTED]> wrote: >> Hello, >> I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler >> I

Re: [PHP] unable to find running php script

2007-10-26 Thread Jochem Maas
Jean-Christophe Roux wrote: > Hello, > I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler > I launched a script, which contains an infinite loop, from bash typing: > php script.php > > I'd like to end that process. when typing ps -A, try ps -e, or run top and look there (you

[PHP] unable to find running php script

2007-10-26 Thread Jean-Christophe Roux
Hello, I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler I launched a script, which contains an infinite loop, from bash typing: php script.php I'd like to end that process. when typing ps -A, I don't see it. Is it inside the Apache server? How could I reach it? I am quite

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Robert Cummings
On Fri, 2007-10-26 at 17:43 +0200, Jochem Maas wrote: > jenix wrote: > > Hi, > > > > When using CURL to access a page with frames I get the "Your browser does > > not appear to support frames" error. How can get around this? Is there > > special header info that can be added? > > try spoofing th

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Eric Butera
On 10/24/07, jenix <[EMAIL PROTECTED]> wrote: > > Hi, > > When using CURL to access a page with frames I get the "Your browser does > not appear to support frames" error. How can get around this? Is there > special header info that can be added? Also, if I were using fopen can > anyone offer sample

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Jochem Maas
jenix wrote: > Hi, > > When using CURL to access a page with frames I get the "Your browser does > not appear to support frames" error. How can get around this? Is there > special header info that can be added? try spoofing the USer Agent string - i.e. tell the server your 'Firefox' rather than

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Daniel Brown
On 10/26/07, T. Lensselink <[EMAIL PROTECTED]> wrote: > > > On Fri, 26 Oct 2007 14:32:42 +0200, Jochem Maas <[EMAIL PROTECTED]> > wrote: > > Paul Scott wrote: > >> On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: > >> > >>> since when is there an arbitrary maximum recursion limit??? > >> > >>

Re: [PHP] Question

2007-10-26 Thread Daniel Brown
On 10/26/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > 2007. 10. 26, péntek keltezéssel 15.26-kor arash moosavi ezt írta: > > I have Question In PHP Where Can I send it to Give my answer? [snip!] http://web.ics.purdue.edu/~ssanty/cgi-bin/eightball.cgi -- Daniel P. Brown [office] (570-) 587-

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
T.Lensselink wrote: > ... >> php -r 'function foo() { static $x = 1; echo "foo ", $x++, "\n"; foo(); } >> foo();' >> >> ... >> >>> Running your code shows that there is a limit. Although it doesn't throw >> an >>> error. >>> It just stops after n recursive calls: >>> >>> php4 recursive calls:

Re: [PHP] returning an array from a function?

2007-10-26 Thread tedd
At 12:09 AM -0700 10/26/07, [EMAIL PROTECTED] wrote: Hello all, function convert( $latitude, $longitude ) { $mve_latitude = $latitude; // actually other processing within this function determines this $mve_longitude = $longitude // actually other processing within this function determines thi

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Eric Butera
On 10/25/07, Sascha Braun <[EMAIL PROTECTED]> wrote: > What is the cause for that error: > > Fatal error: Maximum function nesting level of '100' reached, aborting! > in /home/Projekte/spectral/modules/xml_mm/classes/xml_mm.class.php on > line 118 > > Thank you! > > Sascha > > -- > PHP General Mail

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread T . Lensselink
On Fri, 26 Oct 2007 16:12:25 +0200, Jochem Maas <[EMAIL PROTECTED]> wrote: > T.Lensselink wrote: >> >> On Fri, 26 Oct 2007 14:32:42 +0200, Jochem Maas <[EMAIL PROTECTED]> >> wrote: >>> Paul Scott wrote: On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: > since when is there an a

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
T.Lensselink wrote: > > On Fri, 26 Oct 2007 14:32:42 +0200, Jochem Maas <[EMAIL PROTECTED]> > wrote: >> Paul Scott wrote: >>> On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: >>> since when is there an arbitrary maximum recursion limit??? >>> Since forever... ;) >> thats you think, perso

Re: [PHP] Executing PHP

2007-10-26 Thread Stut
Philip Thompson wrote: On 10/25/07, Stut <[EMAIL PROTECTED]> wrote: Philip Thompson wrote: Hi. Feel free to tell me this is a "duh" question. I don't know which PHP executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I tell? I am on a Win2k3 server running PHP5 (manual inst

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread T . Lensselink
On Fri, 26 Oct 2007 14:32:42 +0200, Jochem Maas <[EMAIL PROTECTED]> wrote: > Paul Scott wrote: >> On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: >> >>> since when is there an arbitrary maximum recursion limit??? >> >> Since forever... ;) > > thats you think, personally I test this kind of

Re: [PHP] e-mail code

2007-10-26 Thread Jochem Maas
arash moosavi wrote: > First: how can I write php code that alert me when I have new mail? > such as Gmail first you read lots about php and programming, whilst your doing that you you try out lots of code to see what it does ... eventually your understanding gets to a level where you are capable

Re: [PHP] Slashes, include, AJAX?

2007-10-26 Thread Nathan Nobbe
On 10/26/07, Rodrigo Poblanno Balp <[EMAIL PROTECTED]> wrote: > > I get something like this is the content<\/div> > it seems like the '/' is being escaped, but I need it as HTML. > how are you using the json object on the client-side after its sent by the server? below is a json snippet from an a

[PHP] e-mail code

2007-10-26 Thread arash moosavi
First: how can I write php code that alert me when I have new mail? such as Gmail Second:Where can I find "libgmailer" sample code? for example reading new mail or sending mail and more.. Thank You

Re: [PHP] Executing PHP

2007-10-26 Thread Philip Thompson
On 10/25/07, Stut <[EMAIL PROTECTED]> wrote: > > Philip Thompson wrote: > > Hi. Feel free to tell me this is a "duh" question. I don't know which > PHP > > executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I > > tell? > > > > I am on a Win2k3 server running PHP5 (manual install)

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
Paul Scott wrote: > On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: > >> since when is there an arbitrary maximum recursion limit??? > > Since forever... ;) thats you think, personally I test this kind of thing when Im not sure: php -r 'function foo() { static $x = 1; echo "foo ", $x++, "

Re: [PHP] Question

2007-10-26 Thread Zoltán Németh
2007. 10. 26, péntek keltezéssel 15.26-kor arash moosavi ezt írta: > I have Question In PHP Where Can I send it to Give my answer? for example to this list ;) (it's not sure you will get the exact answer you want, but the chances are pretty good) greets Zoltán Németh -- PHP General Mailing List

Re: [PHP] Question

2007-10-26 Thread Dan Shirah
This is a PHP users mailing list. If you have a question, you can send it to php-general@lists.php.net and whoever can help you with it will reply. On 10/26/07, arash moosavi <[EMAIL PROTECTED]> wrote: > > I have Question In PHP Where Can I send it to Give my answer? >

[PHP] Question

2007-10-26 Thread arash moosavi
I have Question In PHP Where Can I send it to Give my answer?

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Paul Scott
On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: > since when is there an arbitrary maximum recursion limit??? Since forever... ;) I thought that it was at 60 though... --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disc

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
Larry Garfield wrote: > If I had to venture a guess, you nested 100 functions (called 100 functions > in > a stack), and therefore reached the maximum limit in PHP. That is, you > overflowed the stack. You may have a recursion problem, especially if you're > using an XML parser that is not th

Re: [PHP] cant send mail

2007-10-26 Thread Stut
Please include the list when replying. [EMAIL PROTECTED] wrote: The problem is I am the mail server administrator also. This is a small company of 4 . That may be so, but this is a PHP mailing list. I don't mean to sound harsh, but if you need help configuring a mail server this is not the

[PHP] cant send mail

2007-10-26 Thread Diana
The problem is I am the mail server administrator also. This is a small company of 4 . -- Diana Castillo Tsanalytics S.A. Tel: 34 913 595 436 Fax: 34 913 595 439 Mov: 34 609 954 536 [EMAIL PROTECTED] www.tsanalytics.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > salestax(15.00,.075); > echo "" . co

Re: [PHP] Fatal error when calling nested function

2007-10-26 Thread Kefaleas Stavros
Edward Kay wrote: Here's the list : I get the following error : *Fatal error*: Call to undefined function convert_pound() in ...*Untitled-1.php* on line *18 *line 18 is this one : echo convert_pound(15); From http://www.daaq.net/old/php/index.php?page=php+adv+functions&parent=php+flo

Re: [PHP] Fatal error when calling nested function

2007-10-26 Thread Kefaleas Stavros
Edward Kay wrote: Here's the list : I get the following error : *Fatal error*: Call to undefined function convert_pound() in ...*Untitled-1.php* on line *18 *line 18 is this one : echo convert_pound(15); From http://www.daaq.net/old/php/index.php?page=php+adv+functions&parent=php+flo

RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> Here's the list : > > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > echo convert_po

[PHP] Fatal error when calling nested function

2007-10-26 Thread Kefaleas Stavros
Here's the list : I get the following error : *Fatal error*: Call to undefined function convert_pound() in ...*Untitled-1.php* on line *18 *line 18 is this one : echo convert_pound(15); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pspell needed for Googiespell?

2007-10-26 Thread Merlin
Merlin schrieb: Hello everybody, I am trying to get googiespell running but it looks like I do need PHP5 installed with pspell. Am I right? The doc's on the site are not clear about this. I am currently running php 4.x The doc page lists GSpellerServer, but it makes the impression that this is

[PHP] Pspell needed for Googiespell?

2007-10-26 Thread Merlin
Hello everybody, I am trying to get googiespell running but it looks like I do need PHP5 installed with pspell. Am I right? The doc's on the site are not clear about this. I am currently running php 4.x The doc page lists GSpellerServer, but it makes the impression that this is optional. http:/

Re: [PHP] returning an array from a function?

2007-10-26 Thread Simon Welsh
$mve_array = convert( $latitude, $longitude ); or, in convert(), before the first call to $mve_array: global $mve_array; On 26/10/2007, at 8:09, [EMAIL PROTECTED] wrote: Hello all, function convert( $latitude, $longitude ) { $mve_latitude = $latitude; // actually other processing within th

[PHP] returning an array from a function?

2007-10-26 Thread info
Hello all, function convert( $latitude, $longitude ) { $mve_latitude = $latitude; // actually other processing within this function determines this $mve_longitude = $longitude // actually other processing within this function determines this $mve_both = $mve_latitude . ", " . $mve_longitude; //