PHP redirection function error

Posted on 2007-07-22
Last Modified: 2008-03-06
I'm getting this error, this is very strange, since this script was working.. I must have changed something?? :(

Fatal error: Call to undefined function redirect() in /mounted-storage/home43a/sub004/sc31952-BMDX/www/perfiles/mainpage.php on line 102
Question by:axtur
    LVL 17

    Accepted Solution

    Have you looked at line 102 in mainpage.php?

    It sounds like you are calling a function called 'redirect' however this function is not defined in mainpage.php or in any include files linked to by mainpage.php.

    It could be that you have a typo in it or the case isn't the same.
    LVL 142

    Expert Comment

    by:Guy Hengel [angelIII / a3]
    I agree with jasonbytes, you have either a typo, or a missing an "include" to a file where the redirect function has been declared.
    it must be a function that contains the system function header(), I guess...

    Author Comment

    Stupid me, I had uploaded a previous version of a functions.php file where the redirect() function was not yet declared!!

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to dynamically set the form action using jQuery.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now