php-general Digest 28 Nov 2008 04:13:33 -0000 Issue 5814
Topics (messages 283845 through 283879):
Re: Happy Turkey Day
283845 by: Daniel P. Brown
283846 by: Sancar Saran
283847 by: Ashley Sheridan
283848 by: Ashley Sheridan
283849 by: Daniel P. Brown
283850 by: Ashley Sheridan
283851 by: Robert Cummings
283852 by: Robert Cummings
283853 by: Ashley Sheridan
283854 by: Robert Cummings
283855 by: Richard Heyes
283856 by: Richard Heyes
283858 by: Nathan Rixham
283862 by: Robert Cummings
283864 by: Yeti
Re: Netbeans 6.5 WAS: phpDesigner 2008?
283857 by: Bastien Koert
Parsing XML
283859 by: Ashley Sheridan
283860 by: Nathan Rixham
283861 by: Nathan Rixham
283863 by: Ashley Sheridan
283866 by: Ashley Sheridan
283868 by: Maciek Sokolewicz
283870 by: Ashley Sheridan
SNMP Functions
283865 by: Rui Quelhas
283867 by: Chris
Curl with asp pages....
283869 by: ioannes
About Time Zones
283871 by: Franz
array/iteration issue!!
283872 by: bruce
283874 by: Robert Cummings
283875 by: bruce
283876 by: Robert Cummings
283877 by: bruce
283879 by: Robert Cummings
jason liang wants to chat
283873 by: jason liang
[php] question about ob_end_flush
283878 by: jason liang
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
On Thu, Nov 27, 2008 at 11:08 AM, tedd <[EMAIL PROTECTED]> wrote:
> Hi gang:
>
> Happy Turkey Day to all who are working on Thanksgiving.
Back at you, my friend.
Some on the list may not even know what Thanksgiving is, being an
American holiday. I had a client last year comment that she was
surprised so many people around the world work Thanksgiving Day. I
didn't correct her.
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
50% off all hosting with coupon DECEMBER2008 at http://www.pilotpig.net/!
--- End Message ---
--- Begin Message ---
On Thursday 27 November 2008 19:07:42 Daniel P. Brown wrote:
> On Thu, Nov 27, 2008 at 11:08 AM, tedd <[EMAIL PROTECTED]> wrote:
> > Hi gang:
> >
> > Happy Turkey Day to all who are working on Thanksgiving.
>
> Back at you, my friend.
>
> Some on the list may not even know what Thanksgiving is, being an
> American holiday. I had a client last year comment that she was
> surprised so many people around the world work Thanksgiving Day. I
> didn't correct her.
>
And some on the list may live in Turkey...
Cheers :)
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 19:18 +0200, Sancar Saran wrote:
> On Thursday 27 November 2008 19:07:42 Daniel P. Brown wrote:
> > On Thu, Nov 27, 2008 at 11:08 AM, tedd <[EMAIL PROTECTED]> wrote:
> > > Hi gang:
> > >
> > > Happy Turkey Day to all who are working on Thanksgiving.
> >
> > Back at you, my friend.
> >
> > Some on the list may not even know what Thanksgiving is, being an
> > American holiday. I had a client last year comment that she was
> > surprised so many people around the world work Thanksgiving Day. I
> > didn't correct her.
> >
>
> And some on the list may live in Turkey...
>
> Cheers :)
>
>
So if you get Father Christmas at Christmas, and the Easter Bunny at
Easter, what do you get on Thanksgiving?
(Got this picture in my head of a Mr Bean style turkey man walking
around!)
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 17:24 +0000, Ashley Sheridan wrote:
> On Thu, 2008-11-27 at 19:18 +0200, Sancar Saran wrote:
> > On Thursday 27 November 2008 19:07:42 Daniel P. Brown wrote:
> > > On Thu, Nov 27, 2008 at 11:08 AM, tedd <[EMAIL PROTECTED]> wrote:
> > > > Hi gang:
> > > >
> > > > Happy Turkey Day to all who are working on Thanksgiving.
> > >
> > > Back at you, my friend.
> > >
> > > Some on the list may not even know what Thanksgiving is, being an
> > > American holiday. I had a client last year comment that she was
> > > surprised so many people around the world work Thanksgiving Day. I
> > > didn't correct her.
> > >
> >
> > And some on the list may live in Turkey...
> >
> > Cheers :)
> >
> >
> So if you get Father Christmas at Christmas, and the Easter Bunny at
> Easter, what do you get on Thanksgiving?
>
> (Got this picture in my head of a Mr Bean style turkey man walking
> around!)
>
>
> Ash
> www.ashleysheridan.co.uk
>
>
For anyone who has no idea who Mr Bean is:
http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
<[EMAIL PROTECTED]> wrote:
>>
> For anyone who has no idea who Mr Bean is:
>
> http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
The half-hour blocks they used to do of The Mr. Bean Show were
great. Silent comedy is truly underrated.
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
1 LEFT: $149/mo. $0 Setup - Dual-Core/320GB HDD/1GB RAM/3TB
100Mbps/cPanel - SAME-DAY SETUP! Contact me to buy.
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote:
> On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
> <[EMAIL PROTECTED]> wrote:
> >>
> > For anyone who has no idea who Mr Bean is:
> >
> > http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
>
> The half-hour blocks they used to do of The Mr. Bean Show were
> great. Silent comedy is truly underrated.
>
> --
> </Daniel P. Brown>
> http://www.parasane.net/
> [EMAIL PROTECTED] || [EMAIL PROTECTED]
> 1 LEFT: $149/mo. $0 Setup - Dual-Core/320GB HDD/1GB RAM/3TB
> 100Mbps/cPanel - SAME-DAY SETUP! Contact me to buy.
>
It also has the benefit of being cheap as chips to translate into other
languages ;)
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote:
> On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
> <[EMAIL PROTECTED]> wrote:
> >>
> > For anyone who has no idea who Mr Bean is:
> >
> > http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
>
> The half-hour blocks they used to do of The Mr. Bean Show were
> great. Silent comedy is truly underrated.
My favourite for silent comedy has been Harold Lloyd since I was about 7
years old.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 17:36 +0000, Ashley Sheridan wrote:
> On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote:
> > On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
> > <[EMAIL PROTECTED]> wrote:
> > >>
> > > For anyone who has no idea who Mr Bean is:
> > >
> > > http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
> >
> > The half-hour blocks they used to do of The Mr. Bean Show were
> > great. Silent comedy is truly underrated.
> >
> > --
> > </Daniel P. Brown>
> > http://www.parasane.net/
> > [EMAIL PROTECTED] || [EMAIL PROTECTED]
> > 1 LEFT: $149/mo. $0 Setup - Dual-Core/320GB HDD/1GB RAM/3TB
> > 100Mbps/cPanel - SAME-DAY SETUP! Contact me to buy.
> >
> It also has the benefit of being cheap as chips to translate into other
> languages ;)
That depends... many older silent comedies had subtitles... or screen
titles that would temporarily interrupt the movie to provide the
occasional context.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 12:47 -0500, Robert Cummings wrote:
> On Thu, 2008-11-27 at 17:36 +0000, Ashley Sheridan wrote:
> > On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote:
> > > On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
> > > <[EMAIL PROTECTED]> wrote:
> > > >>
> > > > For anyone who has no idea who Mr Bean is:
> > > >
> > > > http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
> > >
> > > The half-hour blocks they used to do of The Mr. Bean Show were
> > > great. Silent comedy is truly underrated.
> > >
> > > --
> > > </Daniel P. Brown>
> > > http://www.parasane.net/
> > > [EMAIL PROTECTED] || [EMAIL PROTECTED]
> > > 1 LEFT: $149/mo. $0 Setup - Dual-Core/320GB HDD/1GB RAM/3TB
> > > 100Mbps/cPanel - SAME-DAY SETUP! Contact me to buy.
> > >
> > It also has the benefit of being cheap as chips to translate into other
> > languages ;)
>
> That depends... many older silent comedies had subtitles... or screen
> titles that would temporarily interrupt the movie to provide the
> occasional context.
>
> Cheers,
> Rob.
Still a lot cheaper than voice-overs.
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 18:01 +0000, Ashley Sheridan wrote:
> On Thu, 2008-11-27 at 12:47 -0500, Robert Cummings wrote:
> > On Thu, 2008-11-27 at 17:36 +0000, Ashley Sheridan wrote:
> > > On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote:
> > > > On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
> > > > <[EMAIL PROTECTED]> wrote:
> > > > >>
> > > > > For anyone who has no idea who Mr Bean is:
> > > > >
> > > > > http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
> > > >
> > > > The half-hour blocks they used to do of The Mr. Bean Show were
> > > > great. Silent comedy is truly underrated.
> > > >
> > > > --
> > > > </Daniel P. Brown>
> > > > http://www.parasane.net/
> > > > [EMAIL PROTECTED] || [EMAIL PROTECTED]
> > > > 1 LEFT: $149/mo. $0 Setup - Dual-Core/320GB HDD/1GB RAM/3TB
> > > > 100Mbps/cPanel - SAME-DAY SETUP! Contact me to buy.
> > > >
> > > It also has the benefit of being cheap as chips to translate into other
> > > languages ;)
> >
> > That depends... many older silent comedies had subtitles... or screen
> > titles that would temporarily interrupt the movie to provide the
> > occasional context.
> >
>
> Still a lot cheaper than voice-overs.
I do voice overs for free... I've ummm got a real sexy voice.
;)
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
> I do voice overs for free... I've ummm got a real sexy voice.
If that's the case then you could put that to use and earn yourself a
good deal of money... ;-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 15th)
--- End Message ---
--- Begin Message ---
> Happy Turkey Day to all who are working on Thanksgiving.
That reminds me of a line from Friends... "Happy needless-turkey-murder day".
:-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 15th)
--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote:
On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
<[EMAIL PROTECTED]> wrote:
For anyone who has no idea who Mr Bean is:
http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
The half-hour blocks they used to do of The Mr. Bean Show were
great. Silent comedy is truly underrated.
My favourite for silent comedy has been Harold Lloyd since I was about 7
years old.
Cheers,
Rob.
my favourite is this list
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 20:34 +0000, Nathan Rixham wrote:
> Robert Cummings wrote:
> > On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote:
> >> On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan
> >> <[EMAIL PROTECTED]> wrote:
> >>> For anyone who has no idea who Mr Bean is:
> >>>
> >>> http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg
> >> The half-hour blocks they used to do of The Mr. Bean Show were
> >> great. Silent comedy is truly underrated.
> >
> > My favourite for silent comedy has been Harold Lloyd since I was about 7
> > years old.
> >
>
> my favourite is this list
Obviously you haven't heard Tedd scream!
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
Today was a holiday?
I looked "Thanksgiving" up and wikipedia said it's some kind of
harvest festival. I guess that's why some mentioned turkeys ..
--- End Message ---
--- Begin Message ---
On Wed, Nov 26, 2008 at 7:34 PM, Daevid Vincent <[EMAIL PROTECTED]> wrote:
> On Tue, 2008-11-18 at 10:32 +0000, Holografix wrote:
>
> Hi
> I tried PHPDesigner some time ago. It's not bad but now I'm using Netbeans
> and it's a good editor: http://www.netbeans.org/ (it's free!)
>
> I watched the little movie demo and was impressed, so I just installed and
> tried the Netbeans 6.5 (.sh installer for Linux b/c the Ubuntu repository
> has 6.1 still) and am really disappointed at how pokey the GUI is?! It's so
> slow as to be unusable. I'm baffled by this, as I've been using Eclipse PDT
> (which is a pig) and that also uses Java, but it's nowhere near as slow as
> Netbeans is.
>
> My system is far from old:
>
> Intel P4 CPU 3.20GHz with 2GB RAM.
>
> java version "1.6.0_10"
> Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
> Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
>
> (also tried with the OpenJDK or whatever it's called, and had the same
> miserable experience)
>
> I tried to adjust some of the netbeans.conf that I saw in the FAQ to no
> avail:
>
> netbeans_default_options="-J-client -J-Xverify:none -J-Xmx256m -J-Xss2m
> -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m
> -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true
> -J-XX:CompileThreshold=100 -Dswing.aatext=true"
>
> The fonts also looked horrible! All pixeley and like I was back in the
> 1980's.
>
> I read the forums and searched for "slow" and saw other poor souls with
> similar experiences, but no solutions. [image: :(]
>
> Oh well... Guess I'll stick with Eclipse PDT (and how does Zend get off
> charging $400 for "Zend Studio" which amounts to a few Eclipse plugins?!?
> Seriously? That's $150 at best)
>
> Daevid.
> http://www.daevid.com <http://daevid.com>
>
>
I've installed it but have yet to use it. I am having a good time with
APTANA Studio, though there is a learning curve
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
Hi All,
I've run into a bit of a problem. I need to parse some fairly detailed
XML files from a remote website. I'm pulling in the remote XML using
curl, and that bit is working fine. The smaller XML documents were easy
to parse with regular expressions, as I only needed bit of information
out of them.
The live server I'm eventually putting this onto only has domxml for
working with XML. I've been trying to find the pecl extension for this
to install on my local machine, but the pecl.php.net site is a bit
nerfed for this extension (I'm getting a file not found error message.)
Do any of you have a copy of this extension, or failing that, a
suggestion of how I can parse XML files without having to install
anything on the remote server, as I do not have that level off access to
it.
Thanks
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
Hi All,
I've run into a bit of a problem. I need to parse some fairly detailed
XML files from a remote website. I'm pulling in the remote XML using
curl, and that bit is working fine. The smaller XML documents were easy
to parse with regular expressions, as I only needed bit of information
out of them.
The live server I'm eventually putting this onto only has domxml for
working with XML. I've been trying to find the pecl extension for this
to install on my local machine, but the pecl.php.net site is a bit
nerfed for this extension (I'm getting a file not found error message.)
Do any of you have a copy of this extension, or failing that, a
suggestion of how I can parse XML files without having to install
anything on the remote server, as I do not have that level off access to
it.
Thanks
Ash
www.ashleysheridan.co.uk
standard response which has helped a few recently :p
"you could give this a go if you like (one i made earlier):
http://programphp.com/xmlparser.phps - class at the top, usage at the
bottom."
--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
Hi All,
I've run into a bit of a problem. I need to parse some fairly detailed
XML files from a remote website. I'm pulling in the remote XML using
curl, and that bit is working fine. The smaller XML documents were easy
to parse with regular expressions, as I only needed bit of information
out of them.
The live server I'm eventually putting this onto only has domxml for
working with XML. I've been trying to find the pecl extension for this
to install on my local machine, but the pecl.php.net site is a bit
nerfed for this extension (I'm getting a file not found error message.)
Do any of you have a copy of this extension, or failing that, a
suggestion of how I can parse XML files without having to install
anything on the remote server, as I do not have that level off access to
it.
Thanks
Ash
www.ashleysheridan.co.uk
standard response which has helped a few recently :p
"you could give this a go if you like (one i made earlier):
http://programphp.com/xmlparser.phps - class at the top, usage at the
bottom."
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 20:56 +0000, Nathan Rixham wrote:
> Ashley Sheridan wrote:
> > Hi All,
> >
> > I've run into a bit of a problem. I need to parse some fairly detailed
> > XML files from a remote website. I'm pulling in the remote XML using
> > curl, and that bit is working fine. The smaller XML documents were easy
> > to parse with regular expressions, as I only needed bit of information
> > out of them.
> >
> > The live server I'm eventually putting this onto only has domxml for
> > working with XML. I've been trying to find the pecl extension for this
> > to install on my local machine, but the pecl.php.net site is a bit
> > nerfed for this extension (I'm getting a file not found error message.)
> >
> > Do any of you have a copy of this extension, or failing that, a
> > suggestion of how I can parse XML files without having to install
> > anything on the remote server, as I do not have that level off access to
> > it.
> >
> > Thanks
> > Ash
> > www.ashleysheridan.co.uk
> >
>
> standard response which has helped a few recently :p
>
> "you could give this a go if you like (one i made earlier):
> http://programphp.com/xmlparser.phps - class at the top, usage at the
> bottom."
>
I've started using DOMDocument for this (I bypassed your code for the
moment as it uses regular expressions, which were a speed bottleneck
with my approach) but I can't find any proper documentation on it
online. My efforts so far have resulted in a lot of errors which are
nigh on impossible to debug. I've used the dom class in javascript
without problems now, and it seems to look similar, but it's all going
wrong!
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 22:13 +0000, Ashley Sheridan wrote:
> On Thu, 2008-11-27 at 20:56 +0000, Nathan Rixham wrote:
> > Ashley Sheridan wrote:
> > > Hi All,
> > >
> > > I've run into a bit of a problem. I need to parse some fairly detailed
> > > XML files from a remote website. I'm pulling in the remote XML using
> > > curl, and that bit is working fine. The smaller XML documents were easy
> > > to parse with regular expressions, as I only needed bit of information
> > > out of them.
> > >
> > > The live server I'm eventually putting this onto only has domxml for
> > > working with XML. I've been trying to find the pecl extension for this
> > > to install on my local machine, but the pecl.php.net site is a bit
> > > nerfed for this extension (I'm getting a file not found error message.)
> > >
> > > Do any of you have a copy of this extension, or failing that, a
> > > suggestion of how I can parse XML files without having to install
> > > anything on the remote server, as I do not have that level off access to
> > > it.
> > >
> > > Thanks
> > > Ash
> > > www.ashleysheridan.co.uk
> > >
> >
> > standard response which has helped a few recently :p
> >
> > "you could give this a go if you like (one i made earlier):
> > http://programphp.com/xmlparser.phps - class at the top, usage at the
> > bottom."
> >
> I've started using DOMDocument for this (I bypassed your code for the
> moment as it uses regular expressions, which were a speed bottleneck
> with my approach) but I can't find any proper documentation on it
> online. My efforts so far have resulted in a lot of errors which are
> nigh on impossible to debug. I've used the dom class in javascript
> without problems now, and it seems to look similar, but it's all going
> wrong!
>
>
> Ash
> www.ashleysheridan.co.uk
>
>
OK, given up on DOMDocument, and tried your code Nathan, works
beautifully! Turns out the slow speeds I was experiencing before using
the regexes was down to the remote server serving out the xml document.
Its the armory server on wow-europe, so not too worried about that!
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
On Thu, 2008-11-27 at 22:13 +0000, Ashley Sheridan wrote:
On Thu, 2008-11-27 at 20:56 +0000, Nathan Rixham wrote:
Ashley Sheridan wrote:
Hi All,
I've run into a bit of a problem. I need to parse some fairly detailed
XML files from a remote website. I'm pulling in the remote XML using
curl, and that bit is working fine. The smaller XML documents were easy
to parse with regular expressions, as I only needed bit of information
out of them.
The live server I'm eventually putting this onto only has domxml for
working with XML. I've been trying to find the pecl extension for this
to install on my local machine, but the pecl.php.net site is a bit
nerfed for this extension (I'm getting a file not found error message.)
Do any of you have a copy of this extension, or failing that, a
suggestion of how I can parse XML files without having to install
anything on the remote server, as I do not have that level off access to
it.
Thanks
Ash
www.ashleysheridan.co.uk
standard response which has helped a few recently :p
"you could give this a go if you like (one i made earlier):
http://programphp.com/xmlparser.phps - class at the top, usage at the
bottom."
I've started using DOMDocument for this (I bypassed your code for the
moment as it uses regular expressions, which were a speed bottleneck
with my approach) but I can't find any proper documentation on it
online. My efforts so far have resulted in a lot of errors which are
nigh on impossible to debug. I've used the dom class in javascript
without problems now, and it seems to look similar, but it's all going
wrong!
Ash
www.ashleysheridan.co.uk
OK, given up on DOMDocument, and tried your code Nathan, works
beautifully! Turns out the slow speeds I was experiencing before using
the regexes was down to the remote server serving out the xml document.
Its the armory server on wow-europe, so not too worried about that!
Ash
www.ashleysheridan.co.uk
the armory at wow-europe? That thing is horribly overloaded
[permanently], get used to it. I've had a few scripts have trouble with
that place aswell, considering connections timed out regularly.
- Tul
--- End Message ---
--- Begin Message ---
On Fri, 2008-11-28 at 01:04 +0100, Maciek Sokolewicz wrote:
> Ashley Sheridan wrote:
> > On Thu, 2008-11-27 at 22:13 +0000, Ashley Sheridan wrote:
> >> On Thu, 2008-11-27 at 20:56 +0000, Nathan Rixham wrote:
> >>> Ashley Sheridan wrote:
> >>>> Hi All,
> >>>>
> >>>> I've run into a bit of a problem. I need to parse some fairly detailed
> >>>> XML files from a remote website. I'm pulling in the remote XML using
> >>>> curl, and that bit is working fine. The smaller XML documents were easy
> >>>> to parse with regular expressions, as I only needed bit of information
> >>>> out of them.
> >>>>
> >>>> The live server I'm eventually putting this onto only has domxml for
> >>>> working with XML. I've been trying to find the pecl extension for this
> >>>> to install on my local machine, but the pecl.php.net site is a bit
> >>>> nerfed for this extension (I'm getting a file not found error message.)
> >>>>
> >>>> Do any of you have a copy of this extension, or failing that, a
> >>>> suggestion of how I can parse XML files without having to install
> >>>> anything on the remote server, as I do not have that level off access to
> >>>> it.
> >>>>
> >>>> Thanks
> >>>> Ash
> >>>> www.ashleysheridan.co.uk
> >>>>
> >>> standard response which has helped a few recently :p
> >>>
> >>> "you could give this a go if you like (one i made earlier):
> >>> http://programphp.com/xmlparser.phps - class at the top, usage at the
> >>> bottom."
> >>>
> >> I've started using DOMDocument for this (I bypassed your code for the
> >> moment as it uses regular expressions, which were a speed bottleneck
> >> with my approach) but I can't find any proper documentation on it
> >> online. My efforts so far have resulted in a lot of errors which are
> >> nigh on impossible to debug. I've used the dom class in javascript
> >> without problems now, and it seems to look similar, but it's all going
> >> wrong!
> >>
> >>
> >> Ash
> >> www.ashleysheridan.co.uk
> >>
> >>
> > OK, given up on DOMDocument, and tried your code Nathan, works
> > beautifully! Turns out the slow speeds I was experiencing before using
> > the regexes was down to the remote server serving out the xml document.
> > Its the armory server on wow-europe, so not too worried about that!
> >
> >
> > Ash
> > www.ashleysheridan.co.uk
> >
>
> the armory at wow-europe? That thing is horribly overloaded
> [permanently], get used to it. I've had a few scripts have trouble with
> that place aswell, considering connections timed out regularly.
>
> - Tul
>
Yeah, the very same.
I'm trying to avoid as much communication with it as possible, by only
updating content once an hour, and then only if that content is
requested, so if the site doesn't get used for a week, no updates are
made. And then, all the data is stored in a database at my end, so I can
query that easily.
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Hello guys, i'm running php on Leopard 10.5.5 with native php and snmp
builds. I was hoping someone could tell me how can i activate the php snmp
in order to use the snmp functions. I've searched everywhere for this but i
didn't find anything usefull. Appreciate any kind of answer.
Regards
Rui Quelhas
--- End Message ---
--- Begin Message ---
Rui Quelhas wrote:
Hello guys, i'm running php on Leopard 10.5.5 with native php and snmp
builds. I was hoping someone could tell me how can i activate the php snmp
in order to use the snmp functions. I've searched everywhere for this but i
didn't find anything usefull. Appreciate any kind of answer.
Having no idea about leopard and how it does stuff, this might sound stupid.
Is there a "package" for php-snmp (on redhat/debian, php is modular -
you can install php-ldap or php-snmp or php-mysql or .. without having
to re-compile php) ?
If leopard doesn't have packages, you'll probably have to build php from
scratch.
http://www.php.net/manual/en/install.macosx.php
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
What are the differences between asp and non-asp pages when you are
curling them? Apart from ,as referred to in php.net, you need to
urlencode the post values... Do you also need to urlencode the variable
names? And if the submit button on the page has
javascript:WebForm_PostBackOptions, is that going to cause any
complexity? I have a working php curling script which works on many
sites, but this asp page returns error from the server (Error Tracking
Code: from server). I have seen problems described on the internet with
asp but apart from urlencode tip and that you need to submit the hidden
VIEWSTATE etc variables, I have not seen any other tips. I previously
got just the input page, so getting the error is actually progress,
which I got once I urlencoded the inputs, but clearly the inputs don't
make sense to the script somehow and suspect there is some general
differences between asp and non-asp pages for this purpose.
John
--- End Message ---
--- Begin Message ---
Hi,
I do not know if I am at the right place...
Ref. : http://fr3.php.net/manual/fr/timezones.america.php
Well I was wondering what is the different between :
- America/Argentina/Buenos_Aires
and
- America/Buenos_Aires
Thank you
--- End Message ---
--- Begin Message ---
hi.
i have the following test multidiminsional array. i'm trying to figure out
how to iterate through the array, to produce something like
foo, physics, sss
foo, physics, sffgg
foo, english, sss
foo, english, sffgg
can't quite seem to get it right!!
thoughts/comments... etc...
thanks
--------------------
$a=array("college"=> "foo",
"dept"=>array("dept"=> "physics",
"class"=>array("class1"=>"sss","class2"=>"sffgg")
),
"dept"=>array("dept"=> "english",
"class"=>array("class1"=>"sss","class2"=>"sffgg")
)
);
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 17:31 -0800, bruce wrote:
> hi.
>
> i have the following test multidiminsional array. i'm trying to figure out
> how to iterate through the array, to produce something like
>
> foo, physics, sss
> foo, physics, sffgg
> foo, english, sss
> foo, english, sffgg
>
> can't quite seem to get it right!!
>
> thoughts/comments... etc...
>
> thanks
>
> --------------------
> $a=array("college"=> "foo",
> "dept"=>array("dept"=> "physics",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> ),
> "dept"=>array("dept"=> "english",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> )
> );
You can't. You're array is valid but the second 'dept' key overwrites
the first. Thus the physics dept is lost.
Check it for yourself... print_r( $a )
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
hey robert..
ok.. so if i changed the array to have a dept1, and a dept2
$a=array("college"=> "foo",
"dept1"=>array("dept"=> "physics",
"class"=>array("class1"=>"sss","class2"=>"sffgg")
),
"dept2"=>array("dept"=> "english",
"class"=>array("class1"=>"sss","class2"=>"sffgg")
)
);
how would i iterate through this..??
thanks
-----Original Message-----
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 27, 2008 6:18 PM
To: bruce
Cc: 'PHP General list'
Subject: Re: [PHP] array/iteration issue!!
On Thu, 2008-11-27 at 17:31 -0800, bruce wrote:
> hi.
>
> i have the following test multidiminsional array. i'm trying to figure out
> how to iterate through the array, to produce something like
>
> foo, physics, sss
> foo, physics, sffgg
> foo, english, sss
> foo, english, sffgg
>
> can't quite seem to get it right!!
>
> thoughts/comments... etc...
>
> thanks
>
> --------------------
> $a=array("college"=> "foo",
> "dept"=>array("dept"=> "physics",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> ),
> "dept"=>array("dept"=> "english",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> )
> );
You can't. You're array is valid but the second 'dept' key overwrites
the first. Thus the physics dept is lost.
Check it for yourself... print_r( $a )
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 18:55 -0800, bruce wrote:
> hey robert..
>
> ok.. so if i changed the array to have a dept1, and a dept2
>
> $a=array("college"=> "foo",
> "dept1"=>array("dept"=> "physics",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> ),
> "dept2"=>array("dept"=> "english",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> )
> );
> how would i iterate through this..??
Your array is terribly structured. But the following provides traversal
in the way you want:
<?php
$a = array
(
"college" => "foo",
"dept1" => array
(
"dept" => "physics",
"class" => array
(
"class1" => "sss",
"class2" => "sffgg"
)
),
"dept2" => array
(
"dept" => "english",
"class" => array
(
"class1" => "sss",
"class2" => "sffgg"
)
)
);
$college = $a['college'];
foreach( $a as $deptKey => $deptInfo )
{
if( strpos( $deptKey, 'dept' ) === 0 )
{
$dept = $deptInfo['dept'];
foreach( $deptInfo['class'] as $class )
{
echo "$college, $dept, $class\n";
}
}
}
?>
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
hey robert!!
thanks. and yeah, you're right, it's not the best.. so tell me, given that
i'm ripping through this on the fly, and i can have the structure in any way
i choose. this is just to simulate/populate some test tbls.. what's a better
way to create an array structure to have a collegename, followed by some
deptnames, followed by some classnames for the depts...
perhaps something like this??
$a = array
(
"college" => "foo",
array
(
"dept" => "physics",
"class" => array
(
"class1" => "sss",
"class2" => "sffgg"
)
),
array
(
"dept" => "english",
"class" => array
(
"class1" => "sss",
"class2" => "sffgg"
)
)
);
-----Original Message-----
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 27, 2008 7:10 PM
To: bruce
Cc: 'PHP General list'
Subject: RE: [PHP] array/iteration issue!!
On Thu, 2008-11-27 at 18:55 -0800, bruce wrote:
> hey robert..
>
> ok.. so if i changed the array to have a dept1, and a dept2
>
> $a=array("college"=> "foo",
> "dept1"=>array("dept"=> "physics",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> ),
> "dept2"=>array("dept"=> "english",
> "class"=>array("class1"=>"sss","class2"=>"sffgg")
> )
> );
> how would i iterate through this..??
Your array is terribly structured. But the following provides traversal
in the way you want:
<?php
$a = array
(
"college" => "foo",
"dept1" => array
(
"dept" => "physics",
"class" => array
(
"class1" => "sss",
"class2" => "sffgg"
)
),
"dept2" => array
(
"dept" => "english",
"class" => array
(
"class1" => "sss",
"class2" => "sffgg"
)
)
);
$college = $a['college'];
foreach( $a as $deptKey => $deptInfo )
{
if( strpos( $deptKey, 'dept' ) === 0 )
{
$dept = $deptInfo['dept'];
foreach( $deptInfo['class'] as $class )
{
echo "$college, $dept, $class\n";
}
}
}
?>
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-27 at 19:36 -0800, bruce wrote:
> hey robert!!
>
> thanks. and yeah, you're right, it's not the best.. so tell me, given that
> i'm ripping through this on the fly, and i can have the structure in any way
> i choose. this is just to simulate/populate some test tbls.. what's a better
> way to create an array structure to have a collegename, followed by some
> deptnames, followed by some classnames for the depts...
>
> perhaps something like this??
>
> $a = array
> (
> "college" => "foo",
> array
> (
> "dept" => "physics",
> "class" => array
> (
> "class1" => "sss",
> "class2" => "sffgg"
> )
> ),
> array
> (
> "dept" => "english",
> "class" => array
> (
> "class1" => "sss",
> "class2" => "sffgg"
> )
> )
> );
Not quite. The following is probably what you want:
<?php
$colleges = array
(
array
(
'name' => 'Blah Blah University',
'depts' => array
(
array
(
'name' => 'physics',
'classes' => array
(
'sss',
'sffgg',
),
),
array
(
'name' => 'english',
'classes' => array
(
'sss',
'sffgg',
),
),
),
),
array
(
'name' => 'Glah Gleh University',
'depts' => array
(
array
(
'name' => 'physics',
'classes' => array
(
'sss',
'sffgg',
),
),
array
(
'name' => 'english',
'classes' => array
(
'sss',
'sffgg',
),
),
),
),
);
foreach( $colleges as $college )
{
$collegeName = $college['name'];
foreach( $college['depts'] as $dept )
{
$deptName = $dept['name'];
foreach( $dept['classes'] as $className )
{
echo "$collegeName, $deptName, $className\n";
}
}
}
?>
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
-----------------------------------------------------------------------
jason liang wants to stay in better touch using some of Google's coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-e7afe1e911-a3e11970e1-2c33d93559613f2e
You'll need to click this link to be able to chat with jason liang.
To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with jason liang, visit:
http://mail.google.com/mail/a-e7afe1e911-a3e11970e1-7575338d28
Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
that are relevant to the content of your messages
All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:
http://www.google.com/talk/
Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
client
Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!
Thanks,
The Google Team
To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html
(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).
--- End Message ---
--- Begin Message ---
Hi all
I am comfused about the function ob_end_flush.In the manual:This function
will send the contents of the topmost output buffer (if any) and turn this
output buffer off.
i have made such tests.
<?php
ob_start();
echo "hello word!";
ob_end_flush();
?>
this works alright.the script output "hello world!".
<?php
ob_start();
echo "hello word!";
ob_end_flush();
ob_clean();
?>
this script output nothing.i don't know why this heppan.why the ob_clean
function can affect the output?ob_end_flush has send the content( in this
case it is "hello word!") and turn off the buffer!
thanks.
Jason
--- End Message ---