0

I am importing a library into a script that is being used in a php document, but for the script to run, I need to import a library that is rather large. Is it possible to permanently import the library so I do not need to load it up each time I use the script? Any other workarounds?

2
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by paine_today
-2

You can create a dummy script and keep it running endlessly,
and your library will be always in memory, ready to be used by other scripts;
the dummy script:

import my_library
while 1:
    pass

`

-2

Definitely Not
Though it would be better:

import my_library

raw_input()

Edited by Xantipius

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.