[PHP] Review: Function that measures the width of a text string in pixels.

2004-10-28 Thread Jacob Friis
I have created a function that will measure the width of a text string in pixels. It works ok. If you have optimizations, please let me know. Thanks, Jacob function txt_width ($txt) { $width = 0; $txt_len = strlen($txt); for ($n = 1; $n = $txt_len; $n++) {

Re: [PHP] Re: Review: Function that measures the width of a text string in pixels.

2004-10-28 Thread Jacob Friis
M. Sokolewicz wrote: Jacob Friis wrote: I have created a function that will measure the width of a text string in pixels. It works ok. If you have optimizations, please let me know. Thanks, Jacob function txt_width ($txt) { $width = 0; $txt_len = strlen($txt); for ($n = 1; $n

[PHP] Read PDF files with Php

2004-11-25 Thread Jacob Friis
Do I need PDFlib in order to read PDF files? Is there another way? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read PDF files with Php

2004-11-26 Thread Jacob Friis
Do I need PDFlib in order to read PDF files? Is there another way? There is a nifty tutorial on this subject over at zends.com Can I read PDF files with that? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] httpd runs forever

2002-05-30 Thread Jacob Friis Larsen
I sometimes have a httpd process that when I look at top has run for more than 100 min. Can I in some way find out why it will not stop or its url? Regards Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Convert all named entities into numeric character references

2006-03-06 Thread Jacob Friis Saxberg
Does anyone know of a Php funtion that can do this: http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert all named entities into numeric character references

2006-03-06 Thread Jacob Friis Saxberg
Does anyone know of a Php funtion that can do this: http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html Hi there! http://se.php.net/manual/en/function.htmlentities.php ? htmlentities converts to named entitites. I want it to numeric entities. -- PHP General Mailing List

[PHP] Re: Convert all named entities into numeric character references

2006-03-14 Thread Jacob Friis Saxberg
Thanks, I could also use Tidy and make it do the convert. Jacob On 3/9/06, Robin Vickery [EMAIL PROTECTED] wrote: On 06/03/06, Jacob Friis Saxberg [EMAIL PROTECTED] wrote: Does anyone know of a Php funtion that can do this: http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html

[PHP] Php is not writing errors in logfile

2005-10-05 Thread Jacob Friis Saxberg
I have asked Php to log errors in a file but it doesn't. error_reporting = E_ALL display_errors = Off log_errors = On error_log = /var/log/php-errors.log Any idea what's wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php is not writing errors in logfile

2005-10-05 Thread Jacob Friis Saxberg
On 10/5/05, Stephen Leaf [EMAIL PROTECTED] wrote: On Wednesday 05 October 2005 08:16 am, Jacob Friis Saxberg wrote: I have asked Php to log errors in a file but it doesn't. error_reporting = E_ALL display_errors = Off log_errors = On error_log = /var/log/php-errors.log sure PHP has

Re: [PHP] Php is not writing errors in logfile

2005-10-05 Thread Jacob Friis Saxberg
On 10/5/05, Skippy [EMAIL PROTECTED] wrote: Quoting Jacob Friis Saxberg [EMAIL PROTECTED]: I have asked Php to log errors in a file but it doesn't. error_reporting = E_ALL display_errors = Off log_errors = On error_log = /var/log/php-errors.log Any idea what's wrong? Maybe

[PHP] Re: Php is not writing errors in logfile

2005-10-05 Thread Jacob Friis Saxberg
On 10/5/05, Jacob Friis Saxberg [EMAIL PROTECTED] wrote: I have asked Php to log errors in a file but it doesn't. error_reporting = E_ALL display_errors = Off log_errors = On error_log = /var/log/php-errors.log Any idea what's wrong? Sorry, this solved my problem: error_log = /var/log

[PHP] Php and Ruby

2005-10-23 Thread Jacob Friis Saxberg
Hi. How can I use Ruby with Php? My goal is to have (Independence of Presentation Logic(IoPL)). Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Php and Ruby

2005-10-23 Thread Jacob Friis Saxberg
How can I use Ruby with Php? I mean Rails. sorry :) My goal is to have (Independence of Presentation Logic(IoPL)). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php, Rails and ajax

2005-10-24 Thread Jacob Friis Saxberg
Hello again. Is it possible to use Php, Rails and ajax via some open source system? How do you do it? The most important for me is to use Php and ajax. Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-14 Thread Jacob Friis Larsen
How do I install Php5 with both --with-mysql and --with-mysqli? MySQL is 4.1.3-beta and installed as official MySQL RPM. This didn't work: ./configure --with-mysql=/usr/include/mysql --enable-embedded-mysqli ./configure --with-mysql=/usr/include/mysql --with-mysql=/usr/bin/mysql_config ./configure

[PHP] Cannot build ext/mysql together with ext/mysqli and apache2

2004-07-14 Thread Jacob Friis Larsen
: Apache 2.0.49 (Fedora Core 1 RPM) Php 5.0.0 MySQL 4.1.3-beta (MySQL RPM) Any ideas? Thanks, Jacob Georg Richter wrote: Am Mi, den 14.07.2004 schrieb Jacob Friis Larsen um 8:04: Hi! Could you show me your configure statement. I can't make it work. System Linux beethoven 2.6.5-7.95-default #1 Thu Jul 1

Re: [PHP] Re: Compile Php5: --with-mysql and --with-mysqli

2004-07-14 Thread Jacob Friis Larsen
[quote src=doc] If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts. [/quote] I've read that too :) What does it mean? Could you correct my configure line? ./configure --with-mysql=/usr/include/mysql

Re: [PHP] Cannot build ext/mysql together with ext/mysqli and apache2

2004-07-14 Thread Jacob Friis Larsen
How do you know it did not work? I guess you see some error messages. Could you include them with your description? Below is the output from make. There are lots of errors. I can only send some of them as this list has a limit of 10 bytes. snip

Re: [PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-15 Thread Jacob Friis Larsen
Curt Zirzow wrote: * Thus wrote Jacob Friis Larsen: How do I install Php5 with both --with-mysql and --with-mysqli? 1. Follow instructions at http://php.net/mysqli. Is this correct: --with-mysqli=/usr/bin/mysql_config? (This works: ./configure --with-mysqli=/usr/bin/mysql_config --with-apxs2) 2

Re: [PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-15 Thread Jacob Friis Larsen
execute /usr/bin/mysql_config --include. It's the path without include/mysql. In that case my configure is correct: ./configure --disable-all --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr --with-apxs2 Also make sure you don't have multiple libraries installed, you should install

Re: [PHP] building php5.0 as an apache module, with mysqli functionality

2004-07-19 Thread Jacob Friis Larsen
Curt Zirzow wrote: i'm trying to use the following configure ./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --with -mysql=/usr/include/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config - -with-ldap --with-pgsql If you read the installation at http://php.net/mysqli, you

[PHP] php5: configure --with-pear but there's no pear?

2004-08-03 Thread Jacob Friis Larsen
When I do configure --with-pear I would assume that pear would be available after make install, but it isn't. Any ideas? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php5: configure --with-pear but there's no pear?

2004-08-04 Thread Jacob Friis Larsen
When I do configure --with-pear I would assume that pear would be available after make install, but it isn't. Any ideas? How is it 'not available'? Did the PEAR directory/files not install? Is your system not finding them? I got it now, I think I missed some Debian packages. Thanks, Jacob -- PHP

[PHP] Validate XML data

2004-08-19 Thread Jacob Friis Larsen
It is possible to validate a XML document with XML Schema Definition Language (XSDL). Is it possible to use XSDL in Php? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validate XML data

2004-08-19 Thread Jacob Friis Larsen
It's possible in PHP 5, but not in PHP 4 Could you link me to the documentation? And I advise to use the most recent libxml2 libraries, since they made big improvements concerning XSD support lately It is possible to validate a XML document with XML Schema Definition Language (XSDL). Is it

[PHP] php4 and php5 on the same apache server

2004-09-13 Thread Jacob Friis Larsen
How can I run both php4 and php5 on the same apache server? Could I do it like this: AddType application/x-httpd-php .php AddType application/x-httpd-php5 .php5 And somehow tell php5 to use application/x-httpd-php5 -- Best regards, Jacob Friis Larsen www.webcom.dk | www.journster.com -- PHP