[PHP] get question

2012-08-27 Thread Jack S
Hello All, Trying to figure out why when I include the page that contains this code, I'm not able to get the $calling_page populated with any values. Any help appreciated... "; } elseif ($calling_page == "index") { $title = "Title 2 - $calling_page"; $body = ""; # Non S

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

[PHP] get content rss feed

2012-05-02 Thread Doeke Wartena
Hi all, 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, however if i try to get them with php then descripti

Re: [PHP] Get all the keys from a hierarchical hash

2011-06-24 Thread Fatih P.
use recursive calls to fetch them all in one array and there will be memory cost. refer array_keys function: http://php.net/manual/en/function.array-keys.php not sure but this should be working. function *get_keys_recursive*($arr) { while (list($k, $v) = each($arr)) { if (is_array($v)

[PHP] Get all the keys from a hierarchical hash

2011-06-23 Thread Scott Baker
I have a multi-tier hash (see below) and I'd like to be "search" the hash for a given $id, and return that section, regardless of how many layers deep it is. Sort of like how xpath works? Once I have that I'd like get ALL the children of a given node. So I could ask for 86, and get 36, 38, 56, etc

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-16 Thread Mattias Thorslund
I think the documentation is a bit unclear about the fact that "colors" and "channels" are the same thing here. The line about bits should probably say "bits is the number of bits for each *channel*". Mattias On 06/15/2011 11:11 PM, Nam Gi VU wrote: Thank you Mattias, I'll look at `channels`

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-15 Thread Nam Gi VU
Thank you Mattias, I'll look at `channels` again. Regards, Nam On Thu, Jun 16, 2011 at 1:06 PM, Mattias Thorslund wrote: > On 06/15/2011 10:11 PM, Nam Gi VU wrote: > >> Hi everyone, >> >> In PHP code, given an .png image path, I need to detect the bit-depth of >> that image. How can I do tha

Re: [PHP] How to PHP get bit depth of a given PNG image file?

2011-06-15 Thread Mattias Thorslund
On 06/15/2011 10:11 PM, Nam Gi VU wrote: Hi everyone, In PHP code, given an .png image path, I need to detect the bit-depth of that image. How can I do that? I've tried to use getImageSize() and read the bits as below sample code but it always returns '8' for 24-bits/32-bits image. Reading

[PHP] How to PHP get bit depth of a given PNG image file?

2011-06-15 Thread Nam Gi VU
Ham de lay bits cua image public static function getBits($image) { $info = getImageSize($image); return $info['bits']; } } Hope to hear from all of you! Regards, Nam. p.s I also post this issue on stackoverflow.com which is here<http://stackoverflow.com/ques

Re: [PHP] get classname without namespace

2010-05-30 Thread Tanel Tammik
"Adam Richardson" wrote in message news:aanlktin0wqqlgwgm2lowcdv4i0c6bzsbfxhjwxv_j...@mail.gmail.com... > On Sat, May 29, 2010 at 4:20 PM, Tanel Tammik wrote: > >> Hi, >> >> is there a way to get the called classname without the namespace? >> >> > //PHP 5.3.x >> namespace some\where; >> >> abst

Re: [PHP] get classname without namespace

2010-05-30 Thread Adam Richardson
On Sat, May 29, 2010 at 4:20 PM, Tanel Tammik wrote: > Hi, > > is there a way to get the called classname without the namespace? > > //PHP 5.3.x > namespace some\where; > > abstract class ParentClass { > public static function name() { >return strtolower(get_called_class()); > } > > publi

Re: [PHP] get classname without namespace

2010-05-29 Thread Nilesh Govindarajan
On Sun, May 30, 2010 at 1:50 AM, Tanel Tammik wrote: > Hi, > > is there a way to get the called classname without the namespace? > > //PHP 5.3.x > namespace some\where; > > abstract class ParentClass { >  public static function name() { >    return strtolower(get_called_class()); >  } > >  public

[PHP] get classname without namespace

2010-05-29 Thread Tanel Tammik
Hi, is there a way to get the called classname without the namespace? the result i need: childclass the result i get: some\where\childclass also is it possible to get the name() into the static variable if only static method is called? Br Tanel -- PHP General Mailing List (http://www.ph

Re: [PHP] Get Power Saving Settings of the Server

2010-04-20 Thread kranthi
>> Your server management software may provide a way to get this information >> either through the command line or through a network interface Using exec('gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_display_ac') helped. Thanks -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Get Power Saving Settings of the Server

2010-04-19 Thread Richard
Hi, > My PHP script is running as CLI. Can I get the Power Management > Settings of the server ? > > I am using PHP 5.3.2 on Fedora 12 Machine (2.6.32.10-90.fc12.i686) Your server management software may provide a way to get this information either through the command line or through a network in

[PHP] Get Power Saving Settings of the Server

2010-04-19 Thread kranthi
Hi all, My PHP script is running as CLI. Can I get the Power Management Settings of the server ? I am using PHP 5.3.2 on Fedora 12 Machine (2.6.32.10-90.fc12.i686) KK. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
> Date: Thu, 25 Feb 2010 15:04:46 -0600 > From: nos...@mckenzies.net > To: aj...@alumni.iu.edu > CC: a...@ashleysheridan.co.uk; php-general@lists.php.net > Subject: Re: [PHP] RE: PHP "GET" Error? > > Alice Wei wrote: > > I can't see anything obviou

Re: [PHP] RE: PHP "GET" Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: > I can't see anything obviously wrong with the URL really. Is there no > way instead to send the data as post data from Flash? I know Flash > can make post requests, but I'm not sure how much more difficult it > is. > > I had it using POST before, but from the PHP point of view, i

RE: [PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
> Alice Wei wrote: > > Hi, > > > > I forgot to mention that the url is formed from Actionscript, I am just > > using PHP to do the "I/O" because Actionscript does not have this option. > > > > So, I guess I cannot do the serialize here like you suggested. I have > > changed # to 0x for n

Re: [PHP] RE: PHP "GET" Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: > Subject: Re: [PHP] RE: PHP "GET" Error? > From: a...@ashleysheridan.co.uk > To: aj...@alumni.iu.edu > CC: nos...@mckenzies.net; php-general@lists.php.net > Date: Thu, 25 Feb 2010 20:03:28 + > > > > > > > > >

[PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
> > Alice Wei wrote: > > > >> Date: Thu, 25 Feb 2010 13:50:16 -0600 > >> From: nos...@mckenzies.net > >> To: aj...@alumni.iu.edu > >> CC: php-general@lists.php.net > >> Subject: Re: PHP "GET" Error? > >> > >>

RE: [PHP] RE: PHP "GET" Error?

2010-02-25 Thread Ashley Sheridan
On Thu, 2010-02-25 at 15:11 -0500, Alice Wei wrote: > Subject: Re: [PHP] RE: PHP "GET" Error? > From: a...@ashleysheridan.co.uk > To: aj...@alumni.iu.edu > CC: nos...@mckenzies.net; php-general@lists.php.net > Date: Thu, 25 Feb 2010 20:03:28 + > > > >

[PHP] Re: PHP "GET" Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: > >> Date: Thu, 25 Feb 2010 13:50:16 -0600 >> From: nos...@mckenzies.net >> To: aj...@alumni.iu.edu >> CC: php-general@lists.php.net >> Subject: Re: PHP "GET" Error? >> >> Alice Wei wrote: >>> Hi, >>> >

RE: [PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
Subject: Re: [PHP] RE: PHP "GET" Error? From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: nos...@mckenzies.net; php-general@lists.php.net Date: Thu, 25 Feb 2010 20:03:28 + On Thu, 2010-02-25 at 15:01 -0500, Alice Wei wrote: > Date: Thu, 25 Feb 2010 1

Re: [PHP] RE: PHP "GET" Error?

2010-02-25 Thread Ashley Sheridan
On Thu, 2010-02-25 at 15:01 -0500, Alice Wei wrote: > > > Date: Thu, 25 Feb 2010 13:50:16 -0600 > > From: nos...@mckenzies.net > > To: aj...@alumni.iu.edu > > CC: php-general@lists.php.net > > Subject: Re: PHP "GET" Error? > > > > Alice W

[PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
> Date: Thu, 25 Feb 2010 13:50:16 -0600 > From: nos...@mckenzies.net > To: aj...@alumni.iu.edu > CC: php-general@lists.php.net > Subject: Re: PHP "GET" Error? > > Alice Wei wrote: > > Hi, > > > > I forgot to mention that the url is formed

[PHP] Re: PHP "GET" Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: > Hi, > > I forgot to mention that the url is formed from Actionscript, I am just > using PHP to do the "I/O" because Actionscript does not have this option. > > So, I guess I cannot do the serialize here like you suggested. I have > changed # to 0x for now, and that does

[PHP] Re: PHP "GET" Error?

2010-02-25 Thread Shawn McKenzie
Alice Wei wrote: > Hi, > > I have done something wrong here, because when I have my variables > declared in my PHP: > >$people_from = $_GET['people_from']; >$state_colors= $_GET['state_colors']; > > I get this url: http://localhost/generic.php?people_from=Adair, OK-Alfalfa, > OK

[PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
> Date: Thu, 25 Feb 2010 13:03:57 -0600 > From: nos...@mckenzies.net > CC: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: Re: PHP "GET" Error? > > Shawn McKenzie wrote: > > Alice Wei wrote: > >> Hi, > >> > >> I hav

[PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
each fclose($fh); ?> Thanks for your help. Alice > Date: Thu, 25 Feb 2010 13:03:57 -0600 > From: nos...@mckenzies.net > CC: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: Re: PHP "GET" Error? > > Shawn McKenzie wrote: > > Alice Wei wrote: > &g

[PHP] PHP "GET" Error?

2010-02-25 Thread Alice Wei
Hi, I have done something wrong here, because when I have my variables declared in my PHP: $people_from = $_GET['people_from']; $state_colors= $_GET['state_colors']; I get this url: http://localhost/generic.php?people_from=Adair, OK-Alfalfa, OK-Atoka, OK-Beaver, OK-Beckham, OK-Bl

[PHP] Re: PHP "GET" Error?

2010-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: > Alice Wei wrote: >> Hi, >> >> I have done something wrong here, because when I have my variables >> declared in my PHP: >> >>$people_from = $_GET['people_from']; >>$state_colors= $_GET['state_colors']; >> >> I get this url: http://localhost/generic.php?people

Re: [PHP] PHP "GET" Error?

2010-02-25 Thread Ashley Sheridan
On Thu, 2010-02-25 at 13:32 -0500, Alice Wei wrote: > Hi, > > I have done something wrong here, because when I have my variables > declared in my PHP: > >$people_from = $_GET['people_from']; >$state_colors= $_GET['state_colors']; > > I get this url: http://localhost/generic.php?

Re: [PHP] Get rid of warning massage

2009-10-20 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Tue, 2009-10-20 at 19:01 +0300, Thodoris wrote: > >> >>> >>> >>> >>> How do you mean an invalid URL? A URL that is not valid as in $url = >>> "poo" or a valid formed URL that doesn't exist? >>> >>> Thanks, >>> Ash >>> http://www.ashleysheridan.co.uk >>> >>> >>> >>> >

Re: [PHP] Get rid of warning massage

2009-10-20 Thread Thodoris
http://php.net/manual/en/language.operators.errorcontrol.php ? A better idea would be suppressing the error messages in a production site: ini_set('display_errors',0); -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get rid of warning massage

2009-10-20 Thread John Black
resea soul wrote: I'm using the function file_get_contents($url). If the url is invalid the function displays a warning message while I am using my own customized message. I want to get rid of the warning message. This should do it: @file_get_contents($url) -- John Gott ist eine faust

Re: [PHP] Get rid of warning massage

2009-10-20 Thread Ashley Sheridan
On Tue, 2009-10-20 at 19:01 +0300, Thodoris wrote: > > > > > > > > > > > > How do you mean an invalid URL? A URL that is not valid as in $url = > > "poo" or a valid formed URL that doesn't exist? > > > > Thanks, > > Ash > > http://www.ashleysheridan.co.uk > > > > > > > > > > > Does

Re: [PHP] Get rid of warning massage

2009-10-20 Thread Thodoris
How do you mean an invalid URL? A URL that is not valid as in $url = "poo" or a valid formed URL that doesn't exist? Thanks, Ash http://www.ashleysheridan.co.uk Does it really matter? In both cases the file_get_contents() wont be able to open the URL and it will produce a warning or

Re: [PHP] Get rid of warning massage

2009-10-20 Thread Ashley Sheridan
On Tue, 2009-10-20 at 11:34 -0400, resea soul wrote: > Hi, > > I'm using the function file_get_contents($url). If the url is invalid the > function displays a warning message while I am using my own customized > message. I want to get rid of the warning message. > > Thank you How do you mean a

Re: [PHP] Get rid of warning massage

2009-10-20 Thread Philip Thompson
On Oct 20, 2009, at 10:34 AM, resea soul wrote: Hi, I'm using the function file_get_contents($url). If the url is invalid the function displays a warning message while I am using my own customized message. I want to get rid of the warning message. Thank you @file_get_contents(...)

Re: [PHP] Get rid of warning massage

2009-10-20 Thread kranthi
http://php.net/manual/en/language.operators.errorcontrol.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get rid of warning massage

2009-10-20 Thread resea soul
Hi, I'm using the function file_get_contents($url). If the url is invalid the function displays a warning message while I am using my own customized message. I want to get rid of the warning message. Thank you

Re: [PHP] get an object property

2009-09-13 Thread Lars Torben Wilson
Tom Worster wrote: On 9/13/09 3:21 AM, "Lars Torben Wilson" wrote: On 9/12/09 9:50 AM, "Tom Worster" wrote: but let me give you a more different example: $a and $b are normally both objects, each with various members including a prop q, but sometimes $a is false. i want the q of $a if $a

Re: [PHP] get an object property

2009-09-13 Thread Tom Worster
On 9/13/09 3:21 AM, "Lars Torben Wilson" wrote: >> On 9/12/09 9:50 AM, "Tom Worster" wrote: >> >> but let me give you a more different example: >> >> $a and $b are normally both objects, each with various members including a >> prop q, but sometimes $a is false. i want the q of $a if $a isn't f

Re: [PHP] get an object property

2009-09-13 Thread Lars Torben Wilson
Tom Worster wrote: On 9/12/09 9:50 AM, "Tom Worster" wrote: On 9/12/09 1:32 AM, "Lars Torben Wilson" wrote: Tom Worster wrote: if i have an expression that evaluates to an object, the return value from a function, say, and i only want the value of one of the objects properti

RE: [PHP] get an object property

2009-09-12 Thread Jan Reiter
function getA(){return $this->arr['a'];} } $o = array( new o(1), new o(2) ); if ( end($o)->getA() > 1 ) { echo "yeah"; } Which works fine as well ... Regards, jan -Original Message- From: Tom Worster [mailto:f...@thefsb.org] Sent: Saturday, September 1

Re: [PHP] get an object property

2009-09-12 Thread Ralph Deffke
> echo a()['q']; // isn't? because this is simply not valid syntax for the INTERPRETER PHP while this > echo o()->q; can be interpreted because of the design of the interpreter. I can live with that. ralph_def...@yahoo.de "Tom Worster" wrote in message news:c6d13522.12422%...@thefsb.org... >

Re: [PHP] get an object property

2009-09-12 Thread Tom Worster
On 9/12/09 9:50 AM, "Tom Worster" wrote: > On 9/12/09 1:32 AM, "Lars Torben Wilson" wrote: > >> Tom Worster wrote: >>> if i have an expression that evaluates to an object, the return value from a >>> function, say, and i only want the value of one of the objects properties, >>> is there a tidy

Re: [PHP] get an object property

2009-09-12 Thread Tom Worster
On 9/12/09 1:32 AM, "Lars Torben Wilson" wrote: > Tom Worster wrote: >> if i have an expression that evaluates to an object, the return value from a >> function, say, and i only want the value of one of the objects properties, >> is there a tidy way to get it without setting another variable? >>

Re: [PHP] get an object property

2009-09-12 Thread Tom Worster
On 9/12/09 12:31 AM, "Paul M Foster" wrote: > On Fri, Sep 11, 2009 at 07:31:01PM -0400, Tom Worster wrote: > >> if i have an expression that evaluates to an object, the return value from a >> function, say, and i only want the value of one of the objects properties, >> is there a tidy way to get

Re: [PHP] get an object property

2009-09-11 Thread Lars Torben Wilson
Tom Worster wrote: if i have an expression that evaluates to an object, the return value from a function, say, and i only want the value of one of the objects properties, is there a tidy way to get it without setting another variable? to illustrate, here's something that doesn't work, but it wou

Re: [PHP] get an object property

2009-09-11 Thread Paul M Foster
On Fri, Sep 11, 2009 at 07:31:01PM -0400, Tom Worster wrote: > if i have an expression that evaluates to an object, the return value from a > function, say, and i only want the value of one of the objects properties, > is there a tidy way to get it without setting another variable? > > to illustr

Re: [PHP] get an object property

2009-09-11 Thread John Corry
Wouldn't it be $o[1]->a? J Corry Sent from my iPhone On Sep 11, 2009, at 7:31 PM, Tom Worster wrote: if i have an expression that evaluates to an object, the return value from a function, say, and i only want the value of one of the objects properties, is there a tidy way to get it withou

[PHP] get an object property

2009-09-11 Thread Tom Worster
if i have an expression that evaluates to an object, the return value from a function, say, and i only want the value of one of the objects properties, is there a tidy way to get it without setting another variable? to illustrate, here's something that doesn't work, but it would be convenient if i

Re: [PHP] php get rss tag using DOM

2009-08-20 Thread Rodgerr
he url attribute? I wrote some codes > similar: > > > $doc = new DOMDocument; > $doc->load($myFlickrRss); > > $r = $doc->getElementsByTagName('media:content'); > for($i=0;$i<=$r->length;$i++) { > > // help here > > } &

Re: [PHP] php get rss tag using DOM

2009-07-03 Thread Michael A. Peters
Michael A. Peters wrote: Rodgerr wrote: Morris-25 wrote: Hi, I am trying to write a programme to read a rss xml file. ... ... scan anyone tell me how to get the url attribute? I wrote some codes similar: $doc = new DOMDocument; $doc->load($myFlickrRss); $r = $doc->getElementsByT

Re: [PHP] php get rss tag using DOM

2009-07-03 Thread Michael A. Peters
Rodgerr wrote: Morris-25 wrote: Hi, I am trying to write a programme to read a rss xml file. ... ... scan anyone tell me how to get the url attribute? I wrote some codes similar: $doc = new DOMDocument; $doc->load($myFlickrRss); $r = $doc->getElementsByTagName('media:content');

Re: [PHP] php get rss tag using DOM

2009-07-03 Thread Rodgerr
to the problem with different parsing methods in PHP. It's worth to have a look at the options. -- View this message in context: http://www.nabble.com/php-get-rss-tag-using-DOM-tp21901033p24330531.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get a list of column field names from a MS Access table

2009-03-02 Thread Andrew Ballard
On Sun, Mar 1, 2009 at 12:39 AM, Paul M Foster wrote: > On Sat, Feb 28, 2009 at 06:54:25PM -0500, Andrew Ballard wrote: > >> On Sat, Feb 28, 2009 at 6:08 PM, Paul M Foster >> wrote: >> > On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote: >> > >> >> On Fri, 2009-02-27 at 16:58 -0500,

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Paul M Foster
On Sat, Feb 28, 2009 at 06:54:25PM -0500, Andrew Ballard wrote: > On Sat, Feb 28, 2009 at 6:08 PM, Paul M Foster > wrote: > > On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote: > > > >> On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: > > > > > > > >> That'll just return an

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Andrew Ballard
On Sat, Feb 28, 2009 at 5:08 AM, Ashley Sheridan wrote: > On Sat, 2009-02-28 at 00:40 -0500, Andrew Ballard wrote: >> On Fri, Feb 27, 2009 at 7:41 PM, Ashley Sheridan >> wrote: >> > On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: >> >> On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: >> >

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Andrew Ballard
On Sat, Feb 28, 2009 at 6:08 PM, Paul M Foster wrote: > On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote: > >> On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: > > > >> That'll just return an empty result set, as in empty and with no fields >> output! In MySQL you can do thi

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Paul M Foster
On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: > That'll just return an empty result set, as in empty and with no fields > output! In MySQL you can do this: > > SELECT column_name FROM information_schema.columns WHERE

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Jim Lucas
revDAVE wrote: Newbie question: I would like to get a list of column field names from a MS Access table and hopefully get them returned in the ORIGINAL order (as they appear in access) Is there a sql query I could do to get this result? -- Thanks - RevDave Cool @ hosting4days . com [db-list

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Ashley Sheridan
On Sat, 2009-02-28 at 00:40 -0500, Andrew Ballard wrote: > On Fri, Feb 27, 2009 at 7:41 PM, Ashley Sheridan > wrote: > > On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: > >> On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: > >> > >> > Newbie question: > >> > > >> > I would like to get a li

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-27 Thread Andrew Ballard
On Fri, Feb 27, 2009 at 7:41 PM, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: >> On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: >> >> > Newbie question: >> > >> > I would like to get a list of column field names from a MS Access table and >> > hopefully get th

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-27 Thread Andrew Ballard
On Fri, Feb 27, 2009 at 4:58 PM, Bastien Koert wrote: > On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: > >> Newbie question: >> >> I would like to get a list of column field names from a MS Access table and >> hopefully get them returned in the ORIGINAL order (as they appear in >> access) >> >>

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-27 Thread Ashley Sheridan
On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: > On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: > > > Newbie question: > > > > I would like to get a list of column field names from a MS Access table and > > hopefully get them returned in the ORIGINAL order (as they appear in > > access)

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-27 Thread Bastien Koert
On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: > Newbie question: > > I would like to get a list of column field names from a MS Access table and > hopefully get them returned in the ORIGINAL order (as they appear in > access) > > Is there a sql query I could do to get this result? > > > > > --

[PHP] Get a list of column field names from a MS Access table

2009-02-26 Thread revDAVE
Newbie question: I would like to get a list of column field names from a MS Access table and hopefully get them returned in the ORIGINAL order (as they appear in access) Is there a sql query I could do to get this result? -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP

[PHP] Re: php get rss tag using DOM

2009-02-09 Thread Rob Richards
Morris wrote: I know rss_php, but it doesn't fit my solution. Is anyone able to help me with my question? thx 2009/2/8 Nathan Rixham Morris wrote: Hi, I am trying to write a programme to read a rss xml file. ... ... scan anyone tell me how to get the url attribute? I wrote some co

[PHP] Re: php get rss tag using DOM

2009-02-08 Thread Morris
I know rss_php, but it doesn't fit my solution. Is anyone able to help me with my question? thx 2009/2/8 Nathan Rixham > Morris wrote: > >> Hi, >> >> I am trying to write a programme to read a rss xml file. >> >> ... >> >> ... >> >>scan anyone tell me how to get the url attribute? I wrot

[PHP] Re: php get rss tag using DOM

2009-02-08 Thread Nathan Rixham
Morris wrote: Hi, I am trying to write a programme to read a rss xml file. ... ... scan anyone tell me how to get the url attribute? I wrote some codes similar: $doc = new DOMDocument; $doc->load($myFlickrRss); $r = $doc->getElementsByTagName('media:content'); for($i=0;$i<=$r->leng

[PHP] php get rss tag using DOM

2009-02-08 Thread Morris
Hi, I am trying to write a programme to read a rss xml file. ... ... scan anyone tell me how to get the url attribute? I wrote some codes similar: $doc = new DOMDocument; $doc->load($myFlickrRss); $r = $doc->getElementsByTagName('media:content'); for($i=0;$i<=$r->length;$i++) { /

Re: [PHP] Get Money Fast with the Government Grants

2009-01-27 Thread Frank Stanovcak
"Andrew Williams" wrote in message news:1adf0c280901270134o2f06d0f9kaf3fce2fb4b6c...@mail.gmail.com... > Hi, > Beware of he spam mailer so do not let them spam your money away. > > Andrew > > On Tue, Jan 27, 2009 at 9:18 AM, clive > wrote: > >> Dora Gaskins wrote: >> >>> If you have received th

Re: [PHP] Get Money Fast with the Government Grants

2009-01-27 Thread Andrew Williams
Hi, Beware of he spam mailer so do not let them spam your money away. Andrew On Tue, Jan 27, 2009 at 9:18 AM, clive wrote: > Dora Gaskins wrote: > >> If you have received this email, take a time to really read it carefully! >> >> American Gov Money >> > More spam, can't we have the maillist soft

Re: [PHP] Get Money Fast with the Government Grants

2009-01-27 Thread clive
Dora Gaskins wrote: If you have received this email, take a time to really read it carefully! American Gov Money More spam, can't we have the maillist software require people to register before posting? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] get file from object

2009-01-06 Thread Eric Butera
On Tue, Jan 6, 2009 at 3:20 PM, Jack Bates wrote: > How do I get the file where a class is defined, from an instance of that > class? What are you trying to do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] get file from object

2009-01-06 Thread ceo
As far as I know, that's not readily available... However, you could do an ob_start() and/or a try/catch and try to re-define the class, and then ignore the error and continue. I believe the PHP error message you get will have the file and line where the original class was defined, so you

[PHP] get file from object

2009-01-06 Thread Jack Bates
How do I get the file where a class is defined, from an instance of that class? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Stut wrote: On 9 Dec 2008, at 19:37, Daniel Kolbo wrote: is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo "the calling function is: " . fun

Re: [PHP] get calling function name

2008-12-09 Thread Stut
On 9 Dec 2008, at 19:37, Daniel Kolbo wrote: is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo "the calling function is: " . func_caller(); }

[PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Greetings, is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo "the calling function is: " . func_caller(); } a(); where this would print th

Re: [PHP] Get Remote-Image

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 1:21 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > > Sorry Brown... maybe http://php.net/de/copy > > Since there weren't any English words in his post I figured going directly > to the Deutsch translation was best Yeah, I understand but what I mean is that, the l

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Daniel Brown wrote: On Thu, Jul 31, 2008 at 11:14 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: No, http://us2.php.net/manual/de/function.copy.php What do you mean, "no," McKenzie? ;-P If you use the short method, it redirects properly. Putting him through us2 and specifying transl

Re: [PHP] Get Remote-Image

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 11:14 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > > No, > > http://us2.php.net/manual/de/function.copy.php What do you mean, "no," McKenzie? ;-P If you use the short method, it redirects properly. Putting him through us2 and specifying translation is going to

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Jul 30, 2008 at 9:50 PM, Konrad Priemer <[EMAIL PROTECTED]> wrote: kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht geregelt ein Image "on-the-fly" von einem Remote-Host per fsockopen auf meinen Server zu ziehen. Irgendwo hab ich da voll die Block

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Richard Heyes wrote: Gutentag, I'm staring at the screen thinking "Huh...?". He didn't even apologize for his English! -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Remote-Image

2008-07-31 Thread Richard Heyes
> Gutentag, I'm staring at the screen thinking "Huh...?". -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Remote-Image

2008-07-31 Thread Aschwin Wesselius
Konrad Priemer wrote: Moin, kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht geregelt ein Image "on-the-fly" von einem Remote-Host per fsockopen auf meinen Server zu ziehen. Irgendwo hab ich da voll die Blockade ;) Mein "nichtfunktionierender" Versuch: ...

Re: [PHP] Get Remote-Image

2008-07-30 Thread Daniel Brown
On Wed, Jul 30, 2008 at 9:50 PM, Konrad Priemer <[EMAIL PROTECTED]> wrote: > > kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht > geregelt ein Image "on-the-fly" von einem Remote-Host per fsockopen auf > meinen Server zu ziehen. > > Irgendwo hab ich da voll die Blockade ;)

[PHP] Get Remote-Image

2008-07-30 Thread Konrad Priemer
Moin, kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht geregelt ein Image "on-the-fly" von einem Remote-Host per fsockopen auf meinen Server zu ziehen. Irgendwo hab ich da voll die Blockade ;) Mein "nichtfunktionierender" Versuch: ... ... $out = "GET ".." HTTP/1.0

RE: [PHP] get current php locale

2008-07-27 Thread Jay Blanchard
[snip] is there a way to get the current locale being used by php and the encoding it uses? [/snip] Do you mean the locale where the computer connecting to the service is using PHP? Remember, PHP is server side and has no way of gathering data from a 'local' machine unless coupled with something l

[PHP] get current php locale

2008-07-26 Thread Ben Sagal
is there a way to get the current locale being used by php and the encoding it uses? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
Yea but implde will loose the "Keys" Chetan Dattaram Rane Software Engineer -Original Message- From: Thiago Pojda [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 5:30 PM To: 'Zoltán Németh'; 'Chetan Rane' Cc: 'Shelley'; 'PHP General

RES: [PHP] Get array as string --Help

2008-05-09 Thread Thiago Pojda
de maio de 2008 08:37 Para: Chetan Rane Cc: 'Shelley'; 'PHP General list' Assunto: RE: [PHP] Get array as string --Help > Yet another option is use serialize(array()) or you could use var_export if you need php code http://php.net/var_export greets, Zoltán Németh &

RE: [PHP] Get array as string --Help

2008-05-09 Thread Zoltán Németh
gt; Sent: Friday, May 09, 2008 3:11 PM > To: PHP General list > Subject: [PHP] Get array as string --Help > > Hi all, > > If I have an array like this: > $arr = array ( > 'c' => 'd', > 'e' => 'f'

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
Yet another option is use serialize(array()) Chetan Dattaram Rane Software Engineer -Original Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 3:11 PM To: PHP General list Subject: [PHP] Get array as string --Help Hi all, If I have an array like this

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
What is the format you want it to be You can use JSON_encode(array()); To get into a text like representation Chetan Dattaram Rane Software Engineer -Original Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 3:11 PM To: PHP General list Subject: [PHP

Re: [PHP] Get array as string --Help

2008-05-09 Thread James Dempster
serialize -- /James On Fri, May 9, 2008 at 10:40 AM, Shelley <[EMAIL PROTECTED]> wrote: > Hi all, > > If I have an array like this: > $arr = array ( >'c' => 'd', >'e' => 'f'); > > How can I convert this array into a string? I want to write an array into a > file.

  1   2   3   4   5   6   7   8   >