Re: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Marek Kilimajer
Lizet Peña de Sola wrote:
Hi all,
I need to use tidy for cleaning up html in my project, our hosting company
has php 4.3.8, so we need to install tidy and make the installation again.
After several times, the configure and make commands replied no error,
however, the phpinfo() doesn't show the package as installed and when we run
the function ini_set() to set the tidy constants in the php.ini file, it
returns nothing, also any call to the tidy library functions gives
error...any ideas of why this isn't working? After a succesfull
installation, is there any enviroment constant we can check or should set?
Thanks a lot in advance, 
Lizet

Do you mean you installed tidy php module on your hosting company 
server? Then you need to load the module using dl():

if (!extension_loaded('tidy')) {
   if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
   dl('/path/to/php_tidy.dll');
   } else {
   dl('/path/to/tidy.so');
   }
}
Loading extensions might be disalowed by your hosting company.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Lizet Peña de Sola
Hello Marek, thanks for your reply.
It was the hosting company support and I the ones installing, yes they have
they have the loading extensions disabled.
However in the package I downloaded from
http://pecl.php.net/package/tidy/1.1 there's no .dll file in it...
Lemme try that script and I'll let you know, thanks
Lizet


-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 12:42 PM
To: Lizet Peña de Sola
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Tidy installation problem in php 4.3.8



Do you mean you installed tidy php module on your hosting company 
server? Then you need to load the module using dl():


if (!extension_loaded('tidy')) {
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
dl('/path/to/php_tidy.dll');
} else {
dl('/path/to/tidy.so');
}
}

Loading extensions might be disalowed by your hosting company.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Marek Kilimajer
Lizet Peña de Sola wrote:
Hello Marek, thanks for your reply.
It was the hosting company support and I the ones installing, yes they have
they have the loading extensions disabled.
However in the package I downloaded from
http://pecl.php.net/package/tidy/1.1 there's no .dll file in it...
Lemme try that script and I'll let you know, thanks
Lizet
.dll files are only for windows.
do you want to install the extension at the root level (available to all 
users) or at the user level?

At the root level you need line:
extension=tidy.so
or
extension=php_tidy.dll
depending on your platform.
Also make sure that the extension is in extension_dir (check php.ini). 
Then restart the webserver.

-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 12:42 PM
To: Lizet Peña de Sola
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Tidy installation problem in php 4.3.8


Do you mean you installed tidy php module on your hosting company 
server? Then you need to load the module using dl():

if (!extension_loaded('tidy')) {
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
dl('/path/to/php_tidy.dll');
} else {
dl('/path/to/tidy.so');
}
}
Loading extensions might be disalowed by your hosting company.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Lizet Peña de Sola
Hello Marek, our webserver is a Unix one, and yes we want to make the
extension available for all users.
Please explain where I need to put the line extension=tidy.so, in the
php.ini file?
I checked that the tidy folder is in the extensions folder...
Thanks in advance,
lizet


At the root level you need line:

extension=tidy.so

depending on your platform.

Also make sure that the extension is in extension_dir (check php.ini). 
Then restart the webserver.

 -Original Message-
 From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 09, 2004 12:42 PM
 To: Lizet Peña de Sola
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Tidy installation problem in php 4.3.8
 
 
 
 Do you mean you installed tidy php module on your hosting company
 server? Then you need to load the module using dl():
 
 
 if (!extension_loaded('tidy')) {
 if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
 dl('/path/to/php_tidy.dll');
 } else {
 dl('/path/to/tidy.so');
 }
 }
 
 Loading extensions might be disalowed by your hosting company.
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php