PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



Dynamic Loading

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General
View previous topic :: View next topic  
Author Message
scollo
Guest





PostPosted: Tue Feb 16, 1999 8:23 pm    Post subject: Dynamic Loading Reply with quote

Hello,

I'm trying to dynamically load a library in my PHP script.

When I tried:

dl ("test.php3");

I received the message:

Fatal error: Unable to load dynamic library './test.php3' - (then some random characters) invalid ELF header...

I checked my php3.ini file. Experimentally, I've added the lines:

enable_dl=On; extension=test.php3;

But I still get the "invalid ELF header".

What is an ELF header?
What am I doing wrong?
How can I fix it?
Back to top
scollo
Guest





PostPosted: Wed Feb 17, 1999 4:29 am    Post subject: RE: Dynamic Loading Reply with quote

Well, I now see that I need require() or include() instead of dl().

Live and learn.
Back to top
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum






Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum