[PHP] XML-RPC set XML encoding?

2006-05-02 Thread D. Dante Lorenso
XML-RPC gurus, Does anyhow know how to set the character encoding for XML-RPC? I am using the PHP built-in XML-RPC server to handle XML-RPC calls. ?php ... // create the XML-RPC server $this-SERVER = xmlrpc_server_create(); ... // fetch the raw input stream which contains our XML data

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
Richard Lynch wrote: On Fri, April 28, 2006 11:55 am, IG wrote: I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in the php.ini is set to off and error file logging is off. Do they have .htaccess

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread Chris
I've spent the last couple of hours trying to work this out to no avail. I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in the php.ini is set to off and error file logging is off. I would like to be

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
Thanks, Chris. chris smith wrote: On 4/29/06, IG [EMAIL PROTECTED] wrote: I've spent the last couple of hours trying to work this out to no avail. I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
Thanks, Jochem. Jochem Maas wrote: IG wrote: I've spent the last couple of hours trying to work this out to no avail. I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in the php.ini is set to off

Re: [PHP] instantiate derived class objects from within base class?

2006-05-02 Thread Jochem Maas
php will not have late (runtime) static binding until at least version 6. this sucks, it has sucked since 2003, welcome to the club of people who think it sucks :-) how to hack around this issue: abstract class A { protected abstract function foo(); public static function bar($c = null) {

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
Rafael schrieb: IMHO, vertical aligned brackets can be messy when nesting relatively-small blocks (and seems to me like a lot of wasted space) Huh?! Show an example. I don't think you will be able to show one. But this wasted space gives you a lot more insight into the code when looking

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread Jochem Maas
IG wrote: Thanks, Chris. .. Do I have to have display_errors set to 1 if I want to display a custom error page? I'd rather have display errors set to 0 but have a custom error page displayed when an error is triggered. Is this possible? yes. display_errors merely determines whether

[PHP] Re: Totally 0T - Spam

2006-05-02 Thread Barry
Ryan A schrieb: Hey all, I get a crapload of spam and I am pretty sure most of you too as we work so much online, for the past few months I joined a site called bluesecurity.com and installed their blue frog client and now my spam has dropped by over 70% Lol sorry these first few lines

[PHP] Syntax Oddity

2006-05-02 Thread Richard Lynch
Does anybody have a rational explanation for what purpose in life the following syntax is considered acceptable? ?php $query = UPDATE whatever SET x = 1; $query; ? Note that the line with just $query; on it doesn't, like, do anything. I suppose in a Zen-like sort of way, it exists and all,

[PHP] Slow mail()

2006-05-02 Thread Tony Aldrich
Hello! What are the reasons of slow mail() (about 30-40 seconds)? Thanks, Tony.

[PHP] Re: Syntax Oddity

2006-05-02 Thread Barry
Richard Lynch schrieb: Does anybody have a rational explanation for what purpose in life the following syntax is considered acceptable? ?php $query = UPDATE whatever SET x = 1; $query; ? Well from PHPs point of view this is not a syntax error. Note that the line with just $query; on it

Re: [PHP] Slow mail()

2006-05-02 Thread nicolas figaro
Tony Aldrich a écrit : Hello! What are the reasons of slow mail() (about 30-40 seconds)? Hi, many reasons, but nothing related to php IMHO. mail relay load, slow reverse dns interrogations for spam, etc. If your mail runs only on a local or corporate network, ask the mail admin, otherwise,

Re: [PHP] Slow mail()

2006-05-02 Thread Chris
What are the reasons of slow mail() (about 30-40 seconds)? If it takes mail() that long to send the email, it's taking your mail server that long to accept the email. Check your mail server logs. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 3:02 am, Barry wrote: Rafael schrieb: IMHO, vertical aligned brackets can be messy when nesting relatively-small blocks (and seems to me like a lot of wasted space) Huh?! Show an example. I don't think you will be able to show one. But this wasted space gives you a

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 1:59 am, IG wrote: You do not need, nor even want probably, ob_start() just to be able to use a custom error handler. I thought I needed ob_start(), why don't I? If part of a page is outputted then it would be impossible to output an error page as html has already been

Re: [PHP] instantiate derived class objects from within base class?

2006-05-02 Thread D. Dante Lorenso
Jochem Maas wrote: php will not have late (runtime) static binding until at least version 6. this sucks, it has sucked since 2003, welcome to the club of people who think it sucks :-) Oh cool there's a club, lol!? Why, thanks for having me! I'm a card-carrying member. Let me just add

Re: [PHP] Slow mail()

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 3:24 am, Tony Aldrich wrote: What are the reasons of slow mail() (about 30-40 seconds)? Well, first it has to fire up sendmail... Then sendmail has to accept the email for delivery. But that should not be 30 seconds... 30 seconds sounds like a network domain-name lookup

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
Richard Lynch schrieb: On Tue, May 2, 2006 3:02 am, Barry wrote: Rafael schrieb: IMHO, vertical aligned brackets can be messy when nesting relatively-small blocks (and seems to me like a lot of wasted space) Huh?! Show an example. I don't think you will be able to show one. But this

Re: [PHP] Slow mail()

2006-05-02 Thread chris smith
On 5/2/06, Tony Aldrich [EMAIL PROTECTED] wrote: Hello! What are the reasons of slow mail() (about 30-40 seconds)? Yeh.. expanding on what the others said, you'll have to get your host/isp/sysadmin to help you with this one.. on a linux box, it should be pretty instant (uses a socket type

[PHP] php mysql problem

2006-05-02 Thread Ross
Just say I have a db CREATE TABLE `mytable` ( `id` int(4) NOT NULL auto_increment, `fileName` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; when I add items they go id 1,2,3 etc. Whn I delete them gaps appear. 1, 3, 7. I

[PHP] Re: php mysql problem

2006-05-02 Thread Barry
Ross schrieb: Just say I have a db CREATE TABLE `mytable` ( `id` int(4) NOT NULL auto_increment, `fileName` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; when I add items they go id 1,2,3 etc. Whn I delete them gaps appear.

Fw: [PHP] php mysql problem

2006-05-02 Thread Satyam
- Original Message - From: Ross [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, May 02, 2006 12:00 PM Subject: [PHP] php mysql problem Just say I have a db CREATE TABLE `mytable` ( `id` int(4) NOT NULL auto_increment, `fileName` varchar(50) NOT NULL default '',

Re: [PHP] Re: Totally 0T - Spam

2006-05-02 Thread Ryan A
Hey all, I get a crapload of spam and I am pretty sure most of you too as we work so much online, for the past few months I joined a site called bluesecurity.com and installed their blue frog client and now my spam has dropped by over 70% Lol sorry these first few lines

[PHP] Tiny mass mail (Kinda 0T)

2006-05-02 Thread Ryan A
Hey, One of the sites I moderate has fudforum installed on it, really good forum if you have not heard of it, tiny and fast. The problem is the host is limiting the amount of emails that can go from the site per minute, and we need to email all the members (a modest 700 or so) a

Re: [PHP] Tiny mass mail (Kinda 0T)

2006-05-02 Thread chris smith
On 5/2/06, Ryan A [EMAIL PROTECTED] wrote: Hey, One of the sites I moderate has fudforum installed on it, really good forum if you have not heard of it, tiny and fast. The problem is the host is limiting the amount of emails that can go from the site per minute, and we need to email all the

[PHP] Re: php mysql problem

2006-05-02 Thread Ross
This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are deleted. CREATE TABLE `board_papers` ( `id` int(4) NOT NULL auto_increment, `doc_date`

Re: [PHP] instantiate derived class objects from within base class?

2006-05-02 Thread Jochem Maas
D. Dante Lorenso wrote: Jochem Maas wrote: php will not have late (runtime) static binding until at least version 6. this sucks, it has sucked since 2003, welcome to the club of people who think it sucks :-) Oh cool there's a club, lol!? Why, thanks for having me! I'm a card-carrying

Re: [PHP] Re: php mysql problem

2006-05-02 Thread chris smith
On 5/2/06, Ross [EMAIL PROTECTED] wrote: This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are deleted. Why do you want to do that? There's no

RE: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Ford, Mike
On 02 May 2006 10:07, Barry wrote: Richard Lynch schrieb: On Tue, May 2, 2006 3:02 am, Barry wrote: Rafael schrieb: IMHO, vertical aligned brackets can be messy when nesting relatively-small blocks (and seems to me like a lot of wasted space) Huh?! Show an example. I

[PHP] Problem with ftp_rmdir

2006-05-02 Thread PJ
Hello everybody, I'm using function ftp_rmdir to create some aplication and for testing I've used following sample from php.net if (ftp_rmdir($conn_id, $dir)) { echo Successfully deleted $dir\n; } else { echo There was a problem while deleting $dir\n; } Command really removed specified

Re: [PHP] Re: php mysql problem

2006-05-02 Thread T.Lensselink
This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are deleted. CREATE TABLE `board_papers` ( `id` int(4) NOT NULL auto_increment,

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
Oh my god -- curly brackets and excessive indentation -- and curly brackets. Just a mo, where did I put my curly-brackets-and-whitespace-glasses? Aaaahhh, that's better!! As you might have guessed, I *HATE* curly brackets with a vengeance, which is why I eschew both those styles and use

Re: [PHP] Re: php mysql problem

2006-05-02 Thread Dave Goodchild
Exactly - I don't think you really understand how a relational database works. The ids are retained as they may relate to records in another table. Internal sorting order is of no relevance at the application level. I think you need to rethink your design a little. On 02/05/06, T.Lensselink

Re: [PHP] php mysql problem

2006-05-02 Thread tedd
At 11:00 AM +0100 5/2/06, Ross wrote: Just say I have a db CREATE TABLE `mytable` ( `id` int(4) NOT NULL auto_increment, `fileName` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; when I add items they go id 1,2,3 etc. Whn I

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread tedd
And for your problem with viewing. probably try to get a 19 monitor. They are not that expencive anymore.(The CRT ones) Even on 1024x768 you see LOTSA code. I frequently code on smaller monitors -- laptop, ancient desktop, stripped-down flat-panel monitor that fits inside a rack-mount 2-RU

Re: [PHP] php mysql problem

2006-05-02 Thread Wolf
Depending on your needs, here is another tack to think about (I know, everyone else will be gasping and running for air...) A few years ago I had to make a shopping cart. I had an archaic system that would not share information with my web/db server, so I had to write a query to dump the

RE: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Ford, Mike
On 02 May 2006 14:19, Barry wrote: Oh my god -- curly brackets and excessive indentation -- and curly brackets. Just a mo, where did I put my curly-brackets-and-whitespace-glasses? Aaaahhh, that's better!! As you might have guessed, I *HATE* curly brackets with a vengeance, which is

RE: [PHP] PHP Standard style of writing your code

2006-05-02 Thread tedd
As you might have guessed, I *HATE* curly brackets with a vengeance, which is why I eschew both those styles and use PHP's alternative syntax: And, I *LOVE* curly brackets -- before them we had repeat the opening statement statement in some fashion, such as FOR/NEXT, WHILE/WEND, IF/END IF.

Re: [PHP] Slow mail()

2006-05-02 Thread tedd
At 4:24 PM +0800 5/2/06, Tony Aldrich wrote: Hello! What are the reasons of slow mail() (about 30-40 seconds)? Thanks, Tony. Hmmm rain(), snow(), sleet()? tedd -- http://sperling.com -- PHP General Mailing List

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
Ford, Mike schrieb: On 02 May 2006 14:19, Barry wrote: Oh my god -- curly brackets and excessive indentation -- and curly brackets. Just a mo, where did I put my curly-brackets-and-whitespace-glasses? Aaaahhh, that's better!! As you might have guessed, I *HATE* curly brackets with a

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
tedd schrieb: As you might have guessed, I *HATE* curly brackets with a vengeance, which is why I eschew both those styles and use PHP's alternative syntax: And, I *LOVE* curly brackets -- before them we had repeat the opening statement statement in some fashion, such as FOR/NEXT, WHILE/WEND,

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread tedd
Barry: PS: Barry, you and I use the exact same style -- you must be very intelligent. ;-) Or very stupid, depends on who looks at us ^_^ To paraphrase Will Rogers, We're all stupid, only in different subjects. tedd --

Re: [PHP] XML-RPC set XML encoding?

2006-05-02 Thread D. Dante Lorenso
D. Dante Lorenso wrote: Does anyhow know how to set the character encoding for XML-RPC? Ok, after digging through the sources, I figured this one out. There's a 4th parameter to the method: xmlrpc_server_call_method And, the options are all explained on this page:

[PHP] Question regarding apc

2006-05-02 Thread Dave Goodchild
Hi all. I have heard that functions like apc_define_constants and apc_load-constants are useful in speeding up mass definition of constants but could someone tell me how many constants you would have to have before this became appropriate. I am writing an app that loads a number of constants into

[PHP] I need to Index and to research files PDF

2006-05-02 Thread Carlos Augusto Falcão da Silva
Good afternoon!!! I am developing a system of content management through intranet, for us to manage our documents involved in the system of administration of the quality and also the norms of the assemblers etc. I Possess, today, some 500 norms, being about 85% in paper. I already come scanning

[PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Ross
I have a word say 'example' I want to chop of two or 3 chacters from the front to leave 'ample' or 'mple'. Is there a php function to do this? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Brad Bonkoski
Perhaps this will work.. http://www.php.net/manual/en/function.substr.php Ross wrote: I have a word say 'example' I want to chop of two or 3 chacters from the front to leave 'ample' or 'mple'. Is there a php function to do this? Ross -- PHP General Mailing List (http://www.php.net/)

[PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Oz
Hi, My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11? Does anybody know what causes pcntl_fork(): Error 11? (It's

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
So to use a custom error handler do I HAVE to have display_errors set to 1 in my php.ini file? This would of course mean I would have to use custom error handling across all my scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Robert Cummings
On Tue, 2006-05-02 at 04:02, Barry wrote: - I try not to let lines grow larger than about 100 cols (cannot be really done with strings and other thingies, and maybe that should remain in the old 80 cols, but it's too litle space), and Never possible if you write web-applications. CLI

RE: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Robert Cummings
On Tue, 2006-05-02 at 09:03, Ford, Mike wrote: As you might have guessed, I *HATE* curly brackets with a vengeance, which is why I eschew both those styles and use PHP's alternative syntax: if (...): if (...): // mmh else: // oh endif; while (...):

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Robert Cummings
On Tue, 2006-05-02 at 11:06, tedd wrote: Barry: PS: Barry, you and I use the exact same style -- you must be very intelligent. ;-) Or very stupid, depends on who looks at us ^_^ To paraphrase Will Rogers, We're all stupid, only in different subjects. Speak for yourself dum dum ;)

Re: [PHP] we are looking for experienced php programmers full time freelance...

2006-05-02 Thread Robert Cummings
On Thu, 2006-04-27 at 23:15, Robert Cummings wrote: On Thu, 2006-04-27 at 22:47, Sumeet wrote: we are looking for experienced php/mysql programmers full time freelance... should be at least 1 year experienced, knowing pear libraries and having worked on several projects. please

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Robin Vickery
On 02/05/06, Oz [EMAIL PROTECTED] wrote: Hi, My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11? Does anybody know

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread John Meyer
Should we really have this arguement about a standard way of writing the code? This is PHP, an open-source project. Isn't that like asking existentialists to adopt a uniform code of conduct? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php mysql problem

2006-05-02 Thread John
Ross wrote: This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are deleted. CREATE TABLE `board_papers` ( `id` int(4) NOT NULL auto_increment,

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Robert Cummings
On Tue, 2006-05-02 at 13:18, John Meyer wrote: Should we really have this arguement about a standard way of writing the code? This is PHP, an open-source project. Isn't that like asking existentialists to adopt a uniform code of conduct? Yes but what would that code of conduct look like?

Re: [PHP] php mysql problem

2006-05-02 Thread John
Ross wrote: This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are deleted. CREATE TABLE `board_papers` ( `id` int(4) NOT NULL auto_increment,

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Jochem Maas
Brad Bonkoski wrote: Perhaps this will work.. http://www.php.net/manual/en/function.substr.php it's a long shot brad ;-) Ross wrote: I have a word say 'example' I want to chop of two or 3 chacters from the front to leave 'ample' or 'mple'. Is there a php function to do this? Ross

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Rory Browne
function chop_two_or_3_characters_from_front_of_string($str){ $cut = rand(2, 3); return substr($str, $cut); } On 5/2/06, Jochem Maas [EMAIL PROTECTED] wrote: Brad Bonkoski wrote: Perhaps this will work.. http://www.php.net/manual/en/function.substr.php it's a long shot brad ;-) Ross

Re: [PHP] I need to Index and to research files PDF

2006-05-02 Thread Jochem Maas
Carlos Augusto Falcão da Silva wrote: Good afternoon!!! please don't post your question more than once - if anyone can help you you will get an answer. 2 things I would suggest you look at: 1. http://php.net/manual/es/ref.mnogosearch.php - mnogosearch is capable of indexing PDF content - I

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Jochem Maas
Rory Browne wrote: function chop_two_or_3_characters_from_front_of_string($str){ $cut = rand(2, 3); return substr($str, $cut); } dang! if I hadn't seen it with my own eyes I wouldn't have believed it :- On 5/2/06, Jochem Maas [EMAIL PROTECTED] wrote: Brad Bonkoski wrote: Perhaps this

Re: [PHP] Syntax Oddity

2006-05-02 Thread Martin Alterisio
2006/5/2, Richard Lynch [EMAIL PROTECTED]: Does anybody have a rational explanation for what purpose in life the following syntax is considered acceptable? ?php $query = UPDATE whatever SET x = 1; $query; ? Note that the line with just $query; on it doesn't, like, do anything. I suppose

Re: [PHP] Syntax Oddity

2006-05-02 Thread Dave Goodchild
Hmmm. The only time I ever use anything remotely like that is in a loop or other code are where I don't want anything to happen ie for ($foo=0;$foo=10;$foo++) { On 02/05/06, Martin Alterisio [EMAIL PROTECTED] wrote: 2006/5/2, Richard Lynch [EMAIL PROTECTED]: Does anybody have a rational

Re: [PHP] Question regarding apc

2006-05-02 Thread Jochem Maas
Dave Goodchild wrote: Hi all. I have heard that functions like apc_define_constants and apc_load-constants are useful in speeding up mass definition of constants but could someone tell me how many constants you would have to have before this became appropriate. I am writing an app that loads a

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 11:50 am, IG wrote: So to use a custom error handler do I HAVE to have display_errors set to 1 in my php.ini file? This would of course mean I would have to use custom error handling across all my scripts. I'm not gonna answer this again. We've told you No, you don't need

Re: [PHP] I need to Index and to research files PDF

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 11:36 am, Carlos Augusto Falcão da Silva wrote: You may want to re-post in your native language... The translation suffered quite a bit... These may also help: http://www.google.com/search?q=PHP+PDF2text http://www.google.com/search?q=gocr http://php.net/libpdf I am

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 11:29 am, Oz wrote: My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11? Does anybody know what

Re: [PHP] Problem with ftp_rmdir

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 8:06 am, PJ wrote: I'm using function ftp_rmdir to create some aplication and for testing I've used following sample from php.net if (ftp_rmdir($conn_id, $dir)) { echo Successfully deleted $dir\n; } else { echo There was a problem while deleting $dir\n; }

Re: [PHP] Tiny mass mail (Kinda 0T)

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 6:16 am, Ryan A wrote: The problem is the host is limiting the amount of emails that can go from the site per minute, and we need to email all the members (a modest 700 or so) a newsletter/update...any suggestions on how to do that? The main problem with using mail() for

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Wolf
Someone has way too much time on his hands... :) Rory Browne wrote: function chop_two_or_3_characters_from_front_of_string($str){ $cut = rand(2, 3); return substr($str, $cut); } On 5/2/06, Jochem Maas [EMAIL PROTECTED] wrote: Brad Bonkoski wrote: Perhaps this will work..

Re: [PHP] Tiny mass mail (Kinda 0T)

2006-05-02 Thread John Nichel
Richard Lynch wrote: On Tue, May 2, 2006 6:16 am, Ryan A wrote: The problem is the host is limiting the amount of emails that can go from the site per minute, and we need to email all the members (a modest 700 or so) a newsletter/update...any suggestions on how to do that? The main problem

Re: [PHP] php mysql problem

2006-05-02 Thread Richard Lynch
On Tue, May 2, 2006 5:00 am, Ross wrote: CREATE TABLE `mytable` ( `id` int(4) NOT NULL auto_increment, `fileName` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; when I add items they go id 1,2,3 etc. Whn I delete them gaps

Re: [PHP] Question regarding apc

2006-05-02 Thread Jochem Maas
Dave Goodchild wrote: Oooo you have so much power..must be amazing to be so knowlgeable...oh my god, are you really considering witholding that information from me...what on earth am I goimng to dohow can I cope...uh...uh... oh shit! I worked it out myself. No need to wade

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Jochem Maas
Richard Lynch wrote: On Tue, May 2, 2006 11:29 am, Oz wrote: My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11?

RE: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Jay Blanchard
[snip] My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11? Does anybody know what causes pcntl_fork(): Error 11? (It's

[PHP] [RELEASE ANNOUNCEMENT] phpDocumentor 1.3.0RC6

2006-05-02 Thread Greg Beaver
May 2, 2006 RELEASE ANNOUNCEMENT phpDocumentor 1.3.0RC6 Download: http://pear.php.net/PhpDocumentor http://www.phpdoc.org The phpDocumentor team would like to announce the release of version 1.3.0RC6. This is the last release candidate of version 1.3.0, the first stable version to be released

[PHP] 发票代开,可上网查询或到税务局验证

2006-05-02 Thread abzgjisf5
华明集团有限公司 与多家省市公司合作,现有部份余额发票可对外代开,收取费用低,可提供给贵公司作帐及(进项)抵扣用,降低成本、提高效率。 收费如下: 普通商品销售发票及建筑安装专用发票,加工修理等普通发票按金额大小算:5万以下收2个点,5万以上收1.5,50万以上收1个点;(金额越大价钱越优惠) 代开范围:商品销售、运输物流、广告、服务、建筑安装等,  本公司郑重承诺所用票据均为各单位在税务局所申领,可上网查询或到税务局抵扣验证。(国内各大城市均有我们的合作公司)  (金额越大、价钱越优惠,以上价钱仍有商量) 本公司开出的发票绝对正规,均可先验票后收钱。 联系人:吕先生

RE: [PHP] ????,????????????

2006-05-02 Thread Chris W. Parker
Yes definitely. I totally agree. Please send me more on the product/service you're giving away/trying to sell to me/us. I'd really like to see/hear/experience more. Thanks/Regards/Sincerely! Chris. -Original Message- From: abzgjisf5 [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02,

Re: [PHP] ????,????????????

2006-05-02 Thread Rory Browne
It's probably some unrenderable character set - like chinese or something like that. On 5/3/06, Chris W. Parker [EMAIL PROTECTED] wrote: Yes definitely. I totally agree. Please send me more on the product/service you're giving away/trying to sell to me/us. I'd really like to

RE: [PHP] ????,????????????

2006-05-02 Thread Chris W. Parker
Yeah it's Chinese. I can see the characters fine. The subject is just ? marks, though I'm not sure why. -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 4:45 PM To: Chris W. Parker Cc:

[PHP] Sanity checker?

2006-05-02 Thread Ezra Nugroho
PHP experts everywhere, Does anyone know of any tools to test the sanity of your php code? If you were to check the sanity of your code, what would you look for? Any pointers for other resources? Thank you, Ezra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] secure upload file

2006-05-02 Thread kristianto adi widiatmoko
can any body help me !! how to secure folder upload file since the privilege of this folder is 777 is any method to create a secure upload file ?? Send instant messages to your online friends http://uk.messenger.yahoo.com

Re: [PHP] Slow mail()

2006-05-02 Thread Tony Aldrich
Thanks for all. Hope host sysadmin will work on this. I wondered if it's my problem but on my testing environment it is relatively fast. Again, thanks.

[PHP] Imagemagick Displaying Images

2006-05-02 Thread Ray Hauge
I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use convert from imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The problem I'm running into is that I don't want to save these thumbnails. Instead I just

Re: [PHP] Imagemagick Displaying Images

2006-05-02 Thread Ray Hauge
On Tuesday 02 May 2006 18:19, Ray Hauge wrote: I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use convert from imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The problem I'm running into is that I don't

Re: [PHP] Imagemagick Displaying Images

2006-05-02 Thread Ray Hauge
On Tuesday 02 May 2006 18:24, Ray Hauge wrote: On Tuesday 02 May 2006 18:19, Ray Hauge wrote: I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use convert from imagemagick to get a .jpg, .png, .gif, etc. to display as the

Re: [PHP] javascript

2006-05-02 Thread John Hicks
darren wrote: I have a form that resides within a php function(). And, I would like to call a javascript function from an onChange event of a selection tag (a drop down list box). Your page's problem is entirely a Javascript problem. Has nothing to do with PHP: Try moving the onchange

Re: [PHP] secure upload file

2006-05-02 Thread Wolf
In Apache's Config: Directory /../upload_dirs Options None AllowOverride Options Order allow,deny Allow from all RedirectPermanent * somewhere else /Directory By using that and uploading to the upload_dir via another script, you create a black hole. Stuff comes in but can't be accessed

[PHP] List of sessions

2006-05-02 Thread Tony Aldrich
Good day, Does anybody know how to get a list of current sessions? I need to clear some database rows that where associated with some SID. Can it be done without probing of maxlifetime? Thanks in advance. Tony.

[PHP] PHP-Jabber

2006-05-02 Thread Tony Aldrich
Hello, Can somebody recommend clean php jabber library? I must send notifications to some users. Tony.

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Oz
Jay Blanchard wrote: [snip] My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11? Does anybody know what causes

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Oz
Richard Lynch wrote: On Tue, May 2, 2006 11:29 am, Oz wrote: My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11?