Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Empty Includes

  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Empty Includes

    By necessity, I find myself hiding data in 100 mostly empty includes. I'm using:

    function killErrors(){return true;}
    window.onerror = killErrors;

    so the page renders properly...but notice it's taking a long time to evidently go thru all these includes.

    Is there a better and faster way?

    I have PHP...

    Thanks
    Last edited by zoobie; 08-25-2002 at 09:54 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Depends on the time of year
    Posts
    478
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try figuring out what the individual errors are and address them individually (as in, give them exceptions within each file). That should save some time.

    Duniyadnd

  • #3
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i'm not exactly sure what you're talking about. can you give a clearer example, maybe an excerpt from the code?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Well, I'm not doing anything special...just hiding some code within 100 includes. It's a game.

    Most really don't exist:

    <script language=javascript scr=jhnlpcm.js></script>
    <script language=javascript scr=jznlecm.js></script>
    <script language=javascript scr=jhnletm.js></script> etc x 100

    and some really do.

    But it's taking too long to include all the non-existing includes.

    I need a faster/better way.

    Thanks
    Last edited by zoobie; 08-26-2002 at 03:14 AM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That is incredibly inefficient - more so than you mention, because in some builds of mozilla in win98 and 95, non-existent external dependies can make the page never finish loading ...

    To answer your question though - it depends on why you're storing data in this way in the first place, and more importantly, what kind of discriminatin you use to test for the existence of the variables.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •