1

Topic: simplexml & extern.php

Hi. I just want to know how to use extern.php with the new function simplexml_load_file() of PHP 5

When I try "simplexml_load_file('./punbb/extern.php?action=active&type=RSS')" I have an error : " failed to load external entity"
I also tried with "rawurlencode('./punbb/extern.php?action='.urlencode('active&type=rss'))" but nothing better...
Someone have tried and suceed ?

P.S. sorry for my english, i'm french.. hmm

Re: simplexml & extern.php

maybe implexml_load_file('http://punbb.org/forums/extern.php?action=active&type=RSS')

3

Re: simplexml & extern.php

No.. it doesn't work.. I have this error : "failed to load external entity".. and also "connection timed out"

That I don't understank, it's it seems work without uri parameters.. (but extern.php needs it)

Re: simplexml & extern.php

http://www.phpbuilder.com/annotate/mess … id=1012045
Try the complete path?

5

Re: simplexml & extern.php

I work on linux and I tried '/home/xxxx/www/punbb/...' but it doesn't works..

Re: simplexml & extern.php

you can't use stuff like ?action=active&type=RSS using a local address

simplexml_load_file('http://punbb.org/forums/extern.php?action=active&type=RSS')

works fine

7

Re: simplexml & extern.php

Does it work for you ? In my side, I have a connection timed out..

$punbb_xml = 'http://newbiecontest.n0ne.org/punbb/ext … p;type=RSS';
If (@!$xmlfile = Simplexml_Load_File($punbb_xml)) {
    Echo "</table>Accès aux données impossibles..\n</table>";
    Return;
}

Re: simplexml & extern.php

$a = simplexml_load_file('http://punbb.org/forums/extern.php?action=active&type=RSS');
print_r($a);

works fine for me.

9

Re: simplexml & extern.php

It seems come to my server.. (bad configuartion ?)
It works fine in local.. but not on my server.. hmm