0

I have what appears to me, to be two identical text files, I copy and paste exactly the same (intentionally erroneous) content in them, being the following:

<?
//error code
$sSQL =  "SELECT error";
fakefunction();
?>

But I get this in tab #1 of my browser:

Fatal error: Call to undefined function fakefunction() in
/home/public_html/notes/textfileone.php on line 3

And I get this in tab #2 of my browser (the same browser as tab #1 is in):

Fatal error: Call to undefined function fakefunction() in 
/home/public_html/notes/textfiletwo.php on line 4

Any idea why this would be happening?

7
  • 1
    NULL char or something like that. From where to where are you copying code? i mean editor. Commented Sep 13, 2012 at 5:15
  • Where is fakefunction() in your code ? Commented Sep 13, 2012 at 5:18
  • @Harry It doesn't exist. The question says that. Commented Sep 13, 2012 at 5:19
  • By browser tab, you mean that you are using a single browser with two or more tabs? Or is it two different browsers? Commented Sep 13, 2012 at 5:25
  • 2
    Compare md5file for both files Commented Sep 13, 2012 at 5:34

1 Answer 1

2

Possibly one of them is being saved with a Byte Order Mark and one without? That would add one more line to the content. Your text editor might be adding it upon save, but hiding it otherwise.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.