| Thread overview | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
December 22, 2008 digitalmars.com main page is broken | ||||
|---|---|---|---|---|
| ||||
digitalmars.com main page is messed and shows php source code | ||||
December 22, 2008 Re: digitalmars.com main page is broken | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Denis Koroskin | Denis Koroskin wrote:
> digitalmars.com main page is messed and shows php source code
Heh, and www.digitalmars.com looks correct.
Andrei
| |||
December 22, 2008 Re: digitalmars.com main page is broken | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Denis Koroskin | 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.
| |||
December 22, 2008 Re: digitalmars.com main page is broken | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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 | |||
December 22, 2008 Re: digitalmars.com main page is broken | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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). | |||
December 22, 2008 Re: digitalmars.com main page is broken | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Denis Koroskin | Denis Koroskin wrote:
> 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).
I see. I wonder why the difference.
| |||
December 22, 2008 Re: digitalmars.com main page is broken | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > Denis Koroskin wrote: >> 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). > > 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 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply