469,362 Members | 2,450 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

fopen failed to open remote URL

Hi,

Im trying to integrate a rss feed into my page but struggle to fetch the
dynamic generation of the rss feed

If I type this into the browser as a result the xml file is shown as
expected
http://svnweb.tuxfamily.org/rss.php?...0&sc=0&isdir=1

If I use it with a php-script which opens the url with fopen etc.
it just gives me
Warning:
fopen(http://svnweb.tuxfamily.org/rss.php?...sc=0&isdir=1):
failed to open stream: HTTP request failed! HTTP/1.0 503 Service
Unavailable in
/data/web/b6/c9/b1/proaudio.tuxfamily.org/htdocs/wiki/extensions/rss.php
on line 5
you can call it here:
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

the whole script is for now just:

<?php

$url =
'http://svnweb.tuxfamily.org/rss.php?repname=proaudio+%28ckpp%29&path=%2F&rev=0 &sc=0&isdir=1';

$fp = fopen($url, 'r');

?>

Whats going wrong?

-----------------------------------------------------------------------
my php-configuration:

PHP Version 4.3.10-16

System Linux tequila 2.6.17.7-grsec #1 SMP Thu Jul 27 04:40:10 CEST
2006 i686
Build Date Aug 24 2005 20:10:18
Configure Command '../configure' '--prefix=/usr'
'--enable-discard-path' '--enable-fastcgi'
'--with-config-file-path=/etc/php4/cgi' '--enable-memory-limit'
'--disable-debug' '--with-regex=php' '--disable-rpath'
'--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc'
'--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr'
'--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx'
'--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql'
'--without-sybase-ct'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/cgi/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2,
compress.zlib
-----------------------------------------------------------------------
thx for any input

Greetings Frieder
Sep 6 '06 #1
6 14231
Frieder Bürzele wrote:
Hi,

Im trying to integrate a rss feed into my page but struggle to fetch the
dynamic generation of the rss feed

If I type this into the browser as a result the xml file is shown as
expected
http://svnweb.tuxfamily.org/rss.php?...0&sc=0&isdir=1
If I use it with a php-script which opens the url with fopen etc.
it just gives me
Warning:
fopen(http://svnweb.tuxfamily.org/rss.php?...sc=0&isdir=1):
failed to open stream: HTTP request failed! HTTP/1.0 503 Service
Unavailable in
/data/web/b6/c9/b1/proaudio.tuxfamily.org/htdocs/wiki/extensions/rss.php
on line 5
you can call it here:
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

the whole script is for now just:

<?php

$url =
'http://svnweb.tuxfamily.org/rss.php?repname=proaudio+%28ckpp%29&path=%2F&rev=0 &sc=0&isdir=1';
$fp = fopen($url, 'r');

?>

Whats going wrong?

-----------------------------------------------------------------------
my php-configuration:

PHP Version 4.3.10-16

System Linux tequila 2.6.17.7-grsec #1 SMP Thu Jul 27 04:40:10 CEST
2006 i686
Build Date Aug 24 2005 20:10:18
Configure Command '../configure' '--prefix=/usr'
'--enable-discard-path' '--enable-fastcgi'
'--with-config-file-path=/etc/php4/cgi' '--enable-memory-limit'
'--disable-debug' '--with-regex=php' '--disable-rpath'
'--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc'
'--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr'
'--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx'
'--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql'
'--without-sybase-ct'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/cgi/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2,
compress.zlib
-----------------------------------------------------------------------
thx for any input

Greetings Frieder
Works fine here.

503 is generally a temporary error. It could just mean the server was
overloaded.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 6 '06 #2
Jerry Stuckle wrote:
Frieder Bürzele wrote:
>Hi,

Im trying to integrate a rss feed into my page but struggle to fetch
the dynamic generation of the rss feed

If I type this into the browser as a result the xml file is shown as
expected
http://svnweb.tuxfamily.org/rss.php?...0&sc=0&isdir=1
If I use it with a php-script which opens the url with fopen etc.
it just gives me
Warning:
fopen(http://svnweb.tuxfamily.org/rss.php?...sc=0&isdir=1):
failed to open stream: HTTP request failed! HTTP/1.0 503 Service
Unavailable in
/data/web/b6/c9/b1/proaudio.tuxfamily.org/htdocs/wiki/extensions/rss.php
on line 5
you can call it here:
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

the whole script is for now just:

<?php

$url =
'http://svnweb.tuxfamily.org/rss.php?repname=proaudio+%28ckpp%29&path=%2F&rev=0 &sc=0&isdir=1';
$fp = fopen($url, 'r');

?>

Whats going wrong?

-----------------------------------------------------------------------
my php-configuration:

PHP Version 4.3.10-16

System Linux tequila 2.6.17.7-grsec #1 SMP Thu Jul 27 04:40:10
CEST 2006 i686
Build Date Aug 24 2005 20:10:18
Configure Command '../configure' '--prefix=/usr'
'--enable-discard-path' '--enable-fastcgi'
'--with-config-file-path=/etc/php4/cgi' '--enable-memory-limit'
'--disable-debug' '--with-regex=php' '--disable-rpath'
'--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr'
'--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql'
'--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr'
'--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm'
'--without-mysql' '--without-sybase-ct'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/cgi/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps,
compress.bzip2, compress.zlib
-----------------------------------------------------------------------
thx for any input

Greetings Frieder

Works fine here.

503 is generally a temporary error. It could just mean the server was
overloaded.

does this link work for you?
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

I still get the same. Browser works fine but using fopen still gives me 503

thx
Sep 6 '06 #3
Frieder Bürzele wrote:
Jerry Stuckle wrote:
>Frieder Bürzele wrote:
>>Hi,

Im trying to integrate a rss feed into my page but struggle to fetch
the dynamic generation of the rss feed

If I type this into the browser as a result the xml file is shown as
expected
http://svnweb.tuxfamily.org/rss.php?...0&sc=0&isdir=1
If I use it with a php-script which opens the url with fopen etc.
it just gives me
Warning:
fopen(http://svnweb.tuxfamily.org/rss.php?...sc=0&isdir=1):
failed to open stream: HTTP request failed! HTTP/1.0 503 Service
Unavailable in
/data/web/b6/c9/b1/proaudio.tuxfamily.org/htdocs/wiki/extensions/rss.php
on line 5
you can call it here:
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

the whole script is for now just:

<?php

$url =
'http://svnweb.tuxfamily.org/rss.php?repname=proaudio+%28ckpp%29&path=%2F&rev=0 &sc=0&isdir=1';
$fp = fopen($url, 'r');

?>

Whats going wrong?

-----------------------------------------------------------------------
my php-configuration:

PHP Version 4.3.10-16

System Linux tequila 2.6.17.7-grsec #1 SMP Thu Jul 27 04:40:10
CEST 2006 i686
Build Date Aug 24 2005 20:10:18
Configure Command '../configure' '--prefix=/usr'
'--enable-discard-path' '--enable-fastcgi'
'--with-config-file-path=/etc/php4/cgi' '--enable-memory-limit'
'--disable-debug' '--with-regex=php' '--disable-rpath'
'--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr'
'--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql'
'--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr'
'--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm'
'--without-mysql' '--without-sybase-ct'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/cgi/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps,
compress.bzip2, compress.zlib
-----------------------------------------------------------------------
thx for any input

Greetings Frieder


Works fine here.

503 is generally a temporary error. It could just mean the server was
overloaded.


does this link work for you?
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

I still get the same. Browser works fine but using fopen still gives me 503

thx
No, but it doesn't work from my browser, either.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 6 '06 #4

Frieder Brzele wrote:
Hi,

Im trying to integrate a rss feed into my page but struggle to fetch the
dynamic generation of the rss feed

If I type this into the browser as a result the xml file is shown as
expected
http://svnweb.tuxfamily.org/rss.php?...0&sc=0&isdir=1

If I use it with a php-script which opens the url with fopen etc.
it just gives me
Warning:
fopen(http://svnweb.tuxfamily.org/rss.php?...sc=0&isdir=1):
failed to open stream: HTTP request failed! HTTP/1.0 503 Service
Unavailable in
/data/web/b6/c9/b1/proaudio.tuxfamily.org/htdocs/wiki/extensions/rss.php
on line 5
you can call it here:
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

the whole script is for now just:

<?php

$url =
'http://svnweb.tuxfamily.org/rss.php?repname=proaudio+%28ckpp%29&path=%2F&rev=0 &sc=0&isdir=1';

$fp = fopen($url, 'r');

?>

Whats going wrong?

-----------------------------------------------------------------------
my php-configuration:

PHP Version 4.3.10-16

System Linux tequila 2.6.17.7-grsec #1 SMP Thu Jul 27 04:40:10 CEST
2006 i686
Build Date Aug 24 2005 20:10:18
Configure Command '../configure' '--prefix=/usr'
'--enable-discard-path' '--enable-fastcgi'
'--with-config-file-path=/etc/php4/cgi' '--enable-memory-limit'
'--disable-debug' '--with-regex=php' '--disable-rpath'
'--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc'
'--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr'
'--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx'
'--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql'
'--without-sybase-ct'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/cgi/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2,
compress.zlib
-----------------------------------------------------------------------
thx for any input

Greetings Frieder
Set

allow_url_fopen = On

in your php.ini file and try it again.

Chris

Sep 6 '06 #5
Chris Parker wrote:
Frieder Brzele wrote:
>Hi,

Im trying to integrate a rss feed into my page but struggle to fetch the
dynamic generation of the rss feed

If I type this into the browser as a result the xml file is shown as
expected
http://svnweb.tuxfamily.org/rss.php?...0&sc=0&isdir=1

If I use it with a php-script which opens the url with fopen etc.
it just gives me
Warning:
fopen(http://svnweb.tuxfamily.org/rss.php?...sc=0&isdir=1):
failed to open stream: HTTP request failed! HTTP/1.0 503 Service
Unavailable in
/data/web/b6/c9/b1/proaudio.tuxfamily.org/htdocs/wiki/extensions/rss.php
on line 5
you can call it here:
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

the whole script is for now just:

<?php

$url =
'http://svnweb.tuxfamily.org/rss.php?repname=proaudio+%28ckpp%29&path=%2F&rev=0 &sc=0&isdir=1';

$fp = fopen($url, 'r');

?>

Whats going wrong?

-----------------------------------------------------------------------
my php-configuration:

PHP Version 4.3.10-16

System Linux tequila 2.6.17.7-grsec #1 SMP Thu Jul 27 04:40:10 CEST
2006 i686
Build Date Aug 24 2005 20:10:18
Configure Command '../configure' '--prefix=/usr'
'--enable-discard-path' '--enable-fastcgi'
'--with-config-file-path=/etc/php4/cgi' '--enable-memory-limit'
'--disable-debug' '--with-regex=php' '--disable-rpath'
'--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc'
'--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr'
'--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx'
'--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql'
'--without-sybase-ct'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/cgi/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2,
compress.zlib
-----------------------------------------------------------------------
thx for any input

Greetings Frieder

Set

allow_url_fopen = On

in your php.ini file and try it again.

Chris
You're right. But I can't change the config file as its not my server
Are there other possibilities to display the content of a url within a
php-script?

thx

Frieder
Sep 7 '06 #6

Frieder Brzele wrote:
Chris Parker wrote:
Frieder Brzele wrote:
Hi,

Im trying to integrate a rss feed into my page but struggle to fetch the
dynamic generation of the rss feed

If I type this into the browser as a result the xml file is shown as
expected
http://svnweb.tuxfamily.org/rss.php?...0&sc=0&isdir=1

If I use it with a php-script which opens the url with fopen etc.
it just gives me
Warning:
fopen(http://svnweb.tuxfamily.org/rss.php?...sc=0&isdir=1):
failed to open stream: HTTP request failed! HTTP/1.0 503 Service
Unavailable in
/data/web/b6/c9/b1/proaudio.tuxfamily.org/htdocs/wiki/extensions/rss.php
on line 5
you can call it here:
http://proaudio.tuxfamily.org/wiki/extensions/rss.php

the whole script is for now just:

<?php

$url =
'http://svnweb.tuxfamily.org/rss.php?repname=proaudio+%28ckpp%29&path=%2F&rev=0 &sc=0&isdir=1';

$fp = fopen($url, 'r');

?>

Whats going wrong?

-----------------------------------------------------------------------
my php-configuration:

PHP Version 4.3.10-16

System Linux tequila 2.6.17.7-grsec #1 SMP Thu Jul 27 04:40:10 CEST
2006 i686
Build Date Aug 24 2005 20:10:18
Configure Command '../configure' '--prefix=/usr'
'--enable-discard-path' '--enable-fastcgi'
'--with-config-file-path=/etc/php4/cgi' '--enable-memory-limit'
'--disable-debug' '--with-regex=php' '--disable-rpath'
'--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc'
'--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr'
'--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx'
'--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql'
'--without-sybase-ct'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php4/cgi/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2,
compress.zlib
-----------------------------------------------------------------------
thx for any input

Greetings Frieder
Set

allow_url_fopen = On

in your php.ini file and try it again.

Chris

You're right. But I can't change the config file as its not my server
Are there other possibilities to display the content of a url within a
php-script?

thx

Frieder
You could try ini_set():

http://www.php.net/manual/en/function.ini-set.php

I am not sure if it will work with fopen.

Chris Parker

Sep 7 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Grant | last post: by
2 posts views Thread by Loopy | last post: by
3 posts views Thread by Patrice | last post: by
10 posts views Thread by pjlsr | last post: by
2 posts views Thread by Mike | last post: by
25 posts views Thread by subramanian100in | last post: by
reply views Thread by milan.topalov | last post: by
IT Master2
7 posts views Thread by IT Master2 | last post: by
2 posts views Thread by Giorgio Sam | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.