joined:May 31, 2012
We have a managed dedicated server that has just been updated to Apace2 and PHP 5.2.17. (Originally PHP 4.4.9 which is still there).
We use the include command on our .php pages and also have a line in .htaccess file to run the include command in our .htm pages. Everything was working fine until the upgrade.
In the .htaccess file we have ben told to use the following line AddHandler x-mapp-php5 .htm
Everything is working okay but for the inclusion of RSS feeds that we obtain from licenced 3rd party websites. These inclusions work okay on .php pages but not on the .htm pages.
This is the error message we get :
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /homepages/46/d69851822/htdocs/#*$!x.com/index.htm on line 29
Warning: include(http://www.#*$!x.com/rssbuild/rss2html.php?XMLFILE=http://feeds.#*$!.co.uk/news/rss.xml&TEMPLATE=http://www.#*$!xo.com/rssbuild/template.html&MAXITEMS=10) [function.include]: failed to open stream: no suitable wrapper could be found in /homepages/46/d69851822/htdocs/#*$!x.com/index.htm on line 29
Warning: include() [function.include]: Failed opening 'http://www.#*$!x.com/rssbuild/rss2html.php?XMLFILE=http://feeds.#*$!x.co.uk/news/rss.xml&TEMPLATE=http://www.#*$!xx.com/rssbuild/template.html&MAXITEMS=10' for inclusion (include_path='.:/usr/lib/php5') in /homepages/46/d69851822/htdocs/#*$!xx.com/index.htm on line 29
I have been told to put a php.ini file in the directory with just the following lines of text to override the main php.ini file:
register_globals = On
allow_url_fopen = On
allow_url_include = On
But this has no effect.