Welcome to Geeklog, Anonymous Thursday, April 25 2024 @ 06:12 am EDT

Geeklog Forums

Annoyning Error mEssages


Anonymous

Anonymous
Howdy All! I am using the stockblock with IIS and getting the following messages BUT everything seems to work. I have set error_reporting = E_ERROR per an earlier EMAIL by Squatty but I still get these annoyning messages. How to turn off? Thanks! Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: gethostbyname failed in C:inetpubwwwrootgeeklogpublic_htmlstocksdisplay_stocks.php on line 16 Warning: fsockopen() [function.fsockopen]: unable to connect to finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv &s=^NYA+^GSPC+^IXIC+^DJI:80 in C:inetpubwwwrootgeeklogpublic_htmlstocksdisplay_stocks.php on line 16
 Quote

Status: offline

rawdata

Forum User
Full Member
Registered: 02/17/03
Posts: 236
To suppress those warning messages, try prepending an at sign (ie @) on the fsockopen function like this: @fsockopen(parameter list here) or whatever function is being called on line 16.
 Quote

Anonymous

Anonymous
This worked great!
 Quote

All times are EDT. The time is now 06:12 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content