1

Hey i am using this code

<?php
header("Location: ../index.php");
?>

and it is just coming up with this error:

Fatal error: Call to undefined function phpinclude() in /home/nzcraftn/public_html/filenz/upload/index.php on line 1

What went wrong?

5
  • the error seems to be in index.php. Show some codes from your index.php instead Commented Aug 25, 2011 at 8:04
  • The error says it all pretty clear - index.php (at line 1) tried to call a function named phpinclude() which - surprisingly, doesn't exist. Commented Aug 25, 2011 at 8:06
  • That code at the top is the index.php code. Commented Aug 25, 2011 at 8:09
  • You might have more than one file that is named index.php. Look into the other file you're redirecting to and show that code. It doesn't help to ask about the wrong code. Commented Aug 25, 2011 at 8:28
  • In case anyone else runs into this issue like I just did, it's an encoding issue. When editing the file in Notepad++ it looked fine, but in regular Notepad there were no linebreaks. You can either add the linebreaks using notepad, or change the encoding style to match your server (UTF-8 without BOM is probably what you want). Commented Mar 28, 2014 at 16:30

1 Answer 1

7

i guess you've got <?phpinclude(...) ?> when it must be <?php include(...) ?>

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

1 Comment

try to look on this code in another designer. may be theres some strange issue with linebreaks

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.