User login

Parse error and other problems with include file- due to bad encoding or something

Parse error: syntax error, unexpected $end in /Users/ben/workspace/repos/agaric/agaric-modules/place/5/place/taxonomy_location/taxonomy_location_admin.inc on line 1

renamed file and started a new one with Mac line endings instead of Unix:

evil_textwrangler-inserted-bad-characters-taxonomy_location_admin.inc

The new file worked. But very soon, a new problem:

warning: Cannot modify header information - headers already sent by (output started at /Users/ben/workspace/repos/agaric/agaric-modules/place/5/place/taxonomy_location/taxonomy_location_admin.inc:1) in /Applications/MAMP/htdocs/joeaustin/includes/common.inc on line 311.

Putting the functions in the main problem and dropping the include solved the problem, so it was definitely an encoding or a Macintosh-vs-Unix line break issue.

Yeah, they have problems with character encoding:

TextWrangler
a product of Bare Bones Software, Inc.
version 2.2.1 (186) of Wed, 14 Feb 2007
copyright ©1992-2007 Bare Bones Software, Inc.
Registered to Benjamin Melan?ßon

Resolution

Searched words: 
TextWrangler

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.