Web Hosting Reviews for Affiliate Marketers

Unlimited Shared hosting & Unlimited Disk Space from $5.95 - Dreamhost
Solid Managed VPS with 4 IP's from $60 - Liquid Web
Lightning Fast Dedicated Servers & 1GB RAM from $149 - Liquid Web
#1 Domain Registration with WHOIS Privacy - Just $9.95

This Dreamhost support thread was started by rogwei on 2010-03-23 19:11:18:

Post Reply? I am providing a web service on a dreamhost server and the client is receiving what looks like a byte order mark in the content body of the script output as follows. key=EF5859DAB283A56A The relevant lines of script code follow. $msg = ”; … global $msg,$errors; //inside validation function … global $msg; //inside db insert function … global $msg; //inside key generate function … $msg .= ‘key=’.functionThatReturnsString(); //inside key generation function … global $msg; header(’Content-type: text/html’); header(’Content-Length: ‘ . strlen(utf8_decode($msg))); echo $msg; There cannot be a BOM before the header(string) calls or I would be getting a PHP warning, no? I am not getting any warnings. Does echo(string) insert a BOM (or other hidden characters) before the string argument? Can someone tell me how those characters are getting inserted into the content body? I am clueless. Thanks for your attention.

Join in on the original post at the Dreamhost Forum, Sign up for Dreamhost or view our Review of Dreamhost.

Related Web Host Reviews


Close
E-mail It