www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - digitalmars.com main page is broken

reply Denis Koroskin <2korden gmail.com> writes:
digitalmars.com main page is messed and shows php source code
Dec 22 2008
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Denis Koroskin wrote:
 digitalmars.com main page is messed and shows php source code

Heh, and www.digitalmars.com looks correct. Andrei
Dec 22 2008
prev sibling parent reply Walter Bright <newshound1 digitalmars.com> writes:
Denis Koroskin wrote:
 digitalmars.com main page is messed and shows php source code

What browser are you using? It looks correct when I load it.
Dec 22 2008
next sibling parent bearophile <bearophileHUGS lycos.com> writes:
Walter Bright:
 Denis Koroskin wrote:
 digitalmars.com main page is messed and shows php source code

What browser are you using? It looks correct when I load it.

I am using Firefox 3.05 and it looks broken, I can see the code: "; } curl_close($ch); } else if ( ini_get('allow_url_fopen') == '1') { if(!$response= file_get_contents("http://".$host.$script)){ $response=""; } } else { $fp = fsockopen($host, '80'); if( !$fp ) { $response = ""; } else { fputs($fp, "GET $script HTTP/1.0\r\nHost: $host\r\n\r\n"); while ( $line = fread( $fp, 4096 ) ) { $response .= $line; } fclose( $fp ); if(!$response= substr($response, strpos($response, "\r\n\r\n") + 4)){ $response = ""; } } } $response=$response==1?"":$response; echo $response; ?> Bye, bearophile
Dec 22 2008
prev sibling parent reply Denis Koroskin <2korden gmail.com> writes:
Walter Bright Wrote:

 Denis Koroskin wrote:
 digitalmars.com main page is messed and shows php source code

What browser are you using? It looks correct when I load it.

Check out http://digitalmars.com, not http://www.digitalmars.com The latter one works ok (thanks to Adrei who noticed it).
Dec 22 2008
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Denis Koroskin wrote:
 Walter Bright Wrote:
 
 Denis Koroskin wrote:
 digitalmars.com main page is messed and shows php source code


Check out http://digitalmars.com, not http://www.digitalmars.com The latter one works ok (thanks to Adrei who noticed it).

I see. I wonder why the difference.
Dec 22 2008
parent Kenny B <funisher gmail.com> writes:
Walter Bright wrote:
 Denis Koroskin wrote:
 Walter Bright Wrote:

 Denis Koroskin wrote:
 digitalmars.com main page is messed and shows php source code


Check out http://digitalmars.com, not http://www.digitalmars.com The latter one works ok (thanks to Adrei who noticed it).

I see. I wonder why the difference.

It appears that the non-www domain doesn't have PHP running. However, I may add that php code is pretty dodgy and pretty useless (for page statistics, I'd use google analytics). So, if you open http://digitalmars.com/ then it'll try and open a connection to: http://links.cyl0n.com/outbound/multi_links.php?site=347&page=/ which returns your Helpful Info box over cURL and prints it out
Dec 22 2008