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
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
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
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)
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
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`
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
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
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
"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
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
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
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
>> 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
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
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
> 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
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
> 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
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 +
>
>
>
>
>
>
>
>
>
>
> 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?
> >>
> >>
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 +
>
>
>
>
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,
>>>
>
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
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
> 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
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
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
> 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
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
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
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
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?
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
>>>
>>>
>>>
>>>
>
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
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
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
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
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
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(...)
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
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
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
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
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
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
> 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...
>
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
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?
>>
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
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
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
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
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
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
>
> }
&
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
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');
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
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,
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
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:
>> >
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
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
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
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
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
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)
>>
>>
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)
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?
>
>
>
>
> --
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
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
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
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
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++) {
/
"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
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
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
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
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
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
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
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();
}
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
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
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
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
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
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
> 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
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:
...
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 ;)
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
[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
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
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
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
&
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'
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
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
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 - 100 of 725 matches
Mail list logo