php-general Digest 31 Mar 2008 04:33:37 -0000 Issue 5377

2008-03-30 Thread php-general-digest-help
php-general Digest 31 Mar 2008 04:33:37 - Issue 5377 Topics (messages 272311 through 272323): Re: new lines in textareas? 272311 by: tedd 272312 by: Paul Scott 272314 by: jeffry s Re: Google Pagerank script 272313 by: kingzones.gmail.com Re: APC FastCGI !=

Re: [PHP] new lines in textareas?

2008-03-30 Thread TG
Is \n included literally because you're using single quotes for the variable? $textdata = 'This is a test\nThis is the second line'; vs... $textarea = This is a test\nThis is the second line; I would guess a lot of the pages you find are talking about what to do with the text after

[PHP] Google Pagerank script

2008-03-30 Thread Joey
Hello All, Does anyone have a link to source code for a pagerank script? I want to provide this to users. Thanks! Joey

[PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Micky Hulse
Hi, This is probably simple to answer for most of ya'll, but... preg_replace_callback($f, 'mah_processTags', $text); Besides the matches, how would I pass function args/param to mah_processTags()? For example, I would like to do something like this: preg_replace_callback($f,

[PHP] auto generated PDF

2008-03-30 Thread Alain Roger
Hi, i want to implement on my web portal electronic invoicing system. basically data will be stored into PostgreSQL DB. I would like to know if someone already have experiences with such feature or where could i find some tutorials or help about this topic. Concretly, user will buy some

Re: [PHP] auto generated PDF

2008-03-30 Thread Per Jessen
Alain Roger wrote: Concretly, user will buy some products/services online and i would like to send him a PDF invoice via email. is there a PDF module under PEAR or directly under PHP ? So far I've seen two approaches to this: 1. LaTeX to PDF 2. Openoffice to PDF. We use method #2.

Re: [PHP] new lines in textareas?

2008-03-30 Thread jeffry s
On Sun, Mar 30, 2008 at 2:07 PM, TG [EMAIL PROTECTED] wrote: Is \n included literally because you're using single quotes for the variable? $textdata = 'This is a test\nThis is the second line'; vs... $textarea = This is a test\nThis is the second line; I would guess a lot of the pages

[PHP] Re: auto generated PDF

2008-03-30 Thread Colin Guthrie
Per Jessen wrote: Alain Roger wrote: Concretly, user will buy some products/services online and i would like to send him a PDF invoice via email. is there a PDF module under PEAR or directly under PHP ? So far I've seen two approaches to this: 1. LaTeX to PDF 2. Openoffice to PDF.

[PHP] Re: Google Pagerank script

2008-03-30 Thread Colin Guthrie
Joey wrote: Does anyone have a link to source code for a pagerank script? I want to provide this to users. Here's one: $res = mysql_query('SELECT * FROM pages ORDER BY rank'); You should probably be a little more specific! Do you mean a script that can access Google's webservices to find

[PHP] E-Library Software

2008-03-30 Thread Ali Reza Sajedi
Hello, I am looking for an open source php based E-Library sofware. Could anybody help? Regards Ali -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Planet PHP broken?

2008-03-30 Thread Richard Heyes
Hey, As the subject says really. Last thing it has seems to be PEAR on a Shared Host dated the start of the 27th. -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google Pagerank script

2008-03-30 Thread tedd
At 2:26 AM -0400 3/30/08, Joey wrote: Hello All, Does anyone have a link to source code for a pagerank script? I want to provide this to users. Sure, a few years ago I spent a considerable amount of time finding the code and here it is: http://www.webbytedd.com/a/page-rank/index.php It

Re: [PHP] new lines in textareas?

2008-03-30 Thread tedd
At 9:26 PM -0700 3/29/08, Mary Anderson wrote: Hi all, I have a php script which produces text which is to be displayed in a textarea. I have the wrap for the text area set to 'hard'. I need to have newlines inserted in the text. \n and br don't work. They just get quoted literally

Re: [PHP] new lines in textareas?

2008-03-30 Thread Paul Scott
On Sun, 2008-03-30 at 12:29 -0400, tedd wrote: At 9:26 PM -0700 3/29/08, Mary Anderson wrote: Hi all, I have a php script which produces text which is to be displayed in a textarea. I have the wrap for the text area set to 'hard'. I need to have newlines inserted in the text.

Re: [PHP] Google Pagerank script

2008-03-30 Thread kingzones
This is fully working Script... http://v1.magicbeandip.com/mbd-file/PageRankXor32.zip Good Luck!!! On Sun, Mar 30, 2008 at 11:56 AM, Joey [EMAIL PROTECTED] wrote: Hello All, Does anyone have a link to source code for a pagerank script? I want to provide this to users. Thanks!

Re: [PHP] new lines in textareas?

2008-03-30 Thread jeffry s
On Mon, Mar 31, 2008 at 12:40 AM, Paul Scott [EMAIL PROTECTED] wrote: On Sun, 2008-03-30 at 12:29 -0400, tedd wrote: At 9:26 PM -0700 3/29/08, Mary Anderson wrote: Hi all, I have a php script which produces text which is to be displayed in a textarea. I have the wrap for the text

Re: [PHP] APC FastCGI != upload progress ?

2008-03-30 Thread steve
Hmmm... I am working on a PHP daemon for comet style connections... I'll keep that idea in mind. I guess that using Flash is best solution at the moment.. at least the only one I have working... I'm guessing that FastCGI is buffering the upload until complete. PHP docs might want to document

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Casey
On Sun, Mar 30, 2008 at 1:17 AM, Micky Hulse [EMAIL PROTECTED] wrote: Hi, This is probably simple to answer for most of ya'll, but... preg_replace_callback($f, 'mah_processTags', $text); Besides the matches, how would I pass function args/param to mah_processTags()? For example, I

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread micky
Hi Casey! Many thanks for your help! I greatly appreciate it. :) preg_replace_callback($f, 'mah_processTags($arg1)', $text); preg_replace_callback($f, 'mah_processTags(\'$0\', $arg1)', $text); Does this work? Ah, interesting... Thanks for the example code... I am at work now, but will try

Re: [PHP] Re: optimilize web page loading

2008-03-30 Thread Zoltán Németh
Robert Cummings írta: On Sat, 2008-03-29 at 10:16 +0100, Zoltán Németh wrote: One last thing though... even if this were escaped and even if there were fifty variables embedded, a good bytecode optimizer (not quite the same as a bytecode cacher) would optimize the bytecode for caching so that

Re: [PHP] PHP 5 file_get_contents() problems

2008-03-30 Thread php
Thanks Greg...I am aware of the allow_url_fopen/allow_url_include relationship. Your suggestion to look into curl was implemented and there still seems to be something else afoot. I created a simple set of curl functions which just printed a remote url to the browser window. This tested well

[PHP] LDAP in php

2008-03-30 Thread [EMAIL PROTECTED]
As LDAP can have SQL back-end (I saw an example with PostgreSQL) - is it a very wild idea to implement (a simple) LDAP server in php? We have all the address data already in PostgreSQL and a php application managing all of it. I am thinking of simple uses, such as providing LDAP address

Re: [PHP] LDAP in php

2008-03-30 Thread Chris
[EMAIL PROTECTED] wrote: As LDAP can have SQL back-end (I saw an example with PostgreSQL) - is it a very wild idea to implement (a simple) LDAP server in php? We have all the address data already in PostgreSQL and a php application managing all of it. I am thinking of simple uses, such as

Re: [PHP] Re: Quick email address check

2008-03-30 Thread Chris
I have used this to good effect function isEmail($email) { if (eregi(^[a-z0-9]+([-_\.]?[a-z0-9])[EMAIL PROTECTED]([-_\.]?[a-z0-9])+\.[a-z]{2,4},$email)) { return TRUE; } else { return FALSE; } }//end function I often have a '+' in my email address

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Micky Hulse
Casey wrote: preg_replace_callback($f, 'mah_processTags(\'$0\', $arg1)', $text); Does this work? Awww, does not seem to work. :( But maybe I need to dink with the code a bit more... I would like to avoid setting a global here. :D Thanks for the help Casey! I will let you know if I get it

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Casey
On Sun, Mar 30, 2008 at 9:37 PM, Micky Hulse [EMAIL PROTECTED] wrote: Casey wrote: preg_replace_callback($f, 'mah_processTags(\'$0\', $arg1)', $text); Does this work? Awww, does not seem to work. :( But maybe I need to dink with the code a bit more... I would like to avoid setting

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Micky Hulse
Casey wrote: Hmmm. I've searched around, and it seems that only a global would work :/ Thanks for the help Casey! I really appreciate it. :) Yah, I think I will use a global for now... Until I can think of an alternative coding approach. Have a good one! Cheers, Micky -- Wishlist:

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Casey
On Sun, Mar 30, 2008 at 10:06 PM, Micky Hulse [EMAIL PROTECTED] wrote: Casey wrote: Hmmm. I've searched around, and it seems that only a global would work :/ Thanks for the help Casey! I really appreciate it. :) Yah, I think I will use a global for now... Until I can think of an