Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OT: Apache, PHP & SimpleXML

0 views
Skip to first unread message

elyob

unread,
Nov 24, 2009, 1:40:46 PM11/24/09
to
Just wondering if the FOA can give me hand ...

I'm writing an application that will be getting an XML file from a
third party. Am pretty sure that my class worked a while ago, as I was
happily testing. However, I think that perhaps upgrading my Ubuntu
server has thrown a spanner in the works ... it seems now that PHP is
having trouble seeing these remote files. I do get a response from the
third party, however they give me a "XML not well formed" error. I
know for a fact it is well formed though.

To prove it, I visited the URL in my web browser, no problems. Full
details come back. I then did a CURL from the server itself, again no
problems. Finally I ran the lynx browser on the server and it gets the
full content as well.

So, as far as I can tell, there are no problems with routing through
my router and no ports are closed which are necessary.

However, simplexml_load_file() comes back with an error, and even
file_exists() comes back false. I've been getting this in two
different systems (one with Zend Framework, another with a simple OO
system I am testing with - no framework).

I am completely stumped and am pretty sure it's now only PHP and
SimpleXML that is to blame. Can anyone give me any suggestions?
Perhaps it's to do with XML 1.0 v 1.1? I don't know and am looking
into this.

Help! Thanks!

elyob

unread,
Nov 24, 2009, 1:43:23 PM11/24/09
to
Sorry, wrong group .. but still ... there may be some help in here!

Happi Monday

unread,
Nov 24, 2009, 4:20:48 PM11/24/09
to
elyob wrote:
> Sorry, wrong group .. but still ... there may be some help in here!

You're kidding, right?
You clearly need URCM or URMC or whatever it's called!

elyob

unread,
Nov 24, 2009, 7:33:00 PM11/24/09
to

Nope, not kidding. There's are still some bright people in here.
Overrun by mongrels though.

Happi Monday

unread,
Nov 25, 2009, 4:40:27 PM11/25/09
to
elyob wrote:

> Overrun by mongrels though.

Close - I'm sure you mean mods... from the other side.


0 new messages