Prevent an included file from exiting

Posted on 2011-04-26
Last Modified: 2012-05-11
I have a script that includes an external file. However the external file does an exit(); statement which causes my script to stop running as well.

Is there any way that I can stop the external file from doing the exit?
Question by:AnuarJamlus
    LVL 36

    Accepted Solution

    You cannot control the external file exit from your current file. You may need to change in the external file   exit; in such way to continue...
    LVL 1

    Author Comment

    So there's no way to reuse any functions from the external file without being exited halfway?
    LVL 82

    Assisted Solution

    by:Dave Baldwin
    Either it's executing inline or you are calling the function that has the 'exit'.  In either case, you have to change something to use those functions.  I would be inclined to make a copy of that file and edit it to suit my needs.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
    The viewer will learn how to dynamically set the form action using jQuery.

    755 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

    17 Experts available now in Live!

    Get 1:1 Help Now