Re: [PHP] How can I do this correctly? Trying to get gd to work...

2002-01-08 Thread João P. Bragança

You must change extension_ dir php.ini.

Also Re: [PHP] Question about Php/Mysql. Unsure if it's enabled.

Those are enabled by default, also in your php.ini

At 03:22 1/8/02 -0500, you wrote:
with dl() function. Thanks for your time. Even though I read php.net's
support on dl, I still cannot get it to work, so I figured I'd ask (if I may)

The syntax was:
?
dl(libdg.so)
?

ERROR:

Warning: Unable to load dynamic library './libdgso' - ./libdgso: cannot open
shared object file: No such file or directory in
/home/sites/site7/web/php/page.php on line 2

Line 5 is of course
dl(libgd.so)

Which .so file should I choose to use and is there a specific path I must
type?
/usr/lib/libgd.so.1.8.3
/usr/lib/libgd.so.1
/usr/lib/libgd.so

Thanks. I just want to try to load gd using this method so I can become more
familiar with it..

Joel

Sincerely,

João P. Bragança


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Question About W32 API

2002-01-07 Thread João P. Bragança

Let's say I'm doing the following:

w32api_deftype (
 'STRUCT',
 'long', 'someNumber',
 'string', 'someText',
 'int', 'someInt'
);
w32api_register_function('library', 'test', 'int');
$test = w32api_init_dtype('WHATEVER');
test($test);

The function test should place data into STRUCT $test. print_r($test) gives 
me 'Resource ID.' Will I have to use some other library function to tell me 
what's in $test or can I use php to do it?


Sincerely,

João P. Bragança


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]