Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Fix for PHP bug reporting error UNIX
If you create a PHP page in Dreamweaver or similar Macintosh application, any bugs will be reported as being on line 1, no matter where they are. This is because the PHP parser is expecting Unix style line breaks. Since it doesn't find them, it thinks the entire page is all one line. This doesn't hurt the running of the PHP code, but it does make it very hard to find any typos or other bugs in the code.

The easiest way to fix this is to open the PHP document in BBEdit and Save As. Click on the OPTIONS button, and select Unix line breaks.

Also, if you are looking for a good SQL tutorial, with a live SQL server, check the following URLS:
  • Currently 2.67 / 5
  You rated: 4 / 5 (3 votes cast)

Fix for PHP bug reporting error | 1 comments | Create New Account
Click here to return to the 'Fix for PHP bug reporting error' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Dreamweaver Prefs
Authored by: jpinnix on Apr 09, '01 12:11:07PM

You can also set Dreamweaver to use Unix style line breaks by selecting Edit, Preferences, Code Format. Then beside Line Breaks, select LF (Unix). Then all of your files will have the correct line number to see where your PHP problem is.

[ Reply to This | # ]