Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-15-2009, 02:35 PM   #1
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
CODERS: Do NOT let clients use Expression to modify php files!

I'm posting this up to save any other coders a very very long search through lots of code...

Microsoft Expression inserts an invisible mark called a 'byte order mark (http://en.wikipedia.org/wiki/Byte-order_mark)'. It causes the php scripts to output ? at the end of files, but its invisible in the code even in other editors. The only way to see it is if you output something before the byte order mark was inserted:

In my case, my client opened the scripts config file, changed something and saved it (thus inserting this invisible mark that even i couldn't see in another editor afterwards).

<?
include('config.php');
?>

Outputted nothing, whereas

<?
echo 'test';
include('config.php');
?>

Would output "test?", yet config.php itself had no output at all.

So in summary, if you are experiencing mysterious code problems and are convinced you have gone mad, ask if someone using expression has edited your code
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2009, 02:48 PM   #2
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
I bet you figured that one out within no time ;)

Thanks for the heads up.

FWIW, Coda removes byte order marks on every save if saving as unicode (utf-8 no BOM)

Also, don't BOM's show up when viewing invisible characters? I've always found the root of many an obscure problem by viewing invisible characters and looking for things "out of the ordinary"
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2009, 05:08 PM   #3
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Is that the ^M crap? There are alot of editors and ftp programs that add that crap on windows.
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2009, 05:48 PM   #4
AIbenjamink
Confirmed User
 
AIbenjamink's Avatar
 
Industry Role:
Join Date: Jan 2009
Posts: 420
Have yet to experience this, but thanks for the heads up
__________________
Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

AIbenjamink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2009, 06:15 PM   #5
Adam X
Now Giving 1 Fuck Daily
 
Adam X's Avatar
 
Industry Role:
Join Date: Apr 2002
Location: California
Posts: 2,493
konrads the man..

ahh the acursed invisible chars.. reminds of old apple ][+ days...
__________________
Cronfund - Buy CRON now and earn 4% plus coin value. The best of DEFI!
Adam X is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.