Re: [PHP] Simple XML in PHP

2009-03-24 Thread DredWerks
In this case "media" is a namespace, so is "live". The XML should have some lines above the ones you posted defining those namespaces. Try something like this: $simplexml = simplexml_load_string(...your entire xml...); $url0 = $simplexml->xpath( '//media:content' ); $url = $url0[0]->at

Re: [PHP] Tripple The Fun

2009-03-24 Thread Michael A. Peters
$reply = new DOMDocument("1.0","utf-8"); $reply->formatOutput = true; $headers = $reply->createElement("headers"); $body = $reply->createElement("body"); $subject = $reply->createElement("Subject","Re: [PHP] Tripple The Fun"); $to = $reply->createElement("To","abdulazeez alugo "); $cc

[PHP] Re: [PHP-DEV] Re: PHP 5.3.0RC1

2009-03-24 Thread Pierre Joye
hi Johannes, Fixed, thanks for the head up! Cheers, On Tue, Mar 24, 2009 at 11:02 PM, Johannes Mueller wrote: > Lukas Kahwe Smith wrote: > >> Windows binaries are available here: >> http://windows.php.net/qa/ > > The .ini files in the 5.3RC1-VC6-nts-package are empty. Can someone fix > this? >

[PHP] Simple XML in PHP

2009-03-24 Thread Stephen Alistoun
HI all, How would a get this video from XML. /***Example i want to View***/ http://video-cdn.abcnews.com/090324_gma_leamy.flv"; lang="en" width="424" height="318" type="video/x-flv" /> /**/ /**XML CODE

[PHP] Re: PHP 5.3.0RC1

2009-03-24 Thread Johannes Mueller
Lukas Kahwe Smith wrote: Windows binaries are available here: http://windows.php.net/qa/ The .ini files in the 5.3RC1-VC6-nts-package are empty. Can someone fix this? thanks for your hard work Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Tripple The Fun

2009-03-24 Thread tedd
anyways I always figured Rocks[tm] was the first OO language, how much more 'objecty' can you get than a rock :) Maybe so, but we lacked the concept of an abstract rock -- it was hard to down a Pterodactyl with one. Cheers, tedd -- --- http://sperling.com http://ancientstones.com htt

[PHP] openssl extension problems: error:0E06D06C:configuration file routines:NCONF_get_string:no value

2009-03-24 Thread Bill Moran
I'm trying to use the openssl extension for PHP. Having some problems and trying to figure out if the problem is in openssl or PHP's wrapper around it. The problem happens when I call openssl_pkey_get_private(). The function returns failure and openssl_error_string() returns "error:0E06D06C:con

[PHP] PHP 5.3.0RC1

2009-03-24 Thread Lukas Kahwe Smith
Hello! Johannes has packaged PHP 5.3.0RC1, which you can find here: http://downloads.php.net/johannes/ Windows binaries are available here: http://windows.php.net/qa/ This release candidate makes us feature complete and we hope to only require minimal changes ahead of the next release. Many,

Re: [PHP] Tripple The Fun

2009-03-24 Thread Jochem Maas
tedd schreef: > At 2:02 PM +0100 3/24/09, abdulazeez alugo wrote: >> Hello guys, >> >> The list seems boring to me today so I've come up with an idea (you >> can call it a challenge). What if we all wrote to this thread in PHP >> codes. on't get the gist yet? well all it means is that, on this >> t

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
What about MySQL max_allowed_packet setting? is it bigger than produced string? > To: php-general@lists.php.net > Date: Tue, 24 Mar 2009 15:23:20 +0100 > From: t...@ezl-data.dk > Subject: Re: [PHP] Problems with implode > > Per Jessen skrev: > > Andrea Giammarchi wrote: > > > >> Dunno why you g

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Tom Worster skrev: On 3/24/09 9:15 AM, "Per Jessen" wrote: TG wrote: I don't think that would be a problem, the size of the array. I've used implode at least once or twice on fairly large arrays. More likely is something weird with your data. Yeah, like the odd backspace or carriage retur

Re: [PHP] Tripple The Fun

2009-03-24 Thread דניאל דנון
Have fun =]

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Per Jessen skrev: Andrea Giammarchi wrote: Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) Very good point - maybe the OP has not yet teste

RE: [PHP] Tripple The Fun

2009-03-24 Thread abdulazeez alugo
> Date: Tue, 24 Mar 2009 14:01:23 + > From: nick.coo...@jdi-solutions.co.uk > To: li...@bithub.net > CC: php-general@lists.php.net > Subject: Re: [PHP] Tripple The Fun > > 'defghi/ghijkl/qurstu/efghij/opqurs/stuvwx/defghi/tuvwxy/abcd/opqurs/abcde/stuvwx';$e > = explode('/',$var1);for($

Re: [PHP] Tripple The Fun

2009-03-24 Thread Nick Cooper
2009/3/24 Marc > $RCDCE0CB7B12D0116B987F9A96911A37B = array('2','3','w',' > d','q','o','e','i','3','p','p','2','e','s','a','n','u','y','d','q','z','s'); > for ($REDCEC4A793439846D7944E29AD2898E9=1; > $REDCEC4A793439846D7944E29AD2898E9 % 3)){echo > $RCDCE0CB7B12D0116B987F9A96911A37B[$REDCEC4A79

Re: [PHP] Tripple The Fun

2009-03-24 Thread Marc
And yeah, I really got too much spare time >echo 'won\'t it just end up as lots of echos and prints?'; > >?> > >2009/3/24 abdulazeez alugo > >>Hello guys, >> >> The list seems boring to me today so I've come up with an idea (you can >> call it a challenge). What if we all wrote to this thread

Re: [PHP] Tripple The Fun

2009-03-24 Thread tedd
At 2:02 PM +0100 3/24/09, abdulazeez alugo wrote: Hello guys, The list seems boring to me today so I've come up with an idea (you can call it a challenge). What if we all wrote to this thread in PHP codes. on't get the gist yet? well all it means is that, on this thread, all that we should se

RE: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
Andrea Giammarchi wrote: > Dunno why you guys started talk about utf-8 problems, he has a list of > ids which should contain only unsigned integers, otherwise I do not > get how that query could work with an implode(',', $whatever) Very good point - maybe the OP has not yet tested his code that

Re: [PHP] Tripple The Fun

2009-03-24 Thread Jan G.B.
It won't take long until someone digs out the old joke... touch unzip, strip ... I can't read it anymore! 2009/3/24 Nick Cooper : > echo 'won\'t it just end up as lots of echos and prints?'; > > ?> > > 2009/3/24 abdulazeez alugo > >> >> Hello guys, >> >> The list seems boring to me today so I've

Re: [PHP] Tripple The Fun

2009-03-24 Thread Nick Cooper
2009/3/24 abdulazeez alugo > > Hello guys, > > The list seems boring to me today so I've come up with an idea (you can > call it a challenge). What if we all wrote to this thread in PHP codes. on't > get the gist yet? well all it means is that, on this thread, all that we > should see must be w

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 9:15 AM, "Per Jessen" wrote: > TG wrote: > >> I don't think that would be a problem, the size of the array. I've >> used implode at least once or twice on fairly large arrays. More >> likely is something weird with your data. > > Yeah, like the odd backspace or carriage return perh

Re: [PHP] Problems with implode

2009-03-24 Thread Jan G.B.
2009/3/24 Toke Herkild : > Hi All, > > I've an array() with approx 1200 items (list of id-mappings) that part works > fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); Are all of the Ids

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) rather than 'id in ("'.implode('","', array_map('mysql_real_escape_string', $whatever)).'")' .

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 8:58 AM, "Per Jessen" wrote: > I can't reproduce that behaviour - I tried with ascii ('klop') and utf8 > ('Köhler') text. neither can i. if the mail systems don't screw it up, here's my test strings: $strs = array( 'Iñtërnâtiônàlizætiøn', 'החמאס: רוצים להשלים את

Re: [PHP] Problems with implode

2009-03-24 Thread Matt Neimeyer
On Tue, Mar 24, 2009 at 9:15 AM, Per Jessen wrote: > TG wrote: > >> I don't think that would be a problem, the size of the array.  I've >> used implode at least once or twice on fairly large arrays.  More >> likely is something weird with your data. > > Yeah, like the odd backspace or carriage ret

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
TG wrote: > I don't think that would be a problem, the size of the array. I've > used implode at least once or twice on fairly large arrays. More > likely is something weird with your data. Yeah, like the odd backspace or carriage return perhaps. /Per -- Per Jessen, Zürich (3.0°C) -- PH

Re: [PHP] Problems with implode

2009-03-24 Thread TG
I don't think that would be a problem, the size of the array. I've used implode at least once or twice on fairly large arrays. More likely is something weird with your data. I'd do a print_r or var_dump to check the data and make sure that's not the issue. Not saying implode isn't having a

[PHP] Tripple The Fun

2009-03-24 Thread abdulazeez alugo
Hello guys, The list seems boring to me today so I've come up with an idea (you can call it a challenge). What if we all wrote to this thread in PHP codes. on't get the gist yet? well all it means is that, on this thread, all that we should see must be written in PHP codes and it must be meani

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
Toke Herkild wrote: > Hi All, > > I've an array() with approx 1200 items (list of id-mappings) that part > works fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); > > My problem is tha

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 7:14 AM, "Toke Herkild" wrote: > I've an array() with approx 1200 items (list of id-mappings) that part > works fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); > > My prob

Re: [PHP] utf-8-safe replacement for strtr()?

2009-03-24 Thread Tom Worster
On 3/23/09 2:02 PM, "Tom Worster" wrote: > i havea general replacement or workaround for every php function in my code > that i know to be utf-8-unsafe. except one: strtr(). strtr() with three parameters is certainly unsafe. but my tests are showing that it may be ok with two parameters if the s

[PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Hi All, I've an array() with approx 1200 items (list of id-mappings) that part works fine. Now I want to add this list to a query: $where = "id in (".$idList.")"; To accomplish that i do an implode: $idList = implode(',', $TidList); My problem is that some of the values gets concenated, othe

Re: [PHP] Google Summer Of Code : The PHP Project

2009-03-24 Thread Jochem Maas
Daniel Brown schreef: > On Mon, Mar 23, 2009 at 05:57, Nabil Khamassi > wrote: >> I am especially interested in "Integrated Code Coverage of C and PHP Code" >> because I have a solid knowledge in C language (and a full-time project in >> C is planned at the end of this semester in ENSIMAG) but als

[PHP] Re: PHP checkstyle

2009-03-24 Thread Hans Schultz
Hello Dipen, I recently found Codenizer (http://www.softwarehood.com/Codenizer/) to do similar (only code syntax & semantics analysis - no formatting) thing for PHP. However I couldn't find out how to use it with eclipse, so I switched to Netbeans for now. Regards On Mon, 23 Mar 2009 11:0