0

An example of my question in the title demonstrates the problem I'm having.

example

sorry don't know how to use jsfiddle.

And how do I fix it?

ron
  • 95
  • 1
  • 7

1 Answers1

2

It seems your "empty file" contain an empty line, http://wx2fly.com/test/emptyFile.php , which means it's not empty !

I think you can fix your problem by making your empty (or not) file starts with <?php, and be sure the php tag is NOT closed at the end of the file.

Asenar
  • 6,732
  • 3
  • 36
  • 49
  • Put up your suggestion `file starts with – ron Apr 22 '13 at 10:01
  • Seems that when using Notepad++ File>New File>SaveAS saves a file size 3 bytes - NOT EMPTY as expected. Using just the `open tag – ron Apr 22 '13 at 10:43
  • It's pretty hard to save an empty file with any editor (even vi ). On unix, you can "touch" an inexistant file to do the job, or type `:> myEmptyFile.php`. If not available (like windows), you may create a file containing only `` (and no space or newline after), or simply the opening php tag – Asenar May 13 '13 at 16:09