Is this problem due to servers change from PHP 4.x to PHP 5.2 or something else?

Please take a look at http://maxoutt.com and [URL=“http://animalpix.com”]http://animalpix.com

I haven’t checked these sites in a week or so and now I find that they look like they don’t have html. It’s just a white background with text and some photos, all the style is gone. I have not made ANY changes for over a month or more.

Godaddy.com says they detect a script problem and that they changed from PHP 4.x to PHP 5.2 and that that could be causing the problem although they say that the new version of php is supposed to be backwards compatible. The pages are php.

Does anyone know what is going on? The CSS and html validate.

I’m noticing that on another site of mine that the pages that have the CSS ON the page instead of referenced to through PHP and stylesheets look okay.
But why is this suddenly a problem??

For example this page is fine: http://www.builtreport.com/galleries.php

This is not: http://www.builtreport.com/backlash_movie_1.php

Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in […] on line […]

Those are the errors you need to fix. You should not be using URLs with include.

Thanks, Logic Earth. Is this something that servers with php 5.2 will not permit but previous versions of PHP did? How was I able to use URLs with include without this problem until now?

They very likely changed the php.ini file – and perhaps turned safe_mode=on which disables allow_url_include IIRC.

Godaddy seems to say that the php.ini file in the main directory of my server(on my end) can be changed to allow urls.

Right now, when I open it, the only text is: rg_emulation=off

Is there some way through the php.ini(the one that I have access to) to allow urls on the includes so I don’t have to individually change 20,000 separate pages?

The php.ini file in your folder only needs to contain the settings that you are overriding. If you are allowed to override other settings then you can do so simply by adding the lines to the php.ini that provide the settings you want.

Thanks.

Does anyone know what code to add to the php.ini file in order to allow URLs with include?

Try reading some of the comments on the safe mode online PHP manual page.

Thanks, Cups.