Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include Library Module

Status
Not open for further replies.

tleish

Programmer
Jan 17, 2001
619
US
I'm fairly new to PHP, but not to programming. The hosting company recently told me that if there was a library/module that I wanted to use that wasn't compiled with their current version of PHP4, then I could upload the lib to a directory and include it myself in the code. I can't seem to find any information on how to do this.

Any ideas? - tleish
 
Ok,what that means is that you will have to find a library, say the GD image libary, that does not come compiled with perl, and install it yourself.

On your webserver, there should be a directory that contains PHP, and a modules directory. If no modules directory, then you can upload the file to the PHP directory.

After you upload the module, you will have to edit the PHP.ini file so when PHP starts up, it includes the module.

Look in the PHP.ini file for something like this:

[tt]
;extension=modulename
[/tt]

If there is something like that, un comment it, (take out the ;) and then type the name of the module.

Save the file and restart PHP.

Hope this helps.

-Vic

P.S. And if you ask me, if your host tells you to install your own modules, I would find another host. Thats the post of a host, so you don't have to worry about the server. Thats what your paying them for. vic cherubini
krs-one@cnunited.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash
====
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top