Sablotron and remote URI's
| From: | Darron Froese | Date: | Thu, 23 Aug 2001 05:31:28 +0000 |
| Subject: | Sablotron and remote URI's | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64045@lists.php.net to get a copy of this message | ||
For some reason - this works just fine:
$processor = xslt_create();
xslt_run($processor, 'diary.xsl', 'test.xml');
print xslt_fetch_result($processor);
xslt_free($processor);
While this doesn't work at all:
$processor = xslt_create();
xslt_run($processor, 'diary.xsl', 'http://baby.froese.org/baby.xml');
print xslt_fetch_result($processor);
xslt_free($processor);
Fatal error: cannot read from URI 'http://baby.froese.org/baby.xml' in
/home/darron/public_html/baby/xslt.php on line 38
Can I not read from a remote URI?
I can segfault the server at will if I use fopen to work around that URI
problem:
<?php
$fp = fopen ("http://baby.froese.org/baby.xml",
"r");
$xml = fread($fp, 10000000);
fclose ($fp);
$processor = xslt_create();
xslt_run($processor, 'diary.xsl', $xml);
print xslt_fetch_result($processor);
xslt_free($processor);
?>
[Wed Aug 22 23:02:00 2001] [notice] child pid 15248 exit signal Segmentation
fault (11)
[Wed Aug 22 23:02:01 2001] [notice] child pid 15246 exit signal Segmentation
fault (11)
Note - it segfaults until I comment out the xslt_run command.
Any ideas?
I tried to update to 4.0.7-cvs just now but for some reason I can't get it
to buildconf properly.
I'm running:
Linux 2.2.19
Mandrake 7.1
expat-1.95.2
Sablotron 0.65
I've got PHP 4.0.6 compiled and working properly with this configure script:
./configure \
--with-apxs=/usr/local/apache_1.3.19/bin/apxs \
--with-mysql=/usr/local/mysql-3.23.38 \
--with-pgsql=/usr/local/pgsql-7.1.2 \
--enable-ftp \
--with-curl \
--with-zlib \
--with-pspell \
--with-ldap \
--with-pdflib=/usr/local/pdflib-4 \
--with-imap=/usr/local/src/imap-4.5 \
--with-zlib-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-gd \
--with-ttf \
--with-t1lib \
--with-xml \
--with-swf=/usr/local \
--with-ming \
--with-sablot \
--with-xslt-sablot \
--with-expat-dir=/usr \
--with-java=/usr/local/jdk \
--with-gettext \
--with-mcrypt \
--with-mhash \
--enable-wddx \
--enable-sockets \
--enable-calendar \
--enable-trans-sid \
--enable-track-vars=yes \
--enable-magic-quotes=yes
Thanks.
--
darron froese
new media technologist
sutton javelin corporate communications
t 403.716.0351
f 403.265.7662
e darron@javelindigital.com