The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
the gd library for php
ok im confused about this whole gd library thing, i have php 4.3.0 and i read something about the gd library built in, is it on 4.3.0? if not how do i install it, i've been to the site and that was confusing too? also, can anyone give me an idea or a website on how to use it?
filburt's sig inspired this question |
#2
|
||||
|
||||
A variation of GD2.0 is preinstalled with PHP 4.3.0
If you must check, you can create a PHP file with the following contents, and run it in your browser to check the GD status on your server: PHP Code:
|
#3
|
|||
|
|||
If you plan on duplicating my idea beware that I have a cron job cache the stats every 15 minutes, mainly because it uses around five queries to create the image. If it did that every time somebody requested the image then it would kill the server.
|
#4
|
||||
|
||||
so would it be better to go install the newest version of gd?
|
#5
|
|||
|
|||
You're best off installing PHP 4.3.1 which includes the latest version of the GD library.
|
#6
|
||||
|
||||
ok cool, thanks filburt
|
#7
|
||||
|
||||
ok i have php 4.3.1 installed on my windows server, but if i try to use ImageCreateFromPng i get an undefined function error...any help here?
|
#8
|
||||
|
||||
You have to specify --with-gd for the GD to be enabled. If you want PNG you also have to add --with-png-dir=/usr assuming your png libraries are in /usr.
|
#9
|
||||
|
||||
ok now where do i specify that? in the php.ini file? and i have to go to other websites to get the jpg/png libraries right?
|
#10
|
|||
|
|||
Search for extensions_dir, change it to where you installed php\extensions, and then uncomment the line for GD. In Windows you don't need to recompile it, just restart Apache.
edit: you can output PNGs and JPEGs directly with the built-in module. I think you can read GIFs, too. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|