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

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

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

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

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
I have to agree, your example works fine for me. For testing I used the latest stable Release of server2go with PHP 5.2.10. Or do you want to use something like that: class o { protected $arr = array('a'=>0); function o($n){$this->arr['a'] = $n;} function getA(){return $th

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

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

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

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(); }

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

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

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

2008-05-09 Thread Chetan Rane
émeth [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 9 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 h

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

2008-05-09 Thread Zoltán Németh
> 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 > > Chetan Dattaram Rane > Software Engineer > > > > -Original Message- > From: Shelley [mailto:[EMAIL PROTECTED] > Sent: Friday, May 09, 2008 3

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: $ar

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] Ge

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.

RE: [PHP] Get Free Information for Top twenty (20) online colleges and universities

2008-04-02 Thread admin
I ask you remove this spammer from our LIST Richard L. Buskirk Senior Software Engineer -Original Message- From: steve_carpenter [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 5:14 PM To: php-general@lists.php.net Subject: [PHP] Get Free Information for Top twenty (20) online

Re: [PHP] Get country from Phone number

2008-03-04 Thread Jim Lucas
Dani Castaños wrote: As a little project, I took the link provided by "the other" Rob and make this little search tool. It only looks at the beginning numbers. It does no number validation. I don't validate the length of the number. ie: I would have to know the min/max lenth of each phon

Re: [PHP] Get country from Phone number

2008-03-03 Thread Dani Castaños
As a little project, I took the link provided by "the other" Rob and make this little search tool. It only looks at the beginning numbers. It does no number validation. I don't validate the length of the number. ie: I would have to know the min/max lenth of each phone number for that give

Re: [PHP] Get country from Phone number

2008-03-01 Thread Satyam
- Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Dani Castaños" <[EMAIL PROTECTED]> Cc: "PHP LIST" Sent: Saturday, March 01, 2008 2:36 AM Subject: Re: [PHP] Get country from Phone number Dani Castaños wrote: Hi all! I'

Re: [PHP] Get country from Phone number

2008-02-29 Thread Jim Lucas
Dani Castaños wrote: Hi all! I'm looking for some piece of code or class which giving a phone number it returns me from wich country is this phone. Do you know where I can find something like this? Thank you in advanced! As a little project, I took the link provided by "the other" Rob and

Re: [PHP] Get country from Phone number

2008-02-29 Thread Daniel Brown
On Fri, Feb 29, 2008 at 5:02 AM, Dani Castaños <[EMAIL PROTECTED]> wrote: > Hi all! > > I'm looking for some piece of code or class which giving a phone number > it returns me from wich country is this phone. > Do you know where I can find something like this? Most likely you'll need a data

RE: [PHP] Get country from Phone number

2008-02-29 Thread Robert Cummings
On Fri, 2008-02-29 at 05:17 -0500, Andrés Robinet wrote: > > -Original Message- > > From: Dani Castaños [mailto:[EMAIL PROTECTED] > > Sent: Friday, February 29, 2008 5:03 AM > > To: PHP LIST > > Subject: [PHP] Get country from Phone number > > > > Hi all! > > > > I'm looking for some pie

Re: [PHP] Get country from Phone number

2008-02-29 Thread Satyam
hus, Mexico and Brazil get two digit codes in the 5 range while smaller Nicaragua gets three. Satyam - Original Message - From: "Andrés Robinet" <[EMAIL PROTECTED]> To: "'Dani Castaños'" <[EMAIL PROTECTED]>; "'PHP LIST'"

Re: [PHP] Get country from Phone number

2008-02-29 Thread Dani Castaños
Andrés Robinet escribió: -Original Message- From: Dani Castaños [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 5:03 AM To: PHP LIST Subject: [PHP] Get country from Phone number Hi all! I'm looking for some piece of code or class which giving a phone number it returns me from

RE: [PHP] Get country from Phone number

2008-02-29 Thread Andrés Robinet
> -Original Message- > From: Dani Castaños [mailto:[EMAIL PROTECTED] > Sent: Friday, February 29, 2008 5:03 AM > To: PHP LIST > Subject: [PHP] Get country from Phone number > > Hi all! > > I'm looking for some piece of code or class which giving a phone number > it returns me from wich co

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Daniel Brown
On Jan 10, 2008 4:00 AM, Liam <[EMAIL PROTECTED]> wrote: > >> Thanks everyone for your assistance, I'll be sure to come back here and > >> frustrate you with any future problems I have. :] :P That's fine, and it's for that reason this list exists, but here's a couple of pointers: 1.) Kee

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Liam
mike wrote: yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam <[EMAIL PROTECTED]> wrote: mike wro

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread mike
yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam <[EMAIL PROTECTED]> wrote: > mike wrote: > > you'r

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > The cgi script IS perl. Oh, RE: the sentence below it: I'm running > apache, and it DOESN'T work. The reason I am trying to call it in php > is to include it on a webpage. So, tell me, how am I supposed to > pre-generate the contents in a flatfile (w

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. in my opinion i would say "redesign it properly." Well what the hell do you suggest I do??? The script is MEANT

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Richard Lynch
On Wed, January 9, 2008 8:38 pm, Liam wrote: > How do I use a get parameter in a include? > > e.g. > > > I can't modify the cgi file though, and HTML includes don't work on my > server. > > Thanks in advance. In order to fire the CGI and have it processed, you would need to do: $html = file_get_

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > mike wrote: > > that is a horrible method. > Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. > > in my opinion i would say "redesign it properly." > Well what the hell do you suggest I do??? The script i

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Chris
The script is MEANT to be used this way I doubt it. If you want the contents from that url, then use curl (http://www.php.net/curl). -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. in my opinion i would say "redesign it properly." Well what the hell do you suggest I do??? The script is MEANT to be used this way, as it has an admin panel inside etc. Oh, by the way

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
that is a horrible method. it works in zeus and apache, but not lighttpd, from my experience. it's just not a good idea. technically that should only be file paths, and i would expect it to load a file named "x.cgi?want=ssilinks" although fopen wrappers can confuse that further... in my opinion

RE: [PHP] get and post together

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 7:55 pm, Daevid Vincent wrote: > It has a size limit for one (maybe 1k chars?) The limit has been increased with each version of the HTTP spec, and implementors have always been encouraged to make the limit as high as practical. But they could not claim to be implementing t

RE: [PHP] get and post together

2007-08-09 Thread Daevid Vincent
I've done that on occasion, but do be careful what you are sending via the GET. It has a size limit for one (maybe 1k chars?) and it is trivial for someone to modify. I generally use GET when I think it's a page "setup" the user may wish to bookmark (ie: page.php?orderby=name&descending=1&report=

Re: [PHP] get and post together

2007-08-08 Thread Ray
On Wednesday 08 August 2007 10:29:33 pm Richard Lynch wrote: > On Wed, August 8, 2007 10:18 pm, Ray wrote: > > I've done something and I want to know if I should be ashamed :) > > > > I've set up a form with method="POST" and target ="page.php?foo=bar" > > it works fine. $_POST[...] gives me the da

Re: [PHP] get and post together

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 10:18 pm, Ray wrote: > I've done something and I want to know if I should be ashamed :) > > I've set up a form with method="POST" and target ="page.php?foo=bar" > it works fine. $_POST[...] gives me the data I want and > $_GET['foo']=='bar'. > I freely admit it's an ugly klud

  1   2   3   4   5   6   >